Skip to content

C++ call graph: pin alias ctor/receiver typing, record fmt miss buckets (Part of #9328) - #9357

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/9328-20261126T0058Z
Nov 26, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/9328-20261126T0058Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #9328 (does not close it).

Re-measured C++ vs libclang 18.1.1 on fmt (3311 reference edges, 1685 linked) after #9299 landed. The queued plan targeted "C++ constructor/receiver typing through type aliases". That class is already handled on main (class_alias_targets, #6266/#9299), so no resolver change is made here. This PR pins that behaviour and records what the buckets really are, so the next sweep does not re-propose it.

What changed

  • tests/core_engine/test_call_resolver_cpp_alias_9328.py: alias-named ctor call, auto v = Alias(..) receiver and Alias x(..) declarator receiver all link to the aliased class, never to another class's same-name method.
  • .claude/skills/callgraph-miss-sweep/SKILL.md: two rows in the known-pattern table with the measured shapes.

Facts checked

  • not_extracted/other (870), every item classified by its source line: macro-expanded callees ~445, implicit conversion operators ~155, T x(args); / T x; declarator constructs ~30, alias-named ctor calls ~50. The alias ctor calls DO link (fixture and a fmt run); they land on a different ctor than the reference's (basic_string_view(const Char*) @537 vs the template ctor @549), which is an overload choice by argument type.
  • wrong / confident_other_target x.begin() in color.h:format: emphasis.begin() and reset_color.begin() are different classes' begin, and the resolver emits one row per (caller, callee name), keeping the best-ranked receiver. Not alias typing.
  • Gates: new test 3 passed; audit_check.py all clear (ruff, mypy, dead-key, doc-refs, ast-accuracy, signal-coverage). No engine code touched, so no golden re-bless.

Class / Sibling gaps

Class: C++ constructor/receiver typing through type aliases (using X = Y<..>, typedef). Every member (alias-named ctor call, auto v = Alias(..), Alias x(args) receiver) is already handled on main and is now pinned by a test; none: every member handled. The measured residual buckets are different mechanisms, listed for the tick to file (no burned estate needs any of them):

  • ctor overload by argument type (basic_string_view ctors, ~50 edges, plus ambiguous/overload 253): resolver, overload work.
  • one edge per (caller, callee name) across receivers of different classes: resolver schema change.
  • declarator constructs T x(args); / T x; (~30): detector calls_out, moves goldens.
  • macro-expanded callees (~445), conversion operators (~155): preprocessor-blind / no call text; likely refused by design.

Lessons for agents

🤖 Generated with Claude Code

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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 26, 2026 01:47
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 01:48
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit 7606125 into main Nov 26, 2026
60 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/9328-20261126T0058Z branch November 26, 2026 01:57
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