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 Feb 9, 2022
1 parent 3fd4b1a commit a1a428c
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 @@ -37,7 +37,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 a1a428c

Please sign in to comment.