Исправлен обобщенный запуск clang-tidy для CMake

This commit is contained in:
Andrei Astafev 2022-04-12 15:02:08 +03:00
parent deb42b2e49
commit a304a9264a

View File

@ -205,8 +205,8 @@ variables:
if [ -n "${CUSTOM_ANALYZE_CLANG_TIDY}" ]; then
${CUSTOM_ANALYZE_CLANG_TIDY}
else
cmake -DCMAKE_CXX_CLANG_TIDY="clang-tidy-14" -B ${CI_BUILD_DIR} .
cmake --build ${CI_BUILD_DIR} --parallel
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -B ${CI_BUILD_DIR} .
run-clang-tidy-14 -checks=-*,bugprone-*,clang-analyzer-*,misc-*,modernize-*,performance-*,portability-* -p ${CI_BUILD_DIR}
fi
.cmake-analyze-clazy: