Skip to content

Commit 8c57bd6

Browse files
committed
fix: export fixes from clang-tidy
1 parent 084e330 commit 8c57bd6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/StaticAnalyzers.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ macro(enable_clang_tidy)
6565
if(CLANGTIDY_CACHE)
6666
# use clang-tidy-cache if found
6767
set($ENV{CLANG_TIDY_CACHE_BINARY} ${CLANGTIDY_CACHE})
68-
set(CLANGTIDY ${CLANGTIDY_CACHE} -p "${CMAKE_CURRENT_BINARY_DIR}")
68+
set(CLANGTIDY
69+
${CLANGTIDY_CACHE}
70+
-p
71+
"${CMAKE_CURRENT_BINARY_DIR}"
72+
--export-fixes
73+
"${CMAKE_CURRENT_BINARY_DIR}/clang_tidy_fixes.yaml")
6974
else()
7075
# otherwise use clang-tidy directly
7176
find_program(CLANGTIDY clang-tidy)

0 commit comments

Comments
 (0)