Function clang::sonar::find_definitions
source · [−]pub fn find_definitions<'tu, E: Into<Vec<Entity<'tu>>>>(
entities: E
) -> Definitions<'tu>ⓘNotable traits for Definitions<'tu>impl<'tu> Iterator for Definitions<'tu> type Item = Definition<'tu>;
Expand description
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.