1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-29 21:49:07 +00:00
conky/cmake/clang-tidy.cmake

17 lines
290 B
CMake
Raw Normal View History

# Run clang-tidy
set(DO_CLANG_TIDY
"${CLANG_TIDY_BIN}"
-format-style='{BasedOnStyle: google, IndentWidth: 2}'
-checks=*,-clang-analyzer-alpha.*
-fix
-fix-errors
)
if(CLANG_TIDY_BIN)
set_target_properties(
conky PROPERTIES
CXX_CLANG_TIDY "${DO_CLANG_TIDY}"
)
endif()