We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff57bb4 commit c3e650aCopy full SHA for c3e650a
c/misra/test/rules/RULE-8-2/FunctionTypesNotInPrototypeForm.expected.clang
@@ -0,0 +1,3 @@
1
+| test.c:3:6:3:7 | f1 | Function f1 declares parameter that is unnamed. |
2
+| test.c:4:6:4:7 | f2 | Function f2 does not specifiy void for no parameters present. |
3
+| test.c:7:5:7:6 | f5 | Function f5 declares parameter in unsupported declaration list. |
c/misra/test/rules/RULE-8-2/test.c.clang
@@ -0,0 +1,9 @@
+void f(int x); // COMPLIANT
+void f0(void); // COMPLIANT
+void f1(int); // NON_COMPLIANT
4
+void f2(); // NON_COMPLIANT
5
+// void f3(x); // NON_COMPILABLE
6
+void f4(const x); // NON_COMPLIANT[FALSE_NEGATIVE]
7
+int f5(x) // NON_COMPLIANT
8
+ int x;
9
+{ return 1; }
0 commit comments