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

Function cbm_extract_file

internal/cbm/cbm.c:1616–1623  ·  view source on GitHub ↗

Public entry: run the extraction and journal completion. The DONE mark on * every ordinary return (including error/timeout results) tells the crash * supervisor this file did NOT kill the worker — only a file whose S has no * D is a crash/hang suspect. */

Source from the content-addressed store, hash-verified

1614 * supervisor this file did NOT kill the worker — only a file whose S has no
1615 * D is a crash/hang suspect. */
1616CBMFileResult *cbm_extract_file(const char *source, int source_len, CBMLanguage language,
1617 const char *project, const char *rel_path, int64_t timeout_micros,
1618 const char **extra_defines, const char **include_paths) {
1619 CBMFileResult *r =
1620 cbm_extract_file_ex(source, source_len, language, project, rel_path, timeout_micros,
1621 extra_defines, include_paths, NULL, NULL);
1622 return r;
1623}
1624
1625/* Initial block for the per-file traversal scratch arena, chosen by measuring
1626 * arena_grow on a 14k-file TypeScript tree: it fires on one file in 12,000 at

Callers 15

handle_kustomizeFunction · 0.85
handle_k8s_manifestFunction · 0.85
cbm_pipeline_pass_usagesFunction · 0.85
sem_get_or_extractFunction · 0.85
run_inherit_caseFunction · 0.85
run_rust_implFunction · 0.85
extract_kotlinFunction · 0.85
extract_kotlin_pathFunction · 0.85
extractFunction · 0.85
cov_extractFunction · 0.85
extract_javaFunction · 0.85

Calls 1

cbm_extract_file_exFunction · 0.85

Tested by 15

run_inherit_caseFunction · 0.68
run_rust_implFunction · 0.68
extract_kotlinFunction · 0.68
extract_kotlin_pathFunction · 0.68
extractFunction · 0.68
cov_extractFunction · 0.68
extract_javaFunction · 0.68
extract_java_atFunction · 0.68
extractFunction · 0.68
so_extract_crashesFunction · 0.68
extract_perlFunction · 0.68
extract_oneFunction · 0.68