Repository navigation
C++ ctor member initializers are not calls; oracle credits listed bases only (Part of #6266) - #6748
Conversation
…listed base classes (Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…for class_names dict (Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #6748 @ 549363c: 1 failed check(s) == shard 1 (1669449 LOC) (failure) -- real |
|
No description provided. |
Part of #6266. Owner decisions: see the issue (Track D, 2026-10-25: finish the DOOM study).
What
A C++ constructor's initializer-list entry
: type(t)(a data member) was recorded as a call and resolved to any same-named free function, an engine false positive that the callgraph oracle scored as engine-only.detector._ctor_init_span: a bare entry at the top level of a ctor's colon list carries the<init>qualifier (cpp only).call_resolver: such an entry stays a call only when the name resolves to a class (base-class ctor); otherwise it is dropped. The marker is stripped before output.callgraph_oracle: a base-class initializer is credited only when the owning class actually lists that base (class_namesnow returns class -> bases).Checklist: partial [c:9e7fe6a3] -- this shape class only (ctor member initializers); other scored shapes remain per the ports' misses
Checklist: partial [c:0254d813] -- odamex, doom3-bfg, eternity, srb2, edge-classic still fail callgraph (goldens re-measured, no expected_fails change); gzdoom, doomsday, helion, kocoa-doom, sqldoom unchanged
Checklist: partial [c:84996f5e] -- no PERFECT count posted by this PR
Class / Sibling gaps
Class: C++ constructor initializer-list entries (member
: m(x)vs base: Base(x)) mis-read as calls. Members handled: bare member entry naming a free function (dropped), base-class entry (kept, credited by oracle only when listed in the class head), template base. Not covered: brace-initialised member (: m{x}) ends the span, so entries after it keep prior behaviour (sibling gap); qualifiedns::Base(x)entries; non-cpp languages with init lists (none known). Other scored callgraph shapes for the 10 ports remain (see issue); helion (C#) unread; mood/sqldoom Python body cut at multi-line triple-quoted string (engine).Evidence
doom_rosetta_check.py --only doom3-bfg,eternity,odamex,srb2,edge-classic: all ok against the regenerated goldens (doom3-bfg, eternity, odamex re-blessed).Calls Out Tolosing member names (e.g. godotVariant::Variantdropstype) plus the downstream graph metrics (fan-in/out, pagerank, blast radius, network_macro). Only thecalls_out_tobinary was not line-diffed.pr_gates --fast9/9 pass on the final head (an earlier redaffectedgate was thetest_callgraph_oracledict-shape failure, fixed here);--ratchets9/9 pass.File-cap exception: the 3
tests/golden_doom_rosetta/*.json.gzfiles are regenerated goldens (doom_rosetta_check --update), not hand-written; hand-written files are the 5 listed above.Remaining slices
Further shape classes for the 10 ports; drop
callgraphfrom expected_fails per port as each reaches zero; the #6266 shape-breakdown comment.🤖 Generated with Claude Code