File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
cpp/misra/test/rules/RULE-10-2-2 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ class C1 {
6666 enum {
6767 C1_Anon1,
6868 C1_Anon2
69- }; // COMPLIANT: unscoped anonymous in class (exception)
69+ }; // COMPLIANT: unscoped anonymous in class (exception)
7070 enum class E2 { G1 }; // COMPLIANT: scoped enum
7171
7272 class C2 {
@@ -88,7 +88,7 @@ struct S_Global {
8888 enum {
8989 S_Anon1,
9090 S_Anon2
91- }; // COMPLIANT: unscoped anonymous in struct (exception)
91+ }; // COMPLIANT: unscoped anonymous in struct (exception)
9292 enum class E2 { G1 }; // COMPLIANT: scoped enum
9393};
9494
@@ -101,7 +101,7 @@ enum E1 : int32_t { G1 }; // NON_COMPLIANT: unscoped in namespace
101101class C1 {
102102 enum E2 {
103103 N4_V1
104- }; // COMPLIANT: unscoped in class (exception) + hides N4::N4_V1
104+ }; // COMPLIANT: unscoped in class (exception) + hides N4::N4_V1
105105 enum E3 { G2 }; // COMPLIANT: unscoped in class (exception) + hides ::G2
106106 enum class E4 { N4_V1, G2 }; // COMPLIANT: scoped enum
107107};
You can’t perform that action at this time.
0 commit comments