-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Conversation
There was a problem hiding this 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`. |
There was a problem hiding this comment.
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.
* 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.
* 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`. |
There was a problem hiding this comment.
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.
* 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
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.