You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"lists the symbols that CALL of=; the callees form lists the symbols of= itself calls. of= is the selector "
128
128
"you passed, defs= how many DEFINITIONS that name resolved to (the rows UNION every def's neighbours), and "
129
129
"count= the number of DISTINCT neighbour symbols (a floor, per counts_floor=), which the rows window with limit= and offset=. "
130
-
"When emitted by callees, bodyless_defs= (when present) counts how many of the defs= are declarations with no body (header-only or forward-declared); "
131
-
"zero callees may mean no body to read callees from rather than truly no dependencies. "
132
130
"A neighbour that is an indexed function-like #define is a macro row (t=\"macro\", role=\"macro\" on the XML row): "
133
131
"the edge crosses a macro expansion, not a plain call — rows carry no role= otherwise. ";
134
132
133
+
// V1 fix (verifier finding 3, 2026-08-15): bodyless_defs= is a CALLEES-only attribute — main.cpp's emitter
134
+
// gates it behind `!wantCallers`, so a --callers document can never carry it. It used to sit inside
135
+
// kCallHierarchyLegendOpen above, which both forms print, so every --callers call paid ~235 B for a clause
136
+
// it could never need. Appended only on the callees form (see the call site in main.cpp), so the clause
137
+
// still appears verbatim wherever the attribute CAN appear — legendcoveragecheck's callees-side coverage is
138
+
// unaffected; only the callers-side dead weight is gone.
"When emitted by callees, bodyless_defs= (when present) counts how many of the defs= are declarations with no body (header-only or forward-declared); "
141
+
"zero callees may mean no body to read callees from rather than truly no dependencies. ";
142
+
143
+
// The composed opener, one call for the caller — keeps the wantCallers/callees branch out of
144
+
// runCallHierarchy (already this file's largest dispatcher) rather than adding a ternary at the call site.
ok "(G-b) reason= prices the bundle at exactly the --top-k=0 byte count (${pricedBundle}B) — no phantom map"
155
+
else
156
+
no "(G-b) reason= priced the bundle at ${pricedBundle}B but --top-k=0 actually serves ${realTk0Bytes}B — the reason= string still prices a map that mapTopK==0 will never emit"
157
+
fi
158
+
else
159
+
no "(G-b) no reason=\"bundle NNNB ...\" clause found on the real-repo default root — unexpected mode, see (G) above: $( grep -oE '<ctx[^>]*>'"$TMP/real_default.xml")"
0 commit comments