Brings the branch up to main f5d57465f. Conflicts and how each was resolved:
- pipeline.h: registration now goes through cbm_registry_add_lang_in_module
with cbm_registry_add and cbm_registry_add_lang as thin wrappers. The
extractor's is_test verdict is threaded through all three as their last
parameter (the convention this branch set for cbm_registry_add), and main's
doc comment on cbm_registry_add is kept with the branch's verdict note.
- pass_definitions.c, pass_parallel.c: main's registration block (generated
members -> cbm_registry_add_qn_only, Swift signatures) is kept and
cbm_registry_add_lang_in_module receives def->is_test.
cbm_registry_add_qn_only needs no verdict: those entries never reach the
by-name buckets the scorer reads.
- pipeline_incremental.c: main's registry_seed_t visitor is kept and passes
cbm_node_is_test(node), so the incremental seed gives the same verdict as
the full index.
- registry.c includes: both foundation/arena.h (main) and foundation/log.h
(branch).
- registry.c index_under_name: takes both the verdict and main's language.
The branch's drop-on-failed-growth rule now covers the lang side array
too, since it shares is_test_cap: an entry that cannot get both bytes is
dropped and logged (registry.verdict_alloc_failed).
- registry.c best_by_import_distance: the branch's unconditional verdict
read plus main's optional lang_flags tie-break input.
- registry.c resolve_multi_with_imports: the filtered view always copies
both side arrays (no "flags may be absent" case is left).
- registry.c cbm_registry_fuzzy_resolve: the branch's
filter_import_reachable fix, now carrying the languages along with the
verdicts, so the filtered subset is scored with its own verdicts and
tie-broken with its own languages.
- registry.c cbm_registry_add body: main's layout (the body lives in
cbm_registry_add_lang_in_module, cbm_registry_add is a wrapper) with the
verdict passed to both index_under_name keys.
- tests/test_registry.c: main's renamed `proximity` registry (Windows
defines `near`) with the verdict argument.
Semantic follow-through in code main added since the branch's base (each
relied on "no verdict means ask is_test_qn", which this branch deletes):
- qn_lang_flags, candidates_without_members and registry_entry_language
no longer guard against side arrays that cover only part of a bucket:
under the drop rule every entry of a non-empty bucket has both.
- The Swift overload choosers (swift_choose_receiver,
swift_choose_candidate) passed NULL verdicts. cbm_registry_swift_candidates
now copies each match's stored verdict from its by-name bucket into a
parallel byte array (same allocation as the match lists), and the choosers
carry it through their receiver and import filters, so every
best_by_import_distance call scores with stored verdicts.
- Test call sites main added (test_registry.c 74 cbm_registry_add,
17 cbm_registry_add_lang, 9 cbm_registry_add_lang_in_module;
test_pipeline.c 6; test_callable_sig.c 3) pass `false`, as the branch's
own call sites do; only those lines were re-wrapped.
is_test_qn has no remaining definition or call site.
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>