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 b7ae38e commit 86aaa0eCopy full SHA for 86aaa0e
cpp/misra/test/rules/RULE-9-5-1/test.cpp
@@ -224,13 +224,13 @@ int main() {
224
g1(&l);
225
}
226
227
- for (int i = j; i < k; i += l) { // NON_COMPLIANT: The loop step is passed to
228
- // a non-const reference parameter
+ for (int i = j; i < k; i += l) { // COMPLIANT: The loop step is passed to
+ // a const reference parameter
229
f2(l);
230
231
232
233
- // a non-const pointer parameter
+ // a const pointer parameter
234
g2(&l);
235
236
0 commit comments