clippy_utils::check_proc_macro

Function is_from_proc_macro

source
pub fn is_from_proc_macro<'cx, T: WithSearchPat<'cx>>(
    cx: &T::Context,
    item: &T,
) -> bool
Expand description

Checks if the item likely came from a proc-macro.

This should be called after in_external_macro and the initial pattern matching of the ast as it is significantly slower than both of those.