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:118–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116 RE.get_or_init(|| Regex::new(r"[a-z]").unwrap())
117}
118fn single_arg_macro_replacement_re() -> &'static Regex {
119 static RE: OnceLock<Regex> = OnceLock::new();
120 RE.get_or_init(|| Regex::new(
121 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]*$"
122 ).unwrap())
123}
124/// normalizeCppReturnType: smart-pointer/optional unwrap.
125fn ret_wrapper_re() -> &'static Regex {
126 static RE: OnceLock<Regex> = OnceLock::new();

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected