Skip to content

Commit 9fcfa19

Browse files
authored
fail the clang-tidy build step in case of compiler warnings / ignore -Wfour-char-constants and temporally disable -Wshadow-field-in-constructor clang warnings (#268)
1 parent 4f0bd3f commit 9fcfa19

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/clang-tidy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434

3535
- name: Clang-Tidy
3636
run: |
37-
run-clang-tidy-14 -q -j $(nproc) -p=cmake.output -extra-arg=-w
37+
run-clang-tidy-14 -q -j $(nproc) -p=cmake.output

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
1212
# these are not really fixable
1313
add_compile_options(-Wno-exit-time-destructors -Wno-global-constructors)
1414
# we are not interested in these
15-
add_compile_options(-Wno-multichar)
15+
add_compile_options(-Wno-multichar -Wno-four-char-constants)
1616
# TODO: fix these?
17-
add_compile_options(-Wno-padded -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shorten-64-to-32)
17+
add_compile_options(-Wno-padded -Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shorten-64-to-32 -Wno-shadow-field-in-constructor)
1818

1919
if (CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 14)
2020
# not all tools support DWARF 5 yet so stick to version 4

0 commit comments

Comments
 (0)