⚗️ add clang analyze target

This commit is contained in:
Niels Lohmann 2021-01-17 20:36:53 +01:00
parent 06bffd263e
commit 08d51c0cf6
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -12,7 +12,7 @@
include(FindPython3)
find_package(Python3 COMPONENTS Interpreter)
find_program(CLANG_TIDY_TOOL NAMES clang-tidy)
find_program(CLANG_TIDY_TOOL NAMES clang-tidy-11 clang-tidy)
execute_process(COMMAND ${CLANG_TIDY_TOOL} --version OUTPUT_VARIABLE CLANG_TIDY_TOOL_VERSION ERROR_VARIABLE CLANG_TIDY_TOOL_VERSION)
string(REGEX MATCH "[0-9]+(\\.[0-9]+)+" CLANG_TIDY_TOOL_VERSION "${CLANG_TIDY_TOOL_VERSION}")
message(STATUS "🔖 Clang-Tidy ${CLANG_TIDY_TOOL_VERSION} (${CLANG_TIDY_TOOL})")
@ -45,7 +45,7 @@ message(STATUS "🔖 include-what-you-use ${IWYU_TOOL_VERSION} (${IWYU_TOOL})")
find_program(OCLINT_TOOL NAMES oclint-json-compilation-database)
find_program(PLOG_CONVERTER_TOOL NAMES plog-converter)
find_program(PVS_STUDIO_ANALYZER_TOOL NAMES pvs-studio-analyzer)
find_program(SCAN_BUILD_TOOL NAMES scan-build)
find_program(SCAN_BUILD_TOOL NAMES scan-build-11 scan-build)
# the individual source files
file(GLOB_RECURSE SRC_FILES ${PROJECT_SOURCE_DIR}/include/nlohmann/*.hpp)