Skip to content

Unified: Include short-circuiting compound assignments. - #22619

Merged
aschackmull merged 1 commit into
github:mainfrom
aschackmull:unified/compoundassign-fix
Sep 18, 2026
Merged

aschackmull merged 1 commit into
github:mainfrom
aschackmull:unified/compoundassign-fix

Conversation

@aschackmull

Copy link
Copy Markdown
Contributor

Small followup for #22595

Copilot AI balanced review requested due to automatic review settings September 18, 2026 09:26
@aschackmull
aschackmull requested a review from a team as a code owner September 18, 2026 09:26
@aschackmull aschackmull added the no-change-note-required This PR does not need a change note label Sep 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The operator additions correctly activate the existing short-circuit CFG handling without introducing unresolved issues.

Review effort: Balanced
Findings: None

What changed in this PR

Extends unified assignment modeling to recognize short-circuiting compound assignments.

Changes:

  • Adds &&=, ||=, and ??= to CompoundAssignExpr.
  • Makes AssignmentImpl private while retaining its public alias.
File Description
unified/​ql/​lib/​codeql/​unified/​internal/​AstExtra.qll Expands compound-assignment recognition and encapsulates its implementation class.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@aschackmull
aschackmull merged commit 0a6ce2d into github:main Sep 18, 2026
15 checks passed
@aschackmull
aschackmull deleted the unified/compoundassign-fix branch September 18, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants