Skip to main content

macro_references

Function macro_references 

Source
pub fn macro_references(unit: &CUnit) -> Option<(String, BTreeSet<String>)>
Expand description

A #define’s macro name and the names its replacement mentions, its own parameters left out: a macro is expanded where it is named, so what it names is reached through it. None for any other directive. A preprocessor unit is its one directive behind whatever comments parse_c_units attached to it.