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

Function has_def_any

tests/test_extraction.c:25–31  ·  view source on GitHub ↗

Check if any definition has the given name (any label). */

Source from the content-addressed store, hash-verified

23
24/* Check if any definition has the given name (any label). */
25static int has_def_any(CBMFileResult *r, const char *name) {
26 for (int i = 0; i < r->defs.count; i++) {
27 if (strcmp(r->defs.items[i].name, name) == 0)
28 return 1;
29 }
30 return 0;
31}
32
33/* Check if any call to the given callee exists. */
34static int has_call(CBMFileResult *r, const char *callee) {

Callers 1

test_extraction.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected