Repository navigation
C++ a conversion operator does not call its target type; a qualified function-type argument is no call (Part of #6266) - #6776
Conversation
…function-type argument is no call (WIP, Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…version-operator and qualified function-type calls (Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ne (Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
1 similar comment
|
No description provided. |
|
PR #6776 @ 7dceda3: 1 failed check(s) == call-graph-accuracy-audit (failure) -- real |
|
No description provided. |
…ter #6793 (Part of #6266) (#6799) * Call-graph accuracy baseline: accept the C++ destructor-name and conversion-operator decisions (Part of #6266) cpp recall 99.7 -> 99.0 (FN 24 -> 77), precision 96.6 -> 98.2 (FP 271 -> 137). Bisected on the language-crucible: 25 -> 38 FN at #6762 (x->~T() is the unit ~T, tree-sitter says T), 38 -> 77 at #6776 (String(operator Vector2()) names a conversion operator, not the Vector2 type; read in godot variant.cpp). Neither PR refreshed this baseline; #6793 does not move it (the pre-#6793 parent measures the same 99.0). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * Re-bless DOOM-rosetta: #6793 continued-define leak lowers engine-only callgraph on 6 ports (Part of #6266) Only callgraph fields move: woof, odamex, doom3-bfg, srb2, doomsday, nugget-doom gain precision (nugget-doom unscored 21 -> 0, srb2 55 -> 27). Cost: 4 misses (srb2 2 -> 4, odamex 21 -> 23) where a macro defined inside a function is invoked in it (HWR_RenderPlane SETUP3DVERT, md5_process H): the oracle credits the body to the invoking function, the engine no longer does. Macro expansion is a sibling gap. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * Re-bless DOOM-rosetta: #6796 dead_code prose/URL fix drops 1-2 DEAD_CODE findings on 4 ports (Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * Re-bless DOOM-rosetta: #6796 dead_code fix drops 1 DEAD_CODE finding on chocolate-doom, crispy-doom, doo-cr (Part of #6266) Full 44-port doom_rosetta_check at this head: only these three drift, summary counts only (by_level, by_rule, sarif_total); the other 41 match. Co-Authored-By: Claude Opus 5.5 <[email protected]> * affected gate: run the pytest on PATH when the interpreter has none (precheck 6 s red on #6799) Churn's precheck runs pr_gates under /usr/bin/python3, which has no pytest, so `sys.executable -m pytest` failed `affected` in 6 s on every branch whose change reaches a test; under the selfscan venv it passed, so earlier runs could not reproduce it. Fall back to the `pytest` on PATH with this checkout first on PYTHONPATH (the same trap pr_gates' _tool_bin_dir closes for ruff). Part of #6266. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Part of #6266. Checklist: partial [c:9e7fe6a3] -- conversion-operator and qualified function-type classes fixed; DE_PIMPL, base-class initializer-list, member-as-call and parse-error classes remain; no port reaches 0/0,
expected_failsunchanged.What
Engine fix in
detector.py(C++calls_out_to), two members of the "engine edge to a name the body never mentions" class:operator String () constnamed its target type as a call (Path::operator String -> String,Id::operator String,Variable::operator String,operator CString,Uri/FileId). A header-positionoperator [const] [Q::]T (callee is skipped; an explicitx.operator bool()/p->operator String()stays a call (Siblings of #3799: call-graph engine defects (dart, haskell, c++, rust) #6454 test).std::function<de::LoopResult (Item &)>already skipped when unqualified; the open-bracket lookback now allows ans::qualifier (forAllImpulseBindings -> LoopResult,forAllLinesInBox,forAllHooks).Evidence (doomsday, real scan, same engine SHA control
673998fd8vs this branch)scored engine-only (
absent) 60 -> 47, precision 0.9677 -> 0.9679, recall unchanged 0.9991. gzdoom/odamex/eternity/doom3-bfg/edge-classic goldens: no drift (doom_rosetta_check), theircallgraph_baseline.jsonrows refreshed (several were stale from #6771/#6773; edge-classic misses 1 -> 0, absent 8 -> 0 are from those, not this PR).Golden re-bless
golden_doom_rosetta/doomsday: 2 changes (callgraph_engine_only63 -> 50,callgraph_precision).cpp):Variant::operator Xcalls lose the headerX(e.g.operator int64_t['int64_t','_to_int']->['_to_int']);Basis/Vector4stay where the body constructs them.scope_check --expect cpp: 79 cpp diffs + 8 godot per-file rollup hashes; 6 non-cpp diffs (typescript 4, lua 1, cobol 1) are 1-ulp PageRank rounding at the 6th decimal from the corpus-wide graph losing cpp edges.callgraph_baseline.json: the six C++ rows merged in.Tests
tests/extraction/languages/test_calls_out_conversion_operator_6266.py(8): inline / out-of-line / qualified-target operators, body call to the type stays, explicit./->operator call stays, qualified function type"",de::,a::b::. 6 fail on main, pass here.pr_gates --fast9/9,--ratchets9 pass 0 skipped.Class / Sibling gaps
Class: C++ calls_out_to edges to names the unit's body does not call (doomsday absent 47 after this PR). Handled here: conversion operator, qualified function type. Sibling gaps (different mechanisms, not here), from doomsday's remaining list:
PackagesWidget -> GuiWidget,LibraryFile -> File,SdlNativeFont -> NativeFont,AboutDialog -> Impl,TaskBarWidget -> Impl; ~12): ctor with a macro-defined or template base; the C++ ctor member initializers are not calls; oracle credits listed bases only (Part of #6266) #6748 resolver rule keeps the edge when the name resolves to a class. Burned-estate program need: none (doomsday/gzdoom are not COBOL).DE_PIMPL/DE_GUI_PIMPL/DE_PIMPL_NOREFmacro-defined classes: ~45 of doomsday's 59 misses (variable.cpp:36,commandwidget.cpp:29,thinkerdata.cpp:29) and ~12 absent (preferences.cpp:15,framemodel.cpp:144).foreach/move/splitmember-as-call (foreach -> sectorPolygons,KeyEvent -> move,filledLine -> remove) andfunction_casttemplate-callee misses (7,function_cast<...>(...)).layout,self,uri,entry) and comment/string (3).__except, gzdoom/odamex/eternity/doom3-bfg residuals, helion interpolated holes, kocoa-doom trailing lambdas) per the DOOM-rosetta callgraph oracle: a bare macro misparsed as a definition namedifno longer swallows the file (Part of #6266) #6645 breakdown.Remaining slices: (1) DE_PIMPL macro classes, engine + oracle; (2) base-class initializer-list names; (3)
function_cast<>callee +foreachmember reads; (4) other ports' residuals.Cross-repo: none (engine-only; the crucible pin is unchanged, godot is blessed in
golden_master*).🤖 Generated with Claude Code