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

Function decorators_contain

tests/repro/repro_issue382.c:99–107  ·  view source on GitHub ↗

Return 1 if any entry in the NULL-terminated decorators array contains * needle as a substring. */

Source from the content-addressed store, hash-verified

97/* Return 1 if any entry in the NULL-terminated decorators array contains
98 * needle as a substring. */
99static int decorators_contain(const CBMDefinition *d, const char *needle) {
100 if (!d || !d->decorators)
101 return 0;
102 for (int i = 0; d->decorators[i]; i++) {
103 if (strstr(d->decorators[i], needle))
104 return 1;
105 }
106 return 0;
107}
108
109/* ───────────────────────────────────────────────────────────────────
110 * repro_issue382_java_annotations_on_nodes

Callers 1

repro_issue382.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected