Skip to content

Handle parenthesized expressions in LoopConditionChecker. - #6290

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_1012915260
Nov 4, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_1012915260

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Handle parenthesized expressions in LoopConditionChecker.

Unwrap parentheses before resolving the updated variable symbol in UpdateScanner, and look through ParenthesizedTree in LoopConditionVisitor.

Fixes #6213

Unwrap parentheses before resolving the updated variable symbol in `UpdateScanner`, and look through `ParenthesizedTree` in `LoopConditionVisitor`.

Fixes #6213

PiperOrigin-RevId: 1013450475
@copybara-service
copybara-service Bot merged commit a1750c3 into master Nov 4, 2026
1 check passed
@copybara-service
copybara-service Bot deleted the test_1012915260 branch November 4, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LoopConditionChecker reports a false positive when the increment operand is parenthesized

1 participant