Skip to content

Swift: Remove outdated deprecated library APIs - #23207

Merged
jketema merged 1 commit into
mainfrom
jketema/dep-swift
Nov 23, 2026
Merged

jketema merged 1 commit into
mainfrom
jketema/dep-swift

Conversation

@jketema

@jketema jketema commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Remove obsolete indexed base-type, named-pattern, and basic-block control predicates identified by config/blame-deprecations.mjs; the replacement inherited-type, variable, and edge-dominance APIs remain unchanged.

Remove obsolete indexed base-type, named-pattern, and basic-block control predicates identified by config/blame-deprecations.mjs; the replacement inherited-type, variable, and edge-dominance APIs remain unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7be1d7da-9061-47a8-bf98-b3169476add9
@jketema
jketema marked this pull request as ready for review November 23, 2026 13:01
@jketema
jketema requested a review from a team as a code owner November 23, 2026 13:01
Copilot AI adaptive review requested due to automatic review settings November 23, 2026 13:01

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.

🔵 Needs a closer look

Approval should be deferred because removing six public Swift QL predicates requires human confirmation of external query-pack compatibility and release/deprecation policy beyond what the repository snapshot can establish.

No open issues 🎉

What changed in this PR

This pull request removes obsolete deprecated Swift CodeQL library APIs and documents the breaking changes while retaining their recommended replacements.

Changes:

  • Removes deprecated indexed base-type and base-type declaration predicates from TypeDecl.
  • Removes hasVarDecl from NamedPattern.
  • Removes deprecated basic-block control predicates from BasicBlocks.
  • Documents the removed APIs and their replacements in a breaking change note.
File Description
swift/​ql/​lib/​codeql/​swift/​elements/​pattern/​internal/​NamedPatternImpl.qll Removes the deprecated hasVarDecl predicate.
swift/​ql/​lib/​codeql/​swift/​elements/​decl/​internal/​TypeDeclImpl.qll Removes deprecated indexed base-type predicates.
swift/​ql/​lib/​codeql/​swift/​controlflow/​BasicBlocks.qll Removes deprecated immediatelyControls and controls predicates.
swift/​ql/​lib/​change-notes/​2026-11-18-outdated-deprecations.md Documents the breaking API removals and their replacement APIs.

Review effort: Lite (adaptive)

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

LGTM!

@jketema
jketema merged commit e54be54 into main Nov 23, 2026
28 checks passed
@jketema
jketema deleted the jketema/dep-swift branch November 23, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants