Skip to content

Commit 55f2828

Browse files
committed
[ot] scripts/opentitan: clang-tidy.yml: discard buggy rule
Discard a not so clever clang-tidy heuristic where struct { struct { int a; int b; int c; } s; enum { x, y } e; } foo; triggers a 'bugprone-tagged-union-member-count' warning as clang-tidy assumes that `enum e` selects one member in `struct s`! Signed-off-by: Emmanuel Blot <[email protected]>
1 parent 7ff59f2 commit 55f2828

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/opentitan/clang-tidy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Checks: '*,
1212
-bugprone-implicit-widening-of-multiplication-result,
1313
-bugprone-multi-level-implicit-pointer-conversion,
1414
-bugprone-reserved-identifier,
15+
-bugprone-tagged-union-member-count,
1516
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
1617
-clang-diagnostic-error,
1718
-clang-diagnostic-unknown-warning-option,

0 commit comments

Comments
 (0)