Skip to content

Commit

Permalink
fix: export fixes from clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Mar 20, 2022
1 parent 084e330 commit 8c57bd6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/StaticAnalyzers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ macro(enable_clang_tidy)
if(CLANGTIDY_CACHE)
# use clang-tidy-cache if found
set($ENV{CLANG_TIDY_CACHE_BINARY} ${CLANGTIDY_CACHE})
set(CLANGTIDY ${CLANGTIDY_CACHE} -p "${CMAKE_CURRENT_BINARY_DIR}")
set(CLANGTIDY
${CLANGTIDY_CACHE}
-p
"${CMAKE_CURRENT_BINARY_DIR}"
--export-fixes
"${CMAKE_CURRENT_BINARY_DIR}/clang_tidy_fixes.yaml")
else()
# otherwise use clang-tidy directly
find_program(CLANGTIDY clang-tidy)
Expand Down

0 comments on commit 8c57bd6

Please sign in to comment.