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

Function find_resolved

tests/test_perl_lsp.c:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

require_resolvedFunction · 0.70
test_perl_lsp.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected