Repository navigation
Conversation
Comment on lines
+188
to
+190
| if Input::getParent+(a2) = a1 | ||
| then dir = Down() | ||
| else none() |
hvitved
force-pushed
the
unified/cfg-generated-callables
branch
from
December 3, 2026 19:31
ee697e3 to
4c255d5
Compare
hvitved
marked this pull request as ready for review
December 3, 2026 19:45
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Expanding CFG membership to generated AST nodes and callables changes downstream SSA and data-flow assumptions while CaptureSsa remains source-only, requiring broader review of these interacting analysis contracts.
No open issues 🎉
What changed in this PR
Extends unified control-flow graph construction to generated callables in source files, while keeping inline CFG tests focused on source-written callables.
Changes:
- Includes generated callables and AST nodes from source files.
- Adds callable filtering to shared CFG test helpers.
- Updates expected basic-block slices for generated Swift initializers.
| File | Description |
|---|---|
| unified/ql/test/library-tests/controlflow/cfg.ql | Restricts inline checks to source-written, non-top-level callables. |
| unified/ql/test/library-tests/controlflow/basicblock-slices.expected | Adds expected slices for generated initializers. |
| unified/ql/lib/codeql/unified/internal/ControlFlowGraph.qll | Uses file-level source checks to include generated nodes. |
| shared/controlflow/codeql/controlflow/test/TestCfg.qll | Adds optional callable filtering while preserving unrestricted defaults. |
Review effort: Balanced (adaptive)
hvitved
force-pushed
the
unified/cfg-generated-callables
branch
from
December 3, 2026 19:55
4c255d5 to
41992f6
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The first commit is best reviewed ignoring whitespaces.