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.
TNoRelationalOperatorInLoopCondition
1 parent 2116400 commit 1f8083aCopy full SHA for 1f8083a
cpp/misra/src/rules/RULE-9-5-1/LegacyForStatementsShouldBeSimple.ql
@@ -369,7 +369,7 @@ class AlertType extends TAlertType {
369
or
370
this = TNoRelationalOperatorInLoopCondition(_, _) and
371
result =
372
- "The $@ does not compare the counter variable to an expression using a relational operator."
+ "The $@ does not determine termination based only on a comparison against the value of the counter variable."
373
374
this = TLoopCounterMutatedInLoopBody(_, _) and
375
result = "The $@ may be mutated in a location other than its update expression."
0 commit comments