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

Function simple_ident_re

codegraph-kernel/src/ccpp/mod.rs:116–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114 RE.get_or_init(|| Regex::new(r"\s+").unwrap())
115}
116fn simple_ident_re() -> &'static Regex {
117 static RE: OnceLock<Regex> = OnceLock::new();
118 RE.get_or_init(|| Regex::new(r"^[A-Za-z_][A-Za-z0-9_]*$").unwrap())
119}
120/// recoverMangledCppName's `Ret (name)` idiom guard.
121fn ret_paren_name_re() -> &'static Regex {
122 static RE: OnceLock<Regex> = OnceLock::new();

Callers 3

recover_mangled_cpp_nameFunction · 0.70
extract_callMethod · 0.70

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected