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

Function find_resolved

tests/test_py_lsp.c:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

require_resolvedFunction · 0.70
test_py_lsp.cFile · 0.70
pylsp_long_chain_caseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected