We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e07e87c commit 308ed51Copy full SHA for 308ed51
src/StaticAnalyzers.cmake
@@ -51,7 +51,12 @@ macro(enable_clang_tidy)
51
if(CLANGTIDY_CACHE)
52
# use clang-tidy-cache if found
53
set($ENV{CLANG_TIDY_CACHE_BINARY} ${CLANGTIDY_CACHE})
54
- set(CLANGTIDY ${CLANGTIDY_CACHE} -p "${CMAKE_CURRENT_BINARY_DIR}")
+ set(CLANGTIDY
55
+ ${CLANGTIDY_CACHE}
56
+ -p
57
+ "${CMAKE_CURRENT_BINARY_DIR}"
58
+ --export-fixes
59
+ "${CMAKE_CURRENT_BINARY_DIR}/clang_tidy_fixes.yaml")
60
else()
61
# otherwise use clang-tidy directly
62
find_program(CLANGTIDY clang-tidy)
0 commit comments