We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fd4b1a commit a1a428cCopy full SHA for a1a428c
1 file changed
src/StaticAnalyzers.cmake
@@ -37,7 +37,12 @@ macro(enable_clang_tidy)
37
if(CLANGTIDY_CACHE)
38
# use clang-tidy-cache if found
39
set($ENV{CLANG_TIDY_CACHE_BINARY} ${CLANGTIDY_CACHE})
40
- set(CLANGTIDY ${CLANGTIDY_CACHE} -p "${CMAKE_CURRENT_BINARY_DIR}")
+ set(CLANGTIDY
41
+ ${CLANGTIDY_CACHE}
42
+ -p
43
+ "${CMAKE_CURRENT_BINARY_DIR}"
44
+ --export-fixes
45
+ "${CMAKE_CURRENT_BINARY_DIR}/clang_tidy_fixes.yaml")
46
else()
47
# otherwise use clang-tidy directly
48
find_program(CLANGTIDY clang-tidy)
0 commit comments