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

Function class_method_tail

tests/test_parallel.c:1141–1157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1139}
1140
1141static const char *class_method_tail(const char *qn) {
1142 if (!qn) {
1143 return NULL;
1144 }
1145 const char *last = strrchr(qn, '.');
1146 if (!last || last == qn) {
1147 return NULL;
1148 }
1149 const char *second = last;
1150 while (second > qn) {
1151 second--;
1152 if (*second == '.') {
1153 return second == qn ? qn : second + 1;
1154 }
1155 }
1156 return qn;
1157}
1158
1159static const cbm_gbuf_node_t *find_unique_callable_node_by_tail(const cbm_gbuf_t *gbuf,
1160 const char *tail) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected