Поддержка Clang-Tidy
This commit is contained in:
parent
accf5f4dac
commit
00f9228041
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user