Repository navigation
C++ calls_out: a functional cast to a built-in type keyword is no call (Part of #6454) - #6524
Conversation
…l (Part of #6454) `bool can_expand = bool(EDITOR_GET(..))` listed `bool` as a callee. A cast to int/bool/char/float/double/long/short/unsigned/signed/wchar_t/charN_t constructs nothing; `operator bool()` and class constructors stay calls. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #6524 @ 7e941ad: 1 failed check(s) == shard 3 (1667394 LOC) (failure) -- real |
|
No description provided. |
… are no calls) Bisected: eternity passes at 8545798^ and drifts at 8545798 (callgraph_engine_only 128 -> 73, misses 28 -> 31, precision 0.9797 -> 0.9831, recall 0.9982 -> 0.998); doom-rosetta did not run on that PR. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…art of #5882) (#6567) * Det Sweep: plan Db2 shards with 20% headroom and a long-pole floor (Part of #5882) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * Re-bless the eternity doom-rosetta golden for #6524 (functional casts are no calls) Bisected: eternity passes at 8545798^ and drifts at 8545798 (callgraph_engine_only 128 -> 73, misses 28 -> 31, precision 0.9797 -> 0.9831, recall 0.9982 -> 0.998); doom-rosetta did not run on that PR. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Part of #6454 (siblings of #3799). Takes the c++ box.
Checklist: done [c:f25846fb]
What changed
gitgalaxy/core/detector.py: in a C++ unit body (calls_out_declarator_constructs), a functional cast to a built-in type keyword (bool(x),unsigned(n),double(x)) is skipped as a callee (_FUNCTIONAL_CAST_KEYWORDS).operator bool(is kept. Constructor-style declarations (Foo f(a, b);) are untouched: they stay calls (C3).tests/extraction/languages/test_calls_out_cpp_functional_cast_6454.py: every keyword, cast in a condition and an initializer, class /size_t/uint32_tstay calls,.operator bool()stays a call.golden-lock.sh crucible_check.py --update --yes(cpp only: callee lists of godot/powertoys functions, their function hashes and the LLM brief).Evidence
call_graph_accuracy.pycpp, before -> after: precision 96.6% -> 96.8% (FP 271 -> 258), recall unchanged 99.7% (FN 24). The remainingdeclaration<compound_statementhits are the constructor-style declarations the verdict calls correct.scope_check.py --expect cpp: 20 differences, all cpp (15 attributed, 5 repo rollups that are cpp function hashes and the brief).pr_gates --fast7/7,--ratchets9 pass 0 fail, tree-wide guard tests pass.Class / Sibling gaps
Class: a C++ unit body token followed by
(that names a type keyword, not a callee. Members: the 11 type keywords (all handled and tested);auto/void(never precede(as a cast);size_tand stdint names (uint32_t(x)) are ordinary identifiers to tree-sitter too, so they stay calls. Not handled here:formal_parameter<optional_formal_parameters(51): per Dart calls_out: generic invocations f<T>(x) and nullable type arguments (Part of #6454) #6473 not confirmed as an engine defect (a harness cause-classification artifact); needs a re-read and corrected ledger verdict, no engine change.token_tree<macro_invocationpattern positions andtoken_tree<token_tree(47): macro token-tree handling, own slice (next unchecked box).f $ xapplication heads; definition left sides are not calls (Part of #6454) #6504.🤖 Generated with Claude Code