Skip to content

Cfg: A few minor tweaks in preparation for Ruby - #22317

Merged
aschackmull merged 2 commits into
github:mainfrom
aschackmull:cfg/ruby-tweaks
Aug 11, 2026
Merged

Cfg: A few minor tweaks in preparation for Ruby#22317
aschackmull merged 2 commits into
github:mainfrom
aschackmull:cfg/ruby-tweaks

Conversation

@aschackmull

Copy link
Copy Markdown
Contributor

Two minor tweaks:

  • Support empty try-bodies. This can happen in Ruby, but probably not in most other cases. No harm adding support.
  • Support exceptions in parameter defaults. They are potentially arbitrary expressions, so we should make sure to link any exception edges originating from there.

None of this should affect existing usage of the library.

Copilot AI balanced review requested due to automatic review settings August 11, 2026 09:14
@aschackmull
aschackmull requested a review from a team as a code owner August 11, 2026 09:14
@aschackmull aschackmull added the no-change-note-required This PR does not need a change note label Aug 11, 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.

Pull request overview

Extends the shared CFG library for Ruby-compatible control-flow scenarios.

Changes:

  • Routes abrupt completions from parameter defaults to callable exits.
  • Supports control flow through empty try bodies.
Show a summary per file
File Description
shared/controlflow/codeql/controlflow/ControlFlowGraph.qll Updates callable and try-statement CFG construction.

Review details

Tip

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

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@aschackmull

aschackmull commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author
Rerun has been triggered: 2 restarted 🚀

@aschackmull
aschackmull merged commit b326ed8 into github:main Aug 11, 2026
109 checks passed
@aschackmull
aschackmull deleted the cfg/ruby-tweaks branch August 11, 2026 10: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