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 12, 2022
1 parent e07e87c commit 308ed51
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 @@ -51,7 +51,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 308ed51

Please sign in to comment.