Skip to content

Unified: Fix compilation in printCfg. - #22625

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

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

Conversation

@aschackmull

@aschackmull aschackmull commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Makes the Ast module public, but moves it to another file, so it's not exposed in import unified.

@aschackmull
aschackmull requested a review from a team as a code owner September 18, 2026 11:49
Copilot AI balanced review requested due to automatic review settings September 18, 2026 11:49
@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 refactoring preserves the implementation while resolving type visibility without expanding the public facade.

Review effort: Balanced
Findings: None

What changed in this PR

Fixes Unified printCfg compilation while keeping the control-flow AST adapter out of the public unified facade.

Changes:

  • Moves the AstSig implementation into an internal module.
  • Imports and qualifies Ast::Callable in printCfg.
File Description
unified/​ql/​lib/​ide-contextual-queries/​printCfg.ql Uses the accessible control-flow callable type.
unified/​ql/​lib/​codeql/​unified/​internal/​ControlFlowGraphImpl.qll Hosts the extracted AST adapter.
unified/​ql/​lib/​codeql/​unified/​internal/​ControlFlowGraph.qll Privately imports the adapter.

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

@hvitved hvitved 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.

unified/ql/lib/ide-contextual-queries/printCfg.ql still doesn't compile.

@aschackmull

Copy link
Copy Markdown
Contributor Author

unified/ql/lib/ide-contextual-queries/printCfg.ql still doesn't compile

I think it does - I think it's just the CI check, which also tries to compile main.

@aschackmull
aschackmull merged commit 48e43e1 into github:main Sep 18, 2026
12 of 14 checks passed
@aschackmull
aschackmull deleted the unified/printcfg-fix branch September 18, 2026 12:12
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