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

Function single_arg_macro_replacement_re

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

Source from the content-addressed store, hash-verified

115 RE.get_or_init(|| Regex::new(r"[a-z]").unwrap())
116}
117fn single_arg_macro_replacement_re() -> &'static Regex {
118 static RE: OnceLock<Regex> = OnceLock::new();
119 RE.get_or_init(|| Regex::new(
120 r"^(?:[A-Za-z_][A-Za-z0-9_:]*[ \t\r\n]+)+[*& \t\r\n]*([A-Za-z_][A-Za-z0-9_]*)[ \t\r\n]*\([^(){};#]*\)[ \t\r\n]*$"
121 ).unwrap())
122}
123/// normalizeCppReturnType: smart-pointer/optional unwrap.
124fn ret_wrapper_re() -> &'static Regex {
125 static RE: OnceLock<Regex> = OnceLock::new();

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected