Skip to content

Commit

Permalink
[clang-tidy] CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Jun 6, 2024
1 parent 5045c3b commit a910025
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/clang_tidy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ cmake_minimum_required (VERSION 3.10)

project (hibf_tidy NONE)

find_program (CLANG_TIDY "clang-tidy-17" REQUIRED)
set (CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY})
find_program (CLANG_TIDY "clang-tidy-18" REQUIRED)
set (CMAKE_CXX_CLANG_TIDY
"${CLANG_TIDY};-checks=bugprone*,performance*,-bugprone-easily-swappable-parameters,-bugprone-exception-escape,-bugprone-narrowing-conversions"
)

add_subdirectory (../unit/ unit)

0 comments on commit a910025

Please sign in to comment.