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

Function definition_count

tests/repro/repro_call_scope_usages.c:112–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112static int definition_count(const CBMFileResult *r, const char *name) {
113 int count = 0;
114 for (int i = 0; i < r->defs.count; i++) {
115 const CBMDefinition *def = &r->defs.items[i];
116 if (def->name && strcmp(def->name, name) == 0)
117 count++;
118 }
119 return count;
120}
121
122static CBMFileResult *extract_case(const char *tag, const char *source, CBMLanguage language,
123 const char *filename) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected