Function clang::sonar::find_definitions[][src]

Important traits for Definitions<'tu>
pub fn find_definitions<'tu, E: Into<Vec<Entity<'tu>>>>(
    entities: E
) -> Definitions<'tu>

Returns an iterator over the simple preprocessor definitions in the supplied entities.

Simple preprocessor definitions are those that consist only of a single integer or floating point literal, optionally negated.

If a preprocessor definition is encountered multiple times, only the first instance is included.