Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

Unified: Consider all class-like decls as static members in name binding - #22963

Open
hvitved wants to merge 2 commits into
github:mainfrom
hvitved:unified/static-namebinding-enum-static
Open

hvitved wants to merge 2 commits into
github:mainfrom
hvitved:unified/static-namebinding-enum-static

Conversation

@hvitved

@hvitved hvitved commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

It only worked for classes before "by accident", because they were covered by this logic, which was presumably meant to handle class fields and methods.

DCA is good.

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.

🟢 Approval recommended

No active review issues are reported for the nested class-like declaration name-binding update.

No open issues 🎉

What changed in this PR

Updates unified name binding to recognize all nested class-like declarations as static members, extending support beyond classes.

Changes:

  • Explicitly includes ClassLikeDeclaration in static-member classification.
  • Adds Swift regression coverage for qualified access to a nested enum and its case.
File Description
unified/​ql/​test/​library-tests/​static-name-binding/​test.swift Adds a nested enum and checks name binding for A.Enum.empty.
unified/​ql/​lib/​codeql/​unified/​internal/​NameBindingPlugin.qll Treats nested class-like declarations as static members.

Review effort: Max

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

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