We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 084e330 commit 8c57bd6Copy full SHA for 8c57bd6
1 file changed
src/StaticAnalyzers.cmake
@@ -65,7 +65,12 @@ macro(enable_clang_tidy)
65
if(CLANGTIDY_CACHE)
66
# use clang-tidy-cache if found
67
set($ENV{CLANG_TIDY_CACHE_BINARY} ${CLANGTIDY_CACHE})
68
- set(CLANGTIDY ${CLANGTIDY_CACHE} -p "${CMAKE_CURRENT_BINARY_DIR}")
+ set(CLANGTIDY
69
+ ${CLANGTIDY_CACHE}
70
+ -p
71
+ "${CMAKE_CURRENT_BINARY_DIR}"
72
+ --export-fixes
73
+ "${CMAKE_CURRENT_BINARY_DIR}/clang_tidy_fixes.yaml")
74
else()
75
# otherwise use clang-tidy directly
76
find_program(CLANGTIDY clang-tidy)
0 commit comments