Skip to content

Commit 308ed51

Browse files
committed
fix: export fixes from clang-tidy
1 parent e07e87c commit 308ed51

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/StaticAnalyzers.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ macro(enable_clang_tidy)
5151
if(CLANGTIDY_CACHE)
5252
# use clang-tidy-cache if found
5353
set($ENV{CLANG_TIDY_CACHE_BINARY} ${CLANGTIDY_CACHE})
54-
set(CLANGTIDY ${CLANGTIDY_CACHE} -p "${CMAKE_CURRENT_BINARY_DIR}")
54+
set(CLANGTIDY
55+
${CLANGTIDY_CACHE}
56+
-p
57+
"${CMAKE_CURRENT_BINARY_DIR}"
58+
--export-fixes
59+
"${CMAKE_CURRENT_BINARY_DIR}/clang_tidy_fixes.yaml")
5560
else()
5661
# otherwise use clang-tidy directly
5762
find_program(CLANGTIDY clang-tidy)

0 commit comments

Comments
 (0)