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

Function class_method_tail

tests/test_parallel.c:546–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546static const char *class_method_tail(const char *qn) {
547 if (!qn) {
548 return NULL;
549 }
550 const char *last = strrchr(qn, '.');
551 if (!last || last == qn) {
552 return NULL;
553 }
554 const char *second = last;
555 while (second > qn) {
556 second--;
557 if (*second == '.') {
558 return second == qn ? qn : second + 1;
559 }
560 }
561 return qn;
562}
563
564static const cbm_gbuf_node_t *find_unique_callable_node_by_tail(const cbm_gbuf_t *gbuf,
565 const char *tail) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected