File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ if(RUN_CLANG_TIDY_NAMES)
2525 endif ()
2626 message (STATUS "NPROC=${NPROC} " )
2727
28+ # TODO: introduced in run-clang-tidy-22
29+ set (CLANG_TIDY_CONFIG "-enable-check-profile" )
30+
2831 # most of these are disabled because they are too noisy in our code
2932 # clang-analyzer-core.CallAndMessage
3033 # clang-analyzer-core.NonNullParamChecker
@@ -41,13 +44,12 @@ if(RUN_CLANG_TIDY_NAMES)
4144
4245 # TODO: exclude moc_*.cpp
4346 # TODO: exclude mocs_compilation.cpp
44- # disable all compiler warnings since we are just interested in the tidy ones
4547 add_custom_target (run-clang-tidy
46- ${Python_EXECUTABLE} ${RUN_CLANG_TIDY} -p=${CMAKE_BINARY_DIR} -j ${NPROC} -quiet
48+ ${Python_EXECUTABLE} ${RUN_CLANG_TIDY} -p=${CMAKE_BINARY_DIR} -j ${NPROC} -quiet ${CLANG_TIDY_CONFIG}
4749 USES_TERMINAL
4850 VERBATIM )
4951 add_custom_target (run-clang-tidy-csa
50- ${Python_EXECUTABLE} ${RUN_CLANG_TIDY} -p=${CMAKE_BINARY_DIR} -j ${NPROC} -quiet ${CLANG_TIDY_CSA_ALPHA_OPTS} ${CLANG_TIDY_CSA_CONFIG}
52+ ${Python_EXECUTABLE} ${RUN_CLANG_TIDY} -p=${CMAKE_BINARY_DIR} -j ${NPROC} -quiet ${CLANG_TIDY_CONFIG} ${ CLANG_TIDY_CSA_ALPHA_OPTS} ${CLANG_TIDY_CSA_CONFIG}
5153 USES_TERMINAL
5254 VERBATIM )
5355 if (BUILD_GUI)
You can’t perform that action at this time.
0 commit comments