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

Function find_def_any

tests/test_extraction_inheritance.c:74–81  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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