|
@@ -53,6 +53,8 @@ else()
|
|
|
set(cxx_flags ${cxx_flags} -Wno-missing-field-initializers)
|
|
|
endif()
|
|
|
if (USE_ANALYZER)
|
|
|
+ # FIXME: consider using clang-tidy via CMAKE_CXX_CLANG_TIDY: https://ortogonal.github.io/cmake-clang-tidy/
|
|
|
+ # with the default settings this spams the output with irrelevant C++ coding style warnings in 3rd party libs though
|
|
|
message(">> Configuring for static code analysis")
|
|
|
set(c_flags ${c_flags} --analyze -Xanalyzer -analyzer-opt-analyze-headers)
|
|
|
set(cxx_flags ${cxx_flags} --analyze -Xanalyzer -analyzer-opt-analyze-headers)
|