-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Swift: switch to shared, parameterized CFG library #15219
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
MathiasVP
merged 13 commits into
github:main
from
rdmarsh2:rdmarsh2/swift/parameterized-cfg-library
Jan 16, 2024
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0e5255e
Swift: switch to shared, parameterized CFG library
rdmarsh2 3738e19
Swift: fix compilation failures outside CFG code
rdmarsh2 a9c9170
Swift: fix missing keypath CFGs
rdmarsh2 41ac0fc
Swift: use toString and Location from shared CFG library
rdmarsh2 2f0d052
Swift: header comment for ControlFlowGraphParameter
rdmarsh2 ea4855b
Swift: add change note for parameterized CFG library
rdmarsh2 86f59a1
Swift: add AnnotatedExitNode to cfg to match prior interface
rdmarsh2 2d457e1
Swift: autoformat for CFG library
rdmarsh2 80452cc
Swift: redirect consistency queries to new module
rdmarsh2 51acd11
Swift: accept test output
rdmarsh2 ec6d8da
Swift: merge ControlFlowGraphParameter into ControlFlowGraphImplSpecific
rdmarsh2 e735ced
Swift: Autoformat.
MathiasVP c38ae93
Swift: Fix import.
MathiasVP File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
import codeql.swift.controlflow.internal.ControlFlowGraphImplShared::Consistency | ||
import codeql.swift.controlflow.internal.ControlFlowGraphImplSpecific::CfgImpl::Consistency |
4 changes: 4 additions & 0 deletions
4
swift/ql/lib/change-notes/2024-01-05-parameterized-cfg-library.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
category: minorAnalysis | ||
--- | ||
* The control flow graph library (`codeql.swift.controlflow`) has been transitioned to use the shared implementation from the `codeql/controlflow` qlpack. No result changes are expected due to this change. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
swift/ql/lib/codeql/swift/controlflow/internal/AstControlFlowTrees.qll
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'm not sure I would have put a change note here (since no users are expected to notice this change), but I guess it doesn't hurt 😄
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.
Ah, that's my fault - I asked for a change note because the check was failing, without thinking about whether should have just added the flag to say that one is not required. I agree it doesn't do any harm.