We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4683d2 commit 538fafaCopy full SHA for 538fafa
cpp/misra/test/rules/RULE-10-2-3/test.cpp
@@ -49,6 +49,7 @@ void bitwise() {
49
Fixed f = F0;
50
51
u | U1; // NON_COMPLIANT: bitwise on unfixed unscoped enum
52
+ // clang-format off
53
u & U1; // NON_COMPLIANT: bitwise on unfixed unscoped enum
54
u ^ U1; // NON_COMPLIANT: bitwise on unfixed unscoped enum
55
@@ -370,6 +371,7 @@ void cross_enum_bitwise() {
370
371
372
373
u | f; // NON_COMPLIANT: bitwise with unfixed operand
374
375
u & f; // NON_COMPLIANT: bitwise with unfixed operand
376
u ^ f; // NON_COMPLIANT: bitwise with unfixed operand
377
f | u; // NON_COMPLIANT: bitwise with unfixed operand
0 commit comments