Skip to content

Unified: Introduce ParameterEx - #22725

Open
hvitved wants to merge 1 commit into
github:mainfrom
hvitved:unified/param-ex
Open

hvitved wants to merge 1 commit into
github:mainfrom
hvitved:unified/param-ex

Conversation

@hvitved

@hvitved hvitved commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Replaces #22690 by instead building on top of #22721 and only synthesizing parameters.

@hvitved hvitved added the no-change-note-required This PR does not need a change note label Oct 1, 2026
@hvitved
hvitved marked this pull request as ready for review October 1, 2026 19:29
@hvitved
hvitved requested a review from a team as a code owner October 1, 2026 19:29
@hvitved
hvitved requested review from asgerf and a balanced review from Copilot October 1, 2026 19:29

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

🟡 Changes recommended

Callable ownership and observer-backed Swift properties are modeled incorrectly.

Review effort: Balanced
Findings: 1 High severity · 1 Medium severity · 1 Low severity

Open (3)
What changed in this PR

Introduces ParameterEx to unify source and synthesized parameters, including Swift receivers and memberwise initializer parameters.

Changes:

  • Adds the ParameterEx abstraction and plugin hook.
  • Implements Swift parameter synthesis.
  • Extends constructor tests and expected results.
File Description
ParameterEx.qll Defines unified parameter entities.
AstPlugin.qll Adds parameter-synthesis plugin API.
AstPluginSwift.qll Implements Swift memberwise parameters.
test.ql Adds parameter queries.
test.expected Records generated expectations.

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

Comment thread unified/ql/lib/codeql/unified/internal/AstPluginSwift.qll
Comment thread unified/ql/lib/codeql/unified/internal/ParameterEx.qll
Comment thread unified/ql/lib/codeql/unified/internal/AstPlugin.qll Outdated

This branch has not been deployed

No deployments
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 Unified

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants