Repository navigation
call graph: a ctor-init entry naming a class typedef is a base call (doomsday DE_PIMPL Impl -> Base) (Part of #6266) - #6943
Conversation
…Part of #6266) doomsday's DE_PIMPL heads `Impl : Private<C>`, whose `typedef Private<P> Base` a ctor-init `: Base(i)` names. The resolver pruned it when no class `Base` was include-visible (an unrelated LogEntry::Arg::Base exists), and the oracle's text view read it as a data member where tree-sitter reads a base. The engine now collects the repo's class-typedef names and keeps their entries; the oracle's text view reads any declared base for a constructor of no declared class. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…e alias; bless doomsday (Part of #6266) gzdoom's `PType *Type;` beside rapidjson's `typedef T Type` made `PSymbolType(..) : Type(ty)` a base call (4 new engine-only edges). A name some class declares as a field is left out of the alias set. doomsday golden: callgraph misses 46 -> 24, engine-only 67 -> 44; gzdoom unchanged. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #6943 @ e5a13ea: 1 failed check(s) == shepherd (label event) (failure) -- real |
…, so its toggle definitions reach the scan (Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…apped statement is read as text (Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (cd79607) is not the one a maintainer labelled |
…ph misses 24 -> 7) (Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…6-slice4-build-manifests, #6951) Restores the approved e5a13ea content of #6943. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #6943 @ 16f1da4: 10 failed check(s) == durations key (cancelled) -- infra == evidence report level deltas (advisory) (cancelled) -- infra == full-suite (failure) -- real == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == plan the suite parts (cancelled) -- infra == shard 1 (1669449 LOC) (cancelled) -- infra == shard 2 (1666363 LOC) (cancelled) -- infra == shard 4 (1666524 LOC) (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
|
CI shepherd: the head of this PR (0428e1f) is not the one a maintainer labelled |
|
CI shepherd: the head of this PR (0428e1f) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
Part of #6266 (DOOM-rosetta check 7, callgraph), slice 3 of 3: doomsday ctor-init
Impl -> Baseedges through the DE_PIMPL typedef.What
DE_PIMPL(C)headsstruct C::Impl : public de::Private<C>, andPrivate<P>hastypedef Private<P> Base, soImpl(..) : Base(i)calls the base constructor.call_resolver.class_alias_names,galaxyscope._cpp_class_aliases): the repo's class-typedef names (typedef X Name;/using Name = X;where X is a declared class, minus any name some class also declares as a data member). A ctor-init entry naming one is a base call and skips both prune clauses inresolve_calls. Before, it was pruned whenever no classBasewas include-visible (an unrelatedLogEntry::Arg::Baseexists, so the bucket was not empty).callgraph_oracle.TextBody): a constructor of no class the repo declares (the macro-headedImpl) reads any declared base, as the tree-sitter view does, instead of callingBase(i)a data member. This was 46 of the 64 "absent" edges.Design decision: an alias set built from the headers (a regex fact, no AST) rather than an include-visibility relaxation, so a data member named like a base (
Bool(v)) stays pruned.Evidence
doomsday: ctor-init misses 22 -> 0 (callgraph misses 46 -> 24), engine-only 67 -> 44, recall 0.9993 -> 0.9997, precision 0.9679 -> 0.9683.
Baserows: 22 misses and 29 absent gone (1 absent left, packageswidget.cpp:504).doom_rosetta_check.pyover all 44 ports: only doomsday drifts (blessed here). A first cut drifted gzdoom (+4 engine-only:PType *Type;beside rapidjson'stypedef T Type); the data-member exclusion removed that, gzdoom is back to ok.Gates:
crucible_check(both legs) PASS with no drift,audit_checkclear,pr_gates --fast9/9,--ratchets8/9 (fact-crosscheckfails onNEW estate-crucible :: INVTRLD.cbl translator refused ... line 27, which reproduces unchanged on origin/main 47f7da1, so not from this change), new tests intest_cpp_ctor_init_span_6266.pyandtest_callgraph_oracle.py.Class / Sibling gaps
Class: a C++ ctor-init-list entry that names a typedef/using alias of a base class (rather than the class itself). Members: doomsday's
Private<P>::Base(done: the 22 engine misses and the 29Baseabsent edges),GuiWidgetPrivate<P>::Baseand the othertypedef .. Baseheaders underlibs/*/include/de/(same alias set; not checked one by one).Sibling gaps: the other doomsday mismatches are different mechanisms, not this class: engine-only
LogEntryStager(10 edges, DD_Win32_Init and kin),NativeFunctionSpec(6),Section(2),String/self/get/appBufferExists(1 each); and the oracle-side misses by shape: statement 11, other 3, condition/return 3, after-operator 3, nested-argument 2, unparsed 1, assignment-rhs 1. Names that alias a class AND are a data member somewhere (gzdoomType) stay unresolved by design.Remaining slices
callgraphstays in doomsday'sexpected_fails(24 misses, 44 engine-only left); gzdoom, fastdoom and doom3-bfg are unchanged. One further slice per shape above, starting with the 11statementmisses andLogEntryStager.Checklist: partial [c:0254d813] -- doomsday still has 24 callgraph misses;
callgraphstays inexpected_failsfor all 17 ports, nightly not yet greenChecklist: partial [c:84996f5e] -- the seven-check PERFECT count is not reached; this slice does not change it
Cross-repo: none.
🤖 Generated with Claude Code