Skip to content
Snippets Groups Projects
Verified Commit 2c08ecdb authored by Daniel Hornung's avatar Daniel Hornung
Browse files

MAINT: Updated clang tools to 16, added early checks.

parent e3e98988
Branches
Tags
2 merge requests!41Release 0.3.0,!37F fix deprecations
...@@ -57,15 +57,24 @@ format: ...@@ -57,15 +57,24 @@ format:
build-debug: conan-install-debug build-debug: conan-install-debug
# cmake --preset conan-debug && cmake --build build/Debug # for CMake >= 3.23 # cmake --preset conan-debug && cmake --build build/Debug # for CMake >= 3.23
@command -v iwyu || command include-what-you-use || \
(echo "Could not find 'iwyu', exiting."; exit 1)
@command -v clang-tidy || command -v clang-tidy-16 || \
(echo "Could not find 'clang-tidy'(-16), exiting."; exit 1)
cd build/Debug &&\ cd build/Debug &&\
cmake -S ../.. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Debug &&\ cmake -S ../.. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Debug &&\
cmake --build . cmake --build .
build-release: conan-install-release build-release: conan-install-release
# cmake --preset conan-release # for CMake >= 3.23 # cmake --preset conan-release # for CMake >= 3.23
@command -v iwyu || command include-what-you-use || \
(echo "Could not find 'iwyu', exiting."; exit 1)
@command -v clang-tidy || command -v clang-tidy-16 || \
(echo "Could not find 'clang-tidy'(-16), exiting."; exit 1)
cd build/Release &&\ cd build/Release &&\
cmake -S ../.. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release &&\ cmake -S ../.. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release &&\
cmake -DCMAKE_VERBOSE_MAKEFILE --build . cmake --build .
# cmake --build . --verbose
test-debug: build-debug test-debug: build-debug
......
...@@ -4,9 +4,9 @@ Integration tests for linkahead-cpplib and the linkahead-server ...@@ -4,9 +4,9 @@ Integration tests for linkahead-cpplib and the linkahead-server
# Dependencies # Dependencies
* clang-tidy * clang-tidy-16
* clang-format * clang-format
* include-what-you-use * iwyu / include-what-you-use
* cmake * cmake
* conan * conan
......
...@@ -80,7 +80,7 @@ if(LINTING) ...@@ -80,7 +80,7 @@ if(LINTING)
"-Xiwyu" "--cxx17ns") "-Xiwyu" "--cxx17ns")
endif() endif()
find_program(clang_tidy NAMES clang-tidy clang-tidy-11) find_program(clang_tidy NAMES clang-tidy clang-tidy-16)
if(NOT clang_tidy) if(NOT clang_tidy)
message(WARNING "clang-tidy: Not found") message(WARNING "clang-tidy: Not found")
else() else()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment