Skip to content

Commit 4f93544

Browse files
Copilot feedback
1 parent f58a6d6 commit 4f93544

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cpp/common/test/rules/unusedparameter/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
};

cpp/misra/src/rules/RULE-0-2-2/UnusedParameterMisraCpp.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

rule_packages/cpp/DeadCode8.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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",
@@ -21,7 +21,7 @@
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
}

0 commit comments

Comments
 (0)