-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Swift: make pack compilable with Swift 6 #17699
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
Changes from 21 commits
524686c
d3fb254
91f683d
d325b8e
df8184e
5e6228c
0141702
3877eb8
66e43c4
7f3745c
34b8b43
3aa7123
ce4273d
5a045be
1f35607
6f0f739
be12649
954fbc4
f3ea75d
24c4e87
87a08fe
c875667
afd4585
9e1e56f
02a0021
51f7129
f0dc4f5
570393f
c2c23c8
6aa43e0
e589b1f
8245e6c
fa43207
8bcc5f4
6130679
4585852
d1915c7
814218c
1d43abf
23ed48e
14b70b8
e08eac0
1fc112e
e9deec7
eeed2c2
9da7e8a
4ac602c
7ee3bf9
bed6387
f81f30c
a4f7981
a82d37e
263bd69
926d65b
198417c
3bc822f
5ca89ea
92ec7e8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,8 @@ | ||
| import swift | ||
|
|
||
| from AstNode n | ||
| where n.getAPrimaryQlClass().matches("Unresolved%") | ||
| select n | ||
| from AstNode n, string cls | ||
| where | ||
| cls = n.getAPrimaryQlClass() and | ||
| cls.matches("Unresolved%") and | ||
| not n.getLocation() instanceof UnknownLocation | ||
| select n, cls |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,18 +15,35 @@ private class CollectionSummaries extends SummaryModelCsv { | |
| row = | ||
| [ | ||
| ";Collection;true;prefix(_:);;;Argument[-1];ReturnValue;taint", | ||
| ";Collection;true;prefix(_:);;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value", | ||
| ";Collection;true;prefix(through:);;;Argument[-1];ReturnValue;taint", | ||
| ";Collection;true;prefix(through:);;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value", | ||
| ";Collection;true;prefix(upTo:);;;Argument[-1];ReturnValue;taint", | ||
| ";Collection;true;prefix(upTo:);;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value", | ||
| ";Collection;true;prefix(while:);;;Argument[-1];ReturnValue;taint", | ||
| ";Collection;true;prefix(while:);;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value", | ||
| ";Collection;true;suffix(_:);;;Argument[-1];ReturnValue;taint", | ||
| ";Collection;true;suffix(_:);;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value", | ||
| ";Collection;true;suffix(from:);;;Argument[-1];ReturnValue;taint", | ||
| ";Collection;true;suffix(_:);;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value", | ||
Check warningCode scanning / CodeQL Redundant assignment Warning The variable row Error loading related location Loading the same value Error loading related location Loading
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It wouldn't do any harm to fix these. |
||
| ";Collection;true;dropFirst(_:);;;Argument[-1];ReturnValue;taint", | ||
| ";Collection;true;dropFirst(_:);;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value", | ||
| ";Collection;true;dropLast(_:);;;Argument[-1];ReturnValue;taint", | ||
| ";Collection;true;dropLast(_:);;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value", | ||
| ";Collection;true;flatMap(_:);;;Argument[-1];ReturnValue;taint", | ||
| ";Collection;true;flatMap(_:);;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value", | ||
| ";Collection;true;map(_:);;;Argument[-1];ReturnValue;taint", | ||
| ";Collection;true;map(_:);;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value", | ||
| ";Collection;true;split(maxSplits:omittingEmptySubsequences:whereSeparator:);;;Argument[-1];ReturnValue;taint", | ||
| ";Collection;true;split(separator:maxSplits:omittingEmptySubsequences:);;;Argument[-1];ReturnValue;taint", | ||
| ";Collection;true;removeFirst();;;Argument[-1];ReturnValue;taint", | ||
| ";Collection;true;popFirst();;;Argument[-1];ReturnValue;taint", | ||
| ";Collection;true;randomElement();;;Argument[-1].CollectionElement;ReturnValue.OptionalSome;value", | ||
| ";Collection;true;randomElement(using:);;;Argument[-1].CollectionElement;ReturnValue.OptionalSome;value", | ||
| ";Collection;true;trimmingPrefix(_:);;;Argument[-1];ReturnValue;taint", | ||
| ";Collection;true;trimmingPrefix(_:);;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value", | ||
| ";Collection;true;trimmingPrefix(while:);;;Argument[-1];ReturnValue;taint", | ||
| ";Collection;true;trimmingPrefix(while:);;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value", | ||
| ";RangeReplaceableCollection;true;init(_:);;;Argument[0];ReturnValue.CollectionElement;taint", | ||
| ";RangeReplaceableCollection;true;init(_:);;;Argument[0].CollectionElement;ReturnValue.CollectionElement;value", | ||
| ";RangeReplaceableCollection;true;init(repeating:count:);;;Argument[0];ReturnValue.CollectionElement;value", | ||
|
|
@@ -38,9 +55,19 @@ private class CollectionSummaries extends SummaryModelCsv { | |
| ";RangeReplaceableCollection;true;insert(_:at:);;;Argument[0];Argument[-1];taint", | ||
| ";RangeReplaceableCollection;true;replaceSubrange(_:with:);;;Argument[1];Argument[-1];taint", | ||
| ";RangeReplaceableCollection;true;replaceSubrange(_:with:);;;Argument[1].CollectionElement;Argument[-1].CollectionElement;value", | ||
| ";BidirectionalCollection;true;dropLast(_:);;;Argument[-1];ReturnValue;taint", | ||
| ";BidirectionalCollection;true;dropLast(_:);;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value", | ||
| ";BidirectionalCollection;true;joined(separator:);;;Argument[-1..0];ReturnValue;taint", | ||
| ";BidirectionalCollection;true;joined(separator:);;;Argument[-1].CollectionElement;ReturnValue;taint", | ||
| ";BidirectionalCollection;true;joined(separator:);;;Argument[-1].CollectionElement.CollectionElement;ReturnValue.CollectionElement;value", | ||
| ";BidirectionalCollection;true;last(where:);;;Argument[-1];ReturnValue;taint", | ||
| ";BidirectionalCollection;true;popLast();;;Argument[-1];ReturnValue;taint", | ||
| ";BidirectionalCollection;true;reversed();;;Argument[-1];ReturnValue;taint", | ||
| ";BidirectionalCollection;true;reversed();;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value", | ||
| ";BidirectionalCollection;true;suffix(_:);;;Argument[-1];ReturnValue;taint", | ||
| ";BidirectionalCollection;true;suffix(_:);;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value", | ||
| ";BidirectionalCollection;true;suffix(from:);;;Argument[-1];ReturnValue;taint", | ||
| ";BidirectionalCollection;true;suffix(_:);;;Argument[-1].CollectionElement;ReturnValue.CollectionElement;value", | ||
Check warningCode scanning / CodeQL Redundant assignment Warning The variable row Error loading related location Loading the same value Error loading related location Loading |
||
| ";MutableCollection;true;withContiguousMutableStorageIfAvailable(_:);;;Argument[-1];Argument[0].Parameter[0].CollectionElement;taint", | ||
| ";MutableCollection;true;withContiguousMutableStorageIfAvailable(_:);;;Argument[-1].CollectionElement;Argument[0].Parameter[0].CollectionElement;value", | ||
| ";MutableCollection;true;withContiguousMutableStorageIfAvailable(_:);;;Argument[0].Parameter[0].CollectionElement;Argument[-1].CollectionElement;value", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1 @@ | ||
| | file://:0:0:0:0 | ... .combine(_:) | | ||
| | unresolved.swift:5:1:5:14 | UnresolvedSpecializeExpr | | ||
| | unresolved.swift:5:1:5:14 | UnresolvedSpecializeExpr | UnresolvedSpecializeExpr | |
Uh oh!
There was an error while loading. Please reload this page.