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 0f998ea commit 87a5158Copy full SHA for 87a5158
cpp/misra/test/rules/RULE-9-5-1/test.cpp
@@ -208,12 +208,12 @@ int main() {
208
int *m = &k;
209
}
210
211
- for (int i = j; i < k; i += l) { // COMPLIANT: The loop counter is taken
+ for (int i = j; i < k; i += l) { // COMPLIANT: The loop bound is taken
212
// as a const reference
213
const int &m = k;
214
215
216
217
// as a const pointer
218
const int *m = &k;
219
0 commit comments