MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / run_sequential

Function run_sequential

tests/test_parallel.c:203–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203static cbm_gbuf_t *run_sequential(const char *project, const char *repo_path,
204 cbm_file_info_t *files, int file_count) {
205 cbm_gbuf_t *gbuf = cbm_gbuf_new(project, repo_path);
206 cbm_registry_t *reg = cbm_registry_new();
207 atomic_int cancelled;
208 atomic_init(&cancelled, 0);
209
210 cbm_pipeline_ctx_t ctx = {
211 .project_name = project,
212 .repo_path = repo_path,
213 .gbuf = gbuf,
214 .registry = reg,
215 .cancelled = &cancelled,
216 };
217
218 cbm_init();
219 cbm_pipeline_pass_definitions(&ctx, files, file_count);
220 cbm_pipeline_pass_calls(&ctx, files, file_count);
221 cbm_pipeline_pass_usages(&ctx, files, file_count);
222 cbm_pipeline_pass_semantic(&ctx, files, file_count);
223
224 harness_ctx_free_tables(&ctx);
225 cbm_registry_free(reg);
226 return gbuf;
227}
228
229typedef void (*parallel_result_mutator_fn)(CBMFileResult **result_cache, int file_count, void *ud);
230

Callers 3

ensure_parity_setupFunction · 0.85
test_parallel.cFile · 0.85

Calls 9

cbm_gbuf_newFunction · 0.85
cbm_registry_newFunction · 0.85
cbm_initFunction · 0.85
cbm_pipeline_pass_callsFunction · 0.85
cbm_pipeline_pass_usagesFunction · 0.85
harness_ctx_free_tablesFunction · 0.85
cbm_registry_freeFunction · 0.85

Tested by

no test coverage detected