Skip to content

Automated rollback of commit a1750c372709493b79f5647ea39d487c6cb0c95a. - #6318

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_1015708830
Nov 6, 2026
Merged

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

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Automated rollback of commit a1750c3.

*** Reason for rollback ***

Breaks handling of while and do-while loops

*** Original change description ***

Handle parenthesized expressions in LoopConditionChecker.

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

Fixes #6213

*** Reason for rollback ***

Breaks handling of while and do-while loops

*** Original change description ***

Handle parenthesized expressions in `LoopConditionChecker`.

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

Fixes #6213

PiperOrigin-RevId: 1015725323
@copybara-service
copybara-service Bot merged commit 754348f into master Nov 6, 2026
8 checks passed
@copybara-service
copybara-service Bot deleted the test_1015708830 branch November 6, 2026 19:43
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