clippy_utils::macros

Function matching_root_macro_call

Source
pub fn matching_root_macro_call(
    cx: &LateContext<'_>,
    span: Span,
    name: Symbol,
) -> Option<MacroCall>
Expand description

A combination of root_macro_call and is_diagnostic_item that returns a MacroCall at the root expansion if only it matches the given name.