Repository navigation
C++ call graph: pin alias ctor/receiver typing, record fmt miss buckets (Part of #9328) - #9357
Merged
Merged
Conversation
…uckets (Part of #9328) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
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 #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 andAlias 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_targetx.begin()incolor.h:format:emphasis.begin()andreset_color.begin()are different classes'begin, and the resolver emits one row per (caller, callee name), keeping the best-ranked receiver. Not alias typing.audit_check.pyall 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):basic_string_viewctors, ~50 edges, plusambiguous/overload253): resolver, overload work.T x(args);/T x;(~30): detectorcalls_out, moves goldens.Lessons for agents
callgraph_triage.py <lang>on current main: a sibling PR (Improve C++ Level-2 call-graph resolution (+7.8pp recall, +9.7pp resolution recall, 99.0% precision) #9299) had already landed the class the plan targeted.🤖 Generated with Claude Code