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

Function macro_shaped_re

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

recoverCppMacroDefinedName: macro-shaped parsed name.

()

Source from the content-addressed store, hash-verified

82
83/// recoverCppMacroDefinedName: macro-shaped parsed name.
84fn macro_shaped_re() -> &'static Regex {
85 static RE: OnceLock<Regex> = OnceLock::new();
86 RE.get_or_init(|| Regex::new(r"^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)+$").unwrap())
87}
88fn has_lower_re() -> &'static Regex {
89 static RE: OnceLock<Regex> = OnceLock::new();
90 RE.get_or_init(|| Regex::new(r"[a-z]").unwrap())

Callers 1

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected