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 b13ffd2 commit 82f9adcCopy full SHA for 82f9adc
cpp/common/src/codingstandards/cpp/Loops.qll
@@ -389,7 +389,7 @@ class LegacyForLoopCondition extends RelationalOperation {
389
Expr loopBound;
390
391
LegacyForLoopCondition() {
392
- loopCounter = this.getAnOperand() and
+ loopCounter = this.getAnOperand().getAChild*() and
393
loopBound = this.getAnOperand() and
394
loopCounter.getTarget() = getAnIterationVariable(forLoop) and
395
loopBound != loopCounter
0 commit comments