Skip to content

Commit e433991

Browse files
committed
ci(clang-tidy): Disabled unnecessary checks related to compiler options
Clang-Tidy started failing due to the `-Wno-lto-type-mismatch` and `-s` options for the Google Benchmark object files. This is strange, as it didn't fail right after the benchmarks were implemented, and they haven't been changed since, especially considering Clang-Tidy should ignore the source files for these object files. This commit adds the `-Wno-unknown-warning-option` and `-Wno-unused-command-line-argument` options to Clang-Tidy.
1 parent cab8b26 commit e433991

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/clang-tidy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939
run: |
4040
set -o pipefail
4141
files=$(find ALFI examples tests benches -path 'ALFI/*.h' -o -path 'examples/*.cpp' -o -path 'tests/*.cpp' -o -path 'benches/*.cpp' ! -path '*deps/*')
42-
clang-tidy -p ${{ env.BUILD_DIR }} --use-color $files 2>&1 |
42+
clang-tidy -p ${{ env.BUILD_DIR }} --use-color $files 2>&1 \
43+
--extra-arg=-Wno-unknown-warning-option \
44+
--extra-arg=-Wno-unused-command-line-argument |
4345
sed "s|${{ github.workspace }}/||g" |
4446
tee >(ansi2txt | clang-tidy-sarif > results.sarif)
4547

0 commit comments

Comments
 (0)