File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
cpp/misra/test/rules/RULE-6-5-2 Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- static void f (); // NON_COMPILANT - prefer to use an anonymous namespace
1+ static void f (); // NON_COMPLIANT - prefer to use an anonymous namespace
22
33namespace {
4- void f1 (); // COMPILANT
5- extern void f2 (); // NON_COMPILANT
4+ void f1 (); // COMPLIANT
5+ extern void f2 (); // NON_COMPLIANT
66
7- int i; // COMPILANT
8- extern int i1; // NON_COMPILANT
9- static int i2; // NON_COMPILANT - prefer to not use static as it is redundant
7+ int i; // COMPLIANT
8+ extern int i1; // NON_COMPLIANT
9+ static int i2; // NON_COMPLIANT - prefer to not use static as it is redundant
1010} // namespace
1111
1212namespace named {
13- static const int i[] = {1 }; // COMPILANT - exception
13+ static const int i[] = {1 }; // COMPLIANT - exception
1414}
You can’t perform that action at this time.
0 commit comments