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

Function lrp_usage

tests/test_lsp_resolution_probe.c:195–200  ·  view source on GitHub ↗

Returns USAGE edge count (-1 on DB failure). */

Source from the content-addressed store, hash-verified

193
194/* Returns USAGE edge count (-1 on DB failure). */
195static int lrp_usage(LRP_Proj *lp, const LRP_File *files, int nfiles) {
196 cbm_store_t *store = lrp_index(lp, files, nfiles);
197 int n = store ? cbm_store_count_edges_by_type(store, lp->project, "USAGE") : -1;
198 lrp_cleanup(lp, store);
199 return n;
200}
201
202/* Diagnostic: dump edge histogram to stderr on failure. */
203static const char *LRP_ALL_EDGE_TYPES[] = {

Callers 1

Calls 3

lrp_indexFunction · 0.85
lrp_cleanupFunction · 0.85

Tested by

no test coverage detected