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

Function find_def_any

tests/test_extraction_inheritance.c:70–77  ·  view source on GitHub ↗

Find a definition by name alone (any label). */

Source from the content-addressed store, hash-verified

68
69/* Find a definition by name alone (any label). */
70static CBMDefinition *find_def_any(CBMFileResult *r, const char *name) {
71 for (int i = 0; i < r->defs.count; i++) {
72 CBMDefinition *d = &r->defs.items[i];
73 if (d->name && strcmp(d->name, name) == 0)
74 return d;
75 }
76 return NULL;
77}
78
79/* Return 1 if base_classes contains `want` exactly. */
80static int bases_contain(CBMDefinition *d, const char *want) {

Callers 1

find_def_flexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected