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

Function count_resolved

tests/test_c_lsp.c:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

test_c_lsp.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected