-
Notifications
You must be signed in to change notification settings - Fork 1.7k
C++: Update static call target resolution semantics in dataflow #19500
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 4 commits into
github:main
from
MathiasVP:always-apply-manual-models-when-resolving-calls
May 16, 2025
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
c6df950
C++: Add tests to exercise the upcoming behavior of function dispatch…
MathiasVP 69a1a87
C++: Update semantics of picking the static call target in dataflow.
MathiasVP e75dcd2
C++: Accept test changes.
MathiasVP d31ddad
C++: Small refactoring.
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
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
11 changes: 8 additions & 3 deletions
11
cpp/ql/test/library-tests/dataflow/external-models/sinks.expected
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,5 +1,10 @@ | ||
| asio_streams.cpp:93:29:93:39 | *recv_buffer | remote-sink | | ||
| asio_streams.cpp:103:29:103:39 | *send_buffer | remote-sink | | ||
| test.cpp:9:10:9:10 | 0 | test-sink | | ||
| test.cpp:11:10:11:10 | x | test-sink | | ||
| test.cpp:15:10:15:10 | y | test-sink | | ||
| test.cpp:12:10:12:10 | 0 | test-sink | | ||
| test.cpp:14:10:14:10 | x | test-sink | | ||
| test.cpp:18:10:18:10 | y | test-sink | | ||
| test.cpp:22:10:22:10 | z | test-sink | | ||
| test.cpp:26:10:26:11 | y2 | test-sink | | ||
| test.cpp:29:10:29:11 | y3 | test-sink | | ||
| test.cpp:33:10:33:11 | z2 | test-sink | | ||
| test.cpp:36:10:36:11 | z3 | test-sink | |
2 changes: 1 addition & 1 deletion
2
cpp/ql/test/library-tests/dataflow/external-models/sources.expected
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,2 +1,2 @@ | ||
| asio_streams.cpp:87:34:87:44 | read_until output argument | remote | | ||
| test.cpp:7:10:7:18 | call to ymlSource | local | | ||
| test.cpp:10:10:10:18 | call to ymlSource | local | |
7 changes: 6 additions & 1 deletion
7
cpp/ql/test/library-tests/dataflow/external-models/steps.expected
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,2 +1,7 @@ | ||
| asio_streams.cpp:100:64:100:71 | *send_str | asio_streams.cpp:100:44:100:62 | call to buffer | | ||
| test.cpp:13:18:13:18 | x | test.cpp:13:10:13:16 | call to ymlStep | | ||
| test.cpp:17:24:17:24 | x | test.cpp:17:10:17:22 | call to ymlStepManual | | ||
| test.cpp:21:27:21:27 | x | test.cpp:21:10:21:25 | call to ymlStepGenerated | | ||
| test.cpp:25:35:25:35 | x | test.cpp:25:11:25:33 | call to ymlStepManual_with_body | | ||
| test.cpp:28:35:28:35 | 0 | test.cpp:28:11:28:33 | call to ymlStepManual_with_body | | ||
| test.cpp:32:38:32:38 | 0 | test.cpp:32:11:32:36 | call to ymlStepGenerated_with_body | | ||
| test.cpp:35:38:35:38 | x | test.cpp:35:11:35:36 | call to ymlStepGenerated_with_body | |
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
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.
[nitpick] Consider rephrasing for clarity, e.g. 'If there is a source callable and no manual summary exists, use the source callable.'
Copilot uses AI. Check for mistakes.