Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

C++/Swift: delete outdated deprecations #19518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 19, 2025
Merged

C++/Swift: delete outdated deprecations #19518

merged 3 commits into from
May 19, 2025

Conversation

jketema
Copy link
Contributor

@jketema jketema commented May 19, 2025

Cherry-picked from #19504. Mostly because the related internal C++ tests did get removed, so I don't want the keep the C++ deprecations around for too long without test coverage.

@jketema jketema marked this pull request as ready for review May 19, 2025 12:03
@Copilot Copilot AI review requested due to automatic review settings May 19, 2025 12:03
@jketema jketema requested review from a team as code owners May 19, 2025 12:03
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes outdated deprecated aliases and predicates from Swift and C++ QL libraries to clean up code and keep change notes in sync.

  • Swift: deleted deprecated module aliases (WeakHashingConfig, WeakHashingFlow), legacy dataflow predicates, and summary component types.
  • C++: removed deprecated security predicates/accessors and legacy hasLocationInfo helpers in dataflow utilities.
  • Updated change notes to record breaking deletions.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
swift/ql/lib/codeql/swift/security/WeakSensitiveDataHashingQuery.qll Removed deprecated module aliases WeakHashingConfig and WeakHashingFlow.
swift/ql/lib/codeql/swift/dataflow/internal/DataFlowPublic.qll Deleted deprecated hasLocationInfo predicate.
swift/ql/lib/codeql/swift/dataflow/FlowSummary.qll Removed deprecated SummaryComponent* classes and modules.
swift/ql/lib/codeql/swift/dataflow/ExternalFlow.qll Deleted deprecated parseField, parseTuple, parseEnum, and parseContent predicates.
swift/ql/lib/change-notes/2025-05-18-2025-May-outdated-deprecations.md Added notes for Swift deprecations.
cpp/ql/lib/semmle/code/cpp/security/SecurityOptions.qll Removed deprecated userInputArgument and userInputReturned overrides.
cpp/ql/lib/semmle/code/cpp/security/Security.qll Deleted deprecated userInput* and isUserInput predicates and accessors.
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll Removed deprecated hasLocationInfo predicate.
cpp/ql/lib/semmle/code/cpp/dataflow/internal/DataFlowUtil.qll Removed deprecated hasLocationInfo predicate.
cpp/ql/lib/change-notes/2025-05-18-2025-May-outdated-deprecations.md Added notes for C++ security deprecations.

* Deleted the deprecated `SummaryComponentStack` class from the `FlowSummary.qll`.
* Deleted the deprecated `SummaryComponent` module from the `FlowSummary.qll`.
* Deleted the deprecated `SummaryComponentStack` module from the `FlowSummary.qll`.
* Deleted the deprecated `RequiredSummaryComponentStack` class from the `FlowSummary.qll`.
Copy link
Preview

Copilot AI May 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding entries for the removed deprecated WeakHashingConfig and WeakHashingFlow aliases in WeakSensitiveDataHashingQuery.qll so that the change notes fully reflect all deletions.

Suggested change
* Deleted the deprecated `RequiredSummaryComponentStack` class from the `FlowSummary.qll`.
* Deleted the deprecated `RequiredSummaryComponentStack` class from the `FlowSummary.qll`.
* Deleted the deprecated `WeakHashingConfig` alias from the `WeakSensitiveDataHashingQuery.qll`.
* Deleted the deprecated `WeakHashingFlow` alias from the `WeakSensitiveDataHashingQuery.qll`.

Copilot uses AI. Check for mistakes.

Positive FeedbackNegative Feedback
* Deleted the deprecated `userInputReturn` predicate from the `Security.qll`.
* Deleted the deprecated `isUserInput` predicate and its convenience accessor from the `Security.qll`.
* Deleted the deprecated `userInputArgument` predicate from the `SecurityOptions.qll`.
* Deleted the deprecated `userInputReturned` predicate from the `SecurityOptions.qll`.
Copy link
Preview

Copilot AI May 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change notes currently omit the removal of the deprecated hasLocationInfo predicate from both DataFlowUtil.qll modules; please add entries to document these deletions for completeness.

Suggested change
* Deleted the deprecated `userInputReturned` predicate from the `SecurityOptions.qll`.
* Deleted the deprecated `userInputReturned` predicate from the `SecurityOptions.qll`.
* Deleted the deprecated `hasLocationInfo` predicate from the `DataFlowUtil.qll`.
* Deleted the deprecated `hasLocationInfo` predicate from the `DataFlowUtilLight.qll`.

Copilot uses AI. Check for mistakes.

Positive FeedbackNegative Feedback
Copy link
Contributor

@redsun82 redsun82 left a comment

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 dfbe08d into github:main May 19, 2025
25 checks passed
@jketema jketema deleted the depr branch May 19, 2025 12:39
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.