Skip to content

call graph: an ObjC/ObjC++ method f calling bare f( reaches the free f (Part of #5699) - #5973

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5699-20261022T0610Z
Oct 22, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5699-20261022T0610Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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 no f -> f edge: the method header is not a call match, so the detector took the method's first body f( for the unit's own header and dropped it. A method is reached by message send ([self f:a]), so a bare f( is the C function.

Changes (4 hand-written files): call_resolver.BARE_CALL_SKIPS_METHODS gains objective-c; detector.py starts own_header_seen true for a -/+ method header; tests in test_call_resolver_bare_named_5699.py; one doc sentence in docs/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 free f stay recursion/dropped (tested), instance and class methods both covered.

Gates: pr_gates --fast 7/7, --ratchets 9/9, crucible_check.py both legs PASS (golden unchanged, no re-bless).

Checklist: done [c:97fa6c52]

Sibling gaps: none found. (cpp lang id on a .mm string yields no ObjC methods; .mm routes to objective-c.)

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 22, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 22, 2026 06:26
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 22, 2026 06:29
@squid-protocol
squid-protocol merged commit 258679a into main Oct 22, 2026
103 checks passed
@squid-protocol
squid-protocol deleted the churn/5699-20261022T0610Z branch October 22, 2026 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant