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

Function find_call_by_callee

tests/test_extraction.c:2732–2739  ·  view source on GitHub ↗

Find an in-body call by its raw callee text; returns the call or NULL. */

Source from the content-addressed store, hash-verified

2730
2731/* Find an in-body call by its raw callee text; returns the call or NULL. */
2732static const CBMCall *find_call_by_callee(CBMFileResult *r, const char *callee) {
2733 for (int i = 0; i < r->calls.count; i++) {
2734 if (r->calls.items[i].callee_name && strcmp(r->calls.items[i].callee_name, callee) == 0) {
2735 return &r->calls.items[i];
2736 }
2737 }
2738 return NULL;
2739}
2740
2741/* Reproduce-first: Java module QN must derive from the CONTAINING DIRECTORY, not
2742 * the filename stem, so a top-level class `Outer` in `Outer.java` is `t.Outer`,

Callers 1

test_extraction.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected