We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f48c75 commit 14939e5Copy full SHA for 14939e5
1 file changed
cpp/misra/test/rules/RULE-6-5-2/test.cpp
@@ -1,14 +1,14 @@
1
-static void f(); // NON_COMPILANT - prefer to use an anonymous namespace
+static void f(); // NON_COMPLIANT - prefer to use an anonymous namespace
2
3
namespace {
4
-void f1(); // COMPILANT
5
-extern void f2(); // NON_COMPILANT
+void f1(); // COMPLIANT
+extern void f2(); // NON_COMPLIANT
6
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
+int i; // COMPLIANT
+extern int i1; // NON_COMPLIANT
+static int i2; // NON_COMPLIANT - prefer to not use static as it is redundant
10
} // namespace
11
12
namespace named {
13
-static const int i[] = {1}; // COMPILANT - exception
+static const int i[] = {1}; // COMPLIANT - exception
14
}
0 commit comments