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

Function parse_name

src/pipeline/doc_links_cs.c:5749–5757  ·  view source on GitHub ↗

A written type or namespace name into `segs`; *glob when it starts at the * global namespace. false for what is no dotted name (a tuple, an array, a * pointer, a text this code did not understand). */

Source from the content-addressed store, hash-verified

5747 * global namespace. false for what is no dotted name (a tuple, an array, a
5748 * pointer, a text this code did not understand). */
5749static bool parse_name(const char *s, size_t n, cs_seg_t *segs, int *nsegs, bool *glob) {
5750 size_t gl = sizeof(CS_GLOBAL_PREFIX) - SKIP_ONE;
5751 *glob = n >= gl && strncmp(s, CS_GLOBAL_PREFIX, gl) == 0;
5752 if (*glob) {
5753 s += gl;
5754 n -= gl;
5755 }
5756 return parse_path(s, n, segs, nsegs);
5757}
5758
5759/* What a using directive names: a namespace into u->ns, a type into u->ent
5760 * (CS_AMBIGUOUS for several). Both stay CS_NONE for what the repository does

Callers 2

resolve_usingFunction · 0.85
base_entityFunction · 0.85

Calls 1

parse_pathFunction · 0.85

Tested by

no test coverage detected