File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
common/test/rules/unusedparameter
misra/src/rules/RULE-0-2-2 Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class A {
1616 void b (int x) {} // NON_COMPLIANT
1717 void c (int ) {} // COMPLIANT
1818
19- // This is a violation of A0-1-4, but not a violation of Rule 0-0 -2, so it's
19+ // This is a violation of A0-1-4, but not a violation of Rule 0-2 -2, so it's
2020 // accepted by the default shared logic. See A0-1-4 tests for coverage.
2121 virtual void d (int x, int y) {} // COMPLIANT
2222};
Original file line number Diff line number Diff line change 11/**
22 * @id cpp/misra/unused-parameter-misra-cpp
3- * @name RULE-0-2-2: There shall be no unused named parameters in non-virtual functions
3+ * @name RULE-0-2-2: There shall be no unused named parameters in both virtual and non-virtual functions
44 * @description Unused parameters can indicate a mistake when implementing the function.
55 * @kind problem
66 * @precision very-high
Original file line number Diff line number Diff line change 99 {
1010 "description" : " Unused parameters can indicate a mistake when implementing the function." ,
1111 "kind" : " problem" ,
12- "name" : " There shall be no unused named parameters in non-virtual functions" ,
12+ "name" : " There shall be no unused named parameters in both virtual and non-virtual functions" ,
1313 "precision" : " very-high" ,
1414 "severity" : " warning" ,
1515 "short_name" : " UnusedParameterMisraCpp" ,
2121 "shared_implementation_short_name" : " UnusedParameter"
2222 }
2323 ],
24- "title" : " There shall be no unused named parameters in non-virtual functions."
24+ "title" : " There shall be no unused named parameters in both virtual and non-virtual functions."
2525 }
2626 }
2727}
You can’t perform that action at this time.
0 commit comments