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

Function gb_variant_label

src/graph_buffer/graph_buffer.c:941–950  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

939} gb_span_vec_t;
940
941static bool gb_variant_label(const char *label) {
942 static const char *const labels[] = {"Function", "Method", "Class", "Interface", "Enum",
943 "Struct", "Trait", "Type", "Macro"};
944 for (size_t i = 0; label && i < sizeof(labels) / sizeof(labels[0]); i++) {
945 if (strcmp(label, labels[i]) == 0) {
946 return true;
947 }
948 }
949 return false;
950}
951
952static int gb_span_cmp(const void *a, const void *b) {
953 const gb_span_t *x = a;

Callers 3

gb_def_has_spansFunction · 0.85
gb_collect_spansFunction · 0.85
gb_write_variantsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected