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

Function count_real_resolved

tests/test_c_lsp.c:16549–16558  ·  view source on GitHub ↗

Resolved invocations that name a real target (not an lsp_unresolved marker) * whose callee QN contains sub. Member-access rows (one per function, type and * member) are a different kind and are not counted. */

Source from the content-addressed store, hash-verified

16547 * whose callee QN contains sub. Member-access rows (one per function, type and
16548 * member) are a different kind and are not counted. */
16549static int count_real_resolved(const CBMFileResult *r, const char *sub) {
16550 int n = 0;
16551 for (int i = 0; i < r->resolved_calls.count; i++) {
16552 const CBMResolvedCall *rc = &r->resolved_calls.items[i];
16553 if (rc->kind == CBM_RESOLVED_INVOCATION && rc->callee_qn && strstr(rc->callee_qn, sub) &&
16554 rc->confidence > 0.0f && !(rc->strategy && strcmp(rc->strategy, "lsp_unresolved") == 0))
16555 n++;
16556 }
16557 return n;
16558}
16559
16560/* A versionbits-style fluent chain (the #323 hang): every link returns
16561 * Tester&, and the evaluator re-evaluates a call's receiver for template

Callers 2

test_c_lsp.cFile · 0.85
clsp_member_calls_workFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected