MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / macro_shaped_re

Function macro_shaped_re

codegraph-kernel/src/ccpp/mod.rs:110–113  ·  view source on GitHub ↗

recoverCppMacroDefinedName: macro-shaped parsed name.

()

Source from the content-addressed store, hash-verified

108}
109/// recoverCppMacroDefinedName: macro-shaped parsed name.
110fn macro_shaped_re() -> &'static Regex {
111 static RE: OnceLock<Regex> = OnceLock::new();
112 RE.get_or_init(|| Regex::new(r"^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)+$").unwrap())
113}
114fn has_lower_re() -> &'static Regex {
115 static RE: OnceLock<Regex> = OnceLock::new();
116 RE.get_or_init(|| Regex::new(r"[a-z]").unwrap())

Callers 1

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected