Skip to content

Commit 1f8083a

Browse files
committed
Change phrasing of message from TNoRelationalOperatorInLoopCondition
1 parent 2116400 commit 1f8083a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/misra/src/rules/RULE-9-5-1/LegacyForStatementsShouldBeSimple.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ class AlertType extends TAlertType {
369369
or
370370
this = TNoRelationalOperatorInLoopCondition(_, _) and
371371
result =
372-
"The $@ does not compare the counter variable to an expression using a relational operator."
372+
"The $@ does not determine termination based only on a comparison against the value of the counter variable."
373373
or
374374
this = TLoopCounterMutatedInLoopBody(_, _) and
375375
result = "The $@ may be mutated in a location other than its update expression."

0 commit comments

Comments
 (0)