Поддержка Clang-Tidy

This commit is contained in:
Andrei Astafev 2022-04-07 11:09:36 +03:00
parent accf5f4dac
commit 00f9228041
2 changed files with 18 additions and 0 deletions

View File

@ -36,3 +36,7 @@ check-format-sources:
analyze-pvs: analyze-pvs:
when: manual when: manual
extends: .analyze-pvs extends: .analyze-pvs
analyze-clang-tidy:
when: manual
extends: .analyze-clang-tidy

View File

@ -160,3 +160,17 @@ variables:
plog-converter -a "GA:1,2,3;64:1;OP:1,2;CS:1,2" -t errorfile PVS-Studio.log plog-converter -a "GA:1,2,3;64:1;OP:1,2;CS:1,2" -t errorfile PVS-Studio.log
fi fi
.analyze-clang-tidy:
variables:
CMAKE_GENERATOR: Ninja
image: jammy-dev
tags: ['analyze']
script:
- >
if [ -n "${CUSTOM_ANALYZE_CLANG_TIDY}" ]; then
${CUSTOM_ANALYZE_CLANG_TIDY}
else
cmake -DCMAKE_CXX_CLANG_TIDY="clang-tidy" -B build .
cmake --build build -j
fi