We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-enable-check-profile
1 parent 9fc2d52 commit 88b684dCopy full SHA for 88b684d
1 file changed
cmake/clang_tidy.cmake
@@ -25,8 +25,11 @@ if(RUN_CLANG_TIDY_NAMES)
25
endif()
26
message(STATUS "NPROC=${NPROC}")
27
28
- # TODO: introduced in run-clang-tidy-22
29
- set(CLANG_TIDY_CONFIG "-enable-check-profile")
+ if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 22)
+ set(CLANG_TIDY_CONFIG "-enable-check-profile")
30
+ else()
31
+ set(CLANG_TIDY_CONFIG "")
32
+ endif()
33
34
# most of these are disabled because they are too noisy in our code
35
# clang-analyzer-core.CallAndMessage
0 commit comments