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

Function c_def_kind

internal/cbm/doclink_c.c:644–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642}
643
644static char c_def_kind(const CBMDefinition *d) {
645 const char *l = d->label;
646 if (strcmp(l, "Function") == 0) {
647 return 'f';
648 }
649 if (strcmp(l, "Variable") == 0) {
650 return d->parent_class ? 'e' : 'v';
651 }
652 if (strcmp(l, "Field") == 0) {
653 return 'r';
654 }
655 if (strcmp(l, "Macro") == 0) {
656 return d->signature ? 'M' : 'm';
657 }
658 if (strcmp(l, "Type") == 0 || strcmp(l, "Class") == 0 || strcmp(l, "Enum") == 0) {
659 return 't';
660 }
661 return 0;
662}
663
664/* `\page name`, `\defgroup name` ... in one doc text: A records. */
665static void c_anchors(c_sb_t *sb, const char *doc) {

Callers 1

cbm_doclink_c_scan_scopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected