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

Function find_def

tests/test_extraction.c:6323–6329  ·  view source on GitHub ↗

Return the first definition with the given name, or NULL. */

Source from the content-addressed store, hash-verified

6321
6322/* Return the first definition with the given name, or NULL. */
6323static const CBMDefinition *find_def(CBMFileResult *r, const char *name) {
6324 for (int i = 0; i < r->defs.count; i++) {
6325 if (strcmp(r->defs.items[i].name, name) == 0)
6326 return &r->defs.items[i];
6327 }
6328 return NULL;
6329}
6330
6331TEST(complexity_nested_loops_depth) {
6332 CBMFileResult *r = extract("package p\n"

Callers 1

test_extraction.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected