Skip to content

Cfg: Minor tweaks in preparation for Unified - #22476

Merged
aschackmull merged 2 commits into
github:mainfrom
aschackmull:cfg/tweaks
Sep 1, 2026
Merged

Cfg: Minor tweaks in preparation for Unified#22476
aschackmull merged 2 commits into
github:mainfrom
aschackmull:cfg/tweaks

Conversation

@aschackmull

Copy link
Copy Markdown
Contributor

This is a noop for existing implementations and a small convenience for unified.

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

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 narrowly scoped exclusions align with existing statement CFG semantics and introduce no unresolved issues.

Review tier: Balanced
Findings: None

What changed in this PR

Prepares shared CFG construction for Unified AST nodes without changing existing implementations.

Changes:

  • Treats block and try statements as pre-order when they also classify as expressions.
File Description
shared/​controlflow/​codeql/​controlflow/​ControlFlowGraph.qll Excludes block and try statements from default expression post-order handling.

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

@aschackmull
aschackmull merged commit 158d358 into github:main Sep 1, 2026
109 checks passed
@aschackmull
aschackmull deleted the cfg/tweaks branch September 1, 2026 08:41
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