Skip to content

Commit 0fe88e8

Browse files
svenvhPavel V Chupin
authored andcommitted
Suppress some clang-tidy errors
Split the .clang-tidy check lists out over multiple lines to improve readability. Suppress `misc-non-private-member-variables-in-classes` as the code currently contains many instances that fail this check. Drop `constexpr` from `LoopControlLoopCountINTELMask` after clang started diagnosing this with b364535 ("[Clang] Diagnose ill-formed constant expression when setting ...", 2022-07-28). Removing `constexpr` is just a workaround, the long term fix would be to upstream the new enum value to `spirv.hpp`. Original commit: KhronosGroup/SPIRV-LLVM-Translator@c5b29f2
1 parent b08d4ce commit 0fe88e8

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

.clang-tidy

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
1-
Checks: |
2-
-*,
3-
clang-diagnostic-*,
4-
llvm-*,
5-
-llvm-header-guard,
6-
misc-*,
7-
-misc-const-correctness,
8-
-misc-no-recursion,
9-
-misc-non-private-member-variables-in-classes,
10-
-misc-unused-parameters,
11-
readability-identifier-naming
12-
WarningsAsErrors: |
13-
llvm-*,
14-
-llvm-header-guard,
15-
misc-*,
16-
-misc-no-recursion,
17-
-misc-non-private-member-variables-in-classes,
18-
-misc-unused-parameters,
19-
readability-identifier-naming
1+
Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-misc-no-recursion,readability-identifier-naming'
2+
WarningsAsErrors: 'llvm-*,misc-*,-misc-no-recursion,-misc-unused-parameters,readability-identifier-naming,-llvm-header-guard'
203
CheckOptions:
214
- key: readability-identifier-naming.ClassCase
225
value: CamelCase
@@ -42,5 +25,3 @@ CheckOptions:
4225
value: 1
4326
- key: modernize-use-default-member-init.UseAssignment
4427
value: 1
45-
- key: llvm-namespace-comment.ShortNamespaceLines
46-
value: '25'

0 commit comments

Comments
 (0)