Repository navigation
#3174: a parameter passed through a function-pointer field is said so, never as a call of a function the field is named after - #3202
Merged
Conversation
…, never as a call of a function the field is named after Both sink recorders took a call's spelling as its callee, so glfw's `_glfw.platform.setWindowTitle(window, title)` was a sink to a function named setWindowTitle that no unit defines: 'retains param 0 (passed to setWindowTitle, which no unit defines)', 996 functions in 15 libraries of the #3116 survey, most of them this dispatch. A member-reference callee is recorded marked (`*field`), and the retention reason says 'passed through the function pointer field setWindowTitle, which no unit decides': which function the field holds is a registry fact. The parameter stays unproven, honestly; a field named free or malloc is no longer taken for the libc call (Law 4), as #3172 did for returns. Fixture: conan_facade_dispatch_sink_test.
Contributor
Author
|
Battery GREEN on 0b5fd09 ( |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes the dispatch shape of #3174. Both sink recorders mark a member-reference callee (
*field), and the retention reason reads 'passed through the function pointer field X, which no unit decides' instead of 'passed to X, which no unit defines'. A field named free or malloc is no longer taken for the libc call (Law 4), as #3172 did for returns. Fixture conan_facade_dispatch_sink_test. Gate and internals lane green before the rebase; battery running after it.