Skip to content

Commit 6aae7a1

Browse files
authored
Exclude CMake's calls to clang from the analyzer report (#792)
1 parent fecd1a4 commit 6aae7a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/clang-analyzer.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737
mkdir build
3838
cd build
3939
40-
scan-build-py-$LLVM_VER -o clang-sarif-root/ --sarif-html sh -c "cmake -G Ninja -DPCRE2_SUPPORT_JIT=ON -DCMAKE_BUILD_TYPE=Debug .. && ninja"
40+
scan-build-py-$LLVM_VER cmake -G Ninja -DPCRE2_SUPPORT_JIT=ON -DCMAKE_BUILD_TYPE=Debug ..
41+
scan-build-py-$LLVM_VER -o clang-sarif-root/ --sarif-html ninja
4142
rm clang-sarif-root/*/result-*.sarif
4243
mv clang-sarif-root/* ../clang-report
4344

0 commit comments

Comments
 (0)