Skip to content

Commit 86aaa0e

Browse files
committed
Fix labeling of two cases
1 parent b7ae38e commit 86aaa0e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cpp/misra/test/rules/RULE-9-5-1/test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,13 @@ int main() {
224224
g1(&l);
225225
}
226226

227-
for (int i = j; i < k; i += l) { // NON_COMPLIANT: The loop step is passed to
228-
// a non-const reference parameter
227+
for (int i = j; i < k; i += l) { // COMPLIANT: The loop step is passed to
228+
// a const reference parameter
229229
f2(l);
230230
}
231231

232-
for (int i = j; i < k; i += l) { // NON_COMPLIANT: The loop step is passed to
233-
// a non-const pointer parameter
232+
for (int i = j; i < k; i += l) { // COMPLIANT: The loop step is passed to
233+
// a const pointer parameter
234234
g2(&l);
235235
}
236236

0 commit comments

Comments
 (0)