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

Function find_resolved

tests/test_php_lsp.c:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30static int find_resolved(const CBMFileResult *r, const char *callerSub, const char *calleeSub) {
31 for (int i = 0; i < r->resolved_calls.count; i++) {
32 const CBMResolvedCall *rc = &r->resolved_calls.items[i];
33 if (rc->caller_qn && strstr(rc->caller_qn, callerSub) && rc->callee_qn &&
34 strstr(rc->callee_qn, calleeSub))
35 return i;
36 }
37 return -1;
38}
39
40static int require_resolved(const CBMFileResult *r, const char *callerSub, const char *calleeSub) {
41 int idx = find_resolved(r, callerSub, calleeSub);

Callers 2

require_resolvedFunction · 0.70
test_php_lsp.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected