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

Function count_resolved

tests/test_c_lsp.c:50–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static int count_resolved(const CBMFileResult *r, const char *callerSub, const char *calleeSub) {
51 int n = 0;
52 for (int i = 0; i < r->resolved_calls.count; i++) {
53 const CBMResolvedCall *rc = &r->resolved_calls.items[i];
54 if (rc->caller_qn && strstr(rc->caller_qn, callerSub) && rc->callee_qn &&
55 strstr(rc->callee_qn, calleeSub))
56 n++;
57 }
58 return n;
59}
60
61/* Wrapper: extract C source, return -1 length to auto-compute strlen */
62static CBMFileResult *extract_c(const char *src) {

Callers 1

test_c_lsp.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected