We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51c0778 commit 328842eCopy full SHA for 328842e
1 file changed
cpp/misra/test/rules/RULE-8-7-1/test.cpp
@@ -154,8 +154,8 @@ void row_reader(int row[3]) {
154
int x1 = row[0]; // COMPLIANT: pointer is within boundary
155
int x2 = row[1]; // COMPLIANT: pointer is within boundary
156
int x3 = row[2]; // COMPLIANT[FALSE_POSITIVE]: pointer is within boundary
157
- int x4 = row[3]; // COMPLIANT[FALSE_POSITIVE]: pointer points one beyond the last
158
- // element, but non-compliant to Rule 4.1.3
+ int x4 = row[3]; // COMPLIANT[FALSE_POSITIVE]: pointer points one beyond the
+ // last element, but non-compliant to Rule 4.1.3
159
int x5 = row[4]; // NON_COMPLIANT: pointer points more than one
160
// beyond the last element
161
}
0 commit comments