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)
25
25
endif ()
26
26
message (STATUS "NPROC=${NPROC} " )
27
27
28
+ # TODO: introduced in run-clang-tidy-22
29
+ set (CLANG_TIDY_CONFIG "-enable-check-profile" )
30
+
28
31
# most of these are disabled because they are too noisy in our code
29
32
# clang-analyzer-core.CallAndMessage
30
33
# clang-analyzer-core.NonNullParamChecker
@@ -41,13 +44,12 @@ if(RUN_CLANG_TIDY_NAMES)
41
44
42
45
# TODO: exclude moc_*.cpp
43
46
# TODO: exclude mocs_compilation.cpp
44
- # disable all compiler warnings since we are just interested in the tidy ones
45
47
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}
47
49
USES_TERMINAL
48
50
VERBATIM )
49
51
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}
51
53
USES_TERMINAL
52
54
VERBATIM )
53
55
if (BUILD_GUI )
You can’t perform that action at this time.
0 commit comments