Repository navigation
call graph: an ObjC/ObjC++ method f calling bare f( reaches the free f (Part of #5699) - #5973
Merged
Merged
Conversation
…f (Part of #5699) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 22, 2026 06:26
Contributor
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.
Part of #5699 (slice 2: ObjC++ probe).
Probe result: ObjC/ObjC++ (
objective-c,.mm) had the gap.int f(){}plus- (int)f:(int)a { return f(a); }produced nof -> fedge: the method header is not a call match, so the detector took the method's first bodyf(for the unit's own header and dropped it. A method is reached by message send ([self f:a]), so a baref(is the C function.Changes (4 hand-written files):
call_resolver.BARE_CALL_SKIPS_METHODSgainsobjective-c;detector.pystartsown_header_seentrue for a-/+method header; tests intest_call_resolver_bare_named_5699.py; one doc sentence indocs/calls_out_rule_contract.md.Class: a call to a different same-named unit dropped as recursion. ObjC/ObjC++ now handled;
[self f:a]and a method with no freefstay recursion/dropped (tested), instance and class methods both covered.Gates:
pr_gates --fast7/7,--ratchets9/9,crucible_check.pyboth legs PASS (golden unchanged, no re-bless).Checklist: done [c:97fa6c52]
Sibling gaps: none found. (
cpplang id on a.mmstring yields no ObjC methods;.mmroutes toobjective-c.)🤖 Generated with Claude Code