From 8c57bd6c80af5d3092cae6c04ae781c7322d9535 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Wed, 9 Feb 2022 02:57:27 -0800 Subject: [PATCH] fix: export fixes from clang-tidy --- src/StaticAnalyzers.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/StaticAnalyzers.cmake b/src/StaticAnalyzers.cmake index c18d33be..7f5571b2 100644 --- a/src/StaticAnalyzers.cmake +++ b/src/StaticAnalyzers.cmake @@ -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)