Skip to content

Commit 3cd6908

Browse files
rvermeulenlcartey
authored andcommitted
Address incorrect call of isInvalidForLoopIncrementation
1 parent c02624b commit 3cd6908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/autosar/src/rules/M6-5-2/NotEqualsInLoopCondition.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import codingstandards.cpp.Loops
1919
from ForStmt fs, LoopControlVariable v
2020
where
2121
not isExcluded(fs, LoopsPackage::notEqualsInLoopConditionQuery()) and
22-
isInvalidForLoopIncrementation(fs, v)
22+
isInvalidForLoopIncrementation(fs, v, _)
2323
select fs,
2424
"For-loop counter $@ is updated by an increment larger than 1 and tested in the condition using == or !=.",
2525
v, v.getName()

0 commit comments

Comments
 (0)