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

Function macro_shaped_re

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

recoverCppMacroDefinedName: macro-shaped parsed name.

()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected