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

Function c1_call_scope

tests/test_extraction.c:7836–7845  ·  view source on GitHub ↗

Caller QN of the first raw-pass call to `callee`, or "" when there is none. */

Source from the content-addressed store, hash-verified

7834
7835/* Caller QN of the first raw-pass call to `callee`, or "" when there is none. */
7836static const char *c1_call_scope(CBMFileResult *r, const char *callee) {
7837 for (int i = 0; i < r->calls.count; i++) {
7838 const CBMCall *c = &r->calls.items[i];
7839 if (c->callee_name && strcmp(c->callee_name, callee) == 0 &&
7840 c->source_origin == CBM_SOURCE_ORIGIN_RAW) {
7841 return c->enclosing_func_qn ? c->enclosing_func_qn : "";
7842 }
7843 }
7844 return "";
7845}
7846
7847/* Caller QN of the first C-LSP resolution whose callee QN ends in ".<leaf>". */
7848static const char *c1_lsp_caller(CBMFileResult *r, const char *leaf) {

Callers 1

test_extraction.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected