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

Function find_resolved

tests/test_cs_lsp.c:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39static int find_resolved(const CBMFileResult *r, const char *callerSub, const char *calleeSub) {
40 for (int i = 0; i < r->resolved_calls.count; i++) {
41 const CBMResolvedCall *rc = &r->resolved_calls.items[i];
42 if (rc->caller_qn && strstr(rc->caller_qn, callerSub) && rc->callee_qn &&
43 strstr(rc->callee_qn, calleeSub))
44 return i;
45 }
46 return -1;
47}
48
49static int require_resolved(const CBMFileResult *r, const char *callerSub, const char *calleeSub) {
50 int idx = find_resolved(r, callerSub, calleeSub);

Callers 2

require_resolvedFunction · 0.70
test_cs_lsp.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected