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

Function has_def_any

tests/test_extraction.c:42–48  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

40
41/* Check if any definition has the given name (any label). */
42static int has_def_any(CBMFileResult *r, const char *name) {
43 for (int i = 0; i < r->defs.count; i++) {
44 if (strcmp(r->defs.items[i].name, name) == 0)
45 return 1;
46 }
47 return 0;
48}
49
50/* Check if any call to the given callee exists. */
51static 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