Skip to content

Call graph (C++): close the biggest miss and wrong-link buckets against libclang (recall 51.0%, strict precision 91.3%) #9328

Backlog

Description

@squid-protocol

What

Level 2 call graph, C++ against libclang 18.1.1 (tests/call_graph_resolution_cpp_baseline.json, 2026-11): recall 51.0%, resolution recall 80.9%, confident strict precision 91.3% (8 confidently wrong overloads). Both sides of the gap are open: misses, and links the engine states that the compiler does not. Find the biggest miss buckets and close them.

How

Follow .claude/skills/callgraph-miss-sweep/SKILL.md and docs/graph_accuracy.md ("Adding a language, and finding what to fix"):
callgraph_triage.py cpp --samples 5, recognise each bucket against the known-pattern table, check samples against the source (a reference is not ground truth: CLAUDE.md, comparative claims), root-cause one with explain_call.py, fix the whole class, re-run callgraph_check.py --langs cpp.

Notes

  • The reference needs libclang==18.1.1 from pip (this box has g++ but no clang binary): install it in the checkout's own venv (and g++ for the C++ system headers).
  • C++ shares the clang adapter with C (tests/tools/clang_callgraph.py); a C fix that applies here should be made once, and overload choice is its own known bucket (confident_wrong_overload).
  • Ledger shapes for C++ (14 unvalidated in docs/self_scan/graph_comparison_ledger.json, tracked in Graph comparison ledger: work the verdict backlog (167 open shapes) #3799) may share causes: verify them with the same samples.
  • One PR for C++ only. A change to a rule moves the golden masters: bless in clean venvs and attribute the diff (docs/agents/differential-scan.md).

Done when: the top three miss buckets are fixed or filed with counts, and C++ recall is higher and strict precision is not lower; or each remaining bucket has an issue.

Part of the milestone "Compiler call-graph comparison" (#3772, closed epic).

Activity

  1. added
    core-engine
    on Nov 26, 2026
  2. squid-protocol commented on Nov 26, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 9328-20261126T0058Z (host melek) ended without a PR. plan-held on 9327 overlap; requeued behind it

  3. squid-protocol commented on Nov 26, 2026

    @squid-protocol
    OwnerAuthor

    PR #9357 pins the already-landed C++ alias handling (#9299) and records measured fmt buckets. Sibling gaps (no burned estate needs them): ctor overload by argument type (~50 edges + 253 ambiguous/overload) in the resolver; one edge per (caller, callee name) across receivers of different classes; declarator constructs T x(args); (~30, moves goldens); macro-expanded callees and conversion operators (likely refused by design).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    call-graphcore-enginepriority: medium

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions