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
No related tags found
2 merge requests!41Release 0.3.0,!37F fix deprecations
......@@ -57,15 +57,24 @@ format:
build-debug: conan-install-debug
# 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 &&\
cmake -S ../.. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Debug &&\
cmake --build .
build-release: conan-install-release
# 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 &&\
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 -S ../.. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release &&\
cmake --build .
# cmake --build . --verbose
test-debug: build-debug
......
......@@ -4,9 +4,9 @@ Integration tests for linkahead-cpplib and the linkahead-server
# Dependencies
* clang-tidy
* clang-tidy-16
* clang-format
* include-what-you-use
* iwyu / include-what-you-use
* cmake
* conan
......
......@@ -80,7 +80,7 @@ if(LINTING)
"-Xiwyu" "--cxx17ns")
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)
message(WARNING "clang-tidy: Not found")
else()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment