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

Function doc_def

tests/test_extraction.c:9266–9274  ·  view source on GitHub ↗

The def with this label and name, or NULL. */

Source from the content-addressed store, hash-verified

9264
9265/* The def with this label and name, or NULL. */
9266static const CBMDefinition *doc_def(CBMFileResult *r, const char *label, const char *name) {
9267 for (int i = 0; i < r->defs.count; i++) {
9268 const CBMDefinition *d = &r->defs.items[i];
9269 if (d->label && d->name && strcmp(d->label, label) == 0 && strcmp(d->name, name) == 0) {
9270 return d;
9271 }
9272 }
9273 return NULL;
9274}
9275
9276TEST(doc_go_comment_group_without_directives) {
9277 CBMFileResult *r = extract("package knob\n\n"

Callers 1

test_extraction.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected