Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit82f9adc

Browse files
committed
Make the loop counter detection more relaxed
1 parentb13ffd2 commit82f9adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎cpp/common/src/codingstandards/cpp/Loops.qll‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ class LegacyForLoopCondition extends RelationalOperation {
389389
ExprloopBound;
390390

391391
LegacyForLoopCondition(){
392-
loopCounter=this.getAnOperand()and
392+
loopCounter=this.getAnOperand().getAChild*()and
393393
loopBound=this.getAnOperand()and
394394
loopCounter.getTarget()=getAnIterationVariable(forLoop)and
395395
loopBound!=loopCounter

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp