Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

Merge main into fix/issue-1278-override-v3 for the release batch

Martin Vogel19b13ba0ecff
diff --cc src/pipeline/pass_lsp_cross.c
index 5fb4bfd95,4592fe5b9..49e6e68f7
--- a/src/pipeline/pass_lsp_cross.c
+++ b/src/pipeline/pass_lsp_cross.c
@@@ -778,11 -799,16 +816,15 @@@ CBMLSPDef *cbm_pxc_collect_all_defs(con
}
}
if (files[fi].language == CBM_LANG_PYTHON) {
- pxc_fold_py_field_types(arena, fr, defs, file_start, idx, base_reg, def_modules[fi],
- imp_keys, imp_vals, imp_count);
+ pxc_fold_py_field_types(arena, fr, defs, file_start, idx, &bs, def_modules[fi]);
}
- cbm_pxc_free_import_map(imp_keys, imp_vals, imp_count); /* NULL-safe */
+ cbm_pxc_free_import_map(bs.imp_keys, bs.imp_vals, bs.imp_count); /* NULL-safe */
if (files[fi].language == CBM_LANG_GO) {
- pxc_fold_go_struct_fields(arena, fr, defs, file_start, idx);
+ pxc_fold_struct_fields(arena, fr, defs, file_start, idx, "Struct");
+ } else if (files[fi].language == CBM_LANG_C || files[fi].language == CBM_LANG_CPP) {
+ /* Both: a `.h` file is classified C++, and that is where C declares
+ * the structs its `.c` files access. */
+ pxc_fold_struct_fields(arena, fr, defs, file_start, idx, "Class");
}
if (files[fi].language == CBM_LANG_RUST) {
for (int ii = 0; ii < fr->impl_traits.count; ii++) {
diff --cc src/pipeline/pass_parallel.c
index c5cedf445,d7847305a..8d538fd33
--- a/src/pipeline/pass_parallel.c
+++ b/src/pipeline/pass_parallel.c
@@@ -3355,15 -3656,9 +3656,16 @@@ static void resolve_file_rw(resolve_ctx
const char *etype = rw->is_write ? "WRITES" : "READS";
cbm_gbuf_insert_edge(ws->local_edge_buf, src->id, tgt->id, etype, "{}");
}
+ cbm_pipeline_lsp_field_index_free(&field_index);
}
+/* The per-file facts the base-class gate needs beyond the import map. */
+typedef struct {
+ const CBMImportArray *imports;
+ const char *rel;
+ CBMLanguage lang;
+} pp_file_scope_t;
+
/* Resolve base_classes → INHERITS edges for one definition. */
static void resolve_def_inherits(resolve_ctx_t *rc, resolve_worker_state_t *ws,
const CBMDefinition *def, const cbm_gbuf_node_t *node,