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

Function find_resolved

tests/test_py_lsp.c:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21static int find_resolved(const CBMFileResult *r, const char *callerSub, const char *calleeSub) {
22 for (int i = 0; i < r->resolved_calls.count; i++) {
23 const CBMResolvedCall *rc = &r->resolved_calls.items[i];
24 if (rc->caller_qn && strstr(rc->caller_qn, callerSub) && rc->callee_qn &&
25 strstr(rc->callee_qn, calleeSub))
26 return i;
27 }
28 return -1;
29}
30
31/* Avoid unused-static-function warnings: helpers compiled but not yet used
32 * outside the smoke tests will be referenced in Phase 3+ tests. */

Callers 2

require_resolvedFunction · 0.70
test_py_lsp.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected