Expand description
The C-family preprocessor pass: the include graph, macro collection,
and the PreprocResults document.
Structs§
- Preproc
File - Preprocessor data of a
C/C++file. - Preproc
Results - Preprocessor data of a series of
C/C++files.
Enums§
- Preproc
Diagnostic - A non-fatal diagnostic produced while resolving the C/C++ include
graph in
fix_includes.
Functions§
- fix_
includes - Constructs a dependency graph of the include directives
in a
C/C++file. - get_
macros - Returns the macros contained in a
C/C++file. - preprocess
- Extracts preprocessor data from a
C/C++source buffer and inserts it into aPreprocResultsobject. - preprocess_
with_ parser - Walk an already-built
PreprocParsertree, accumulating its preprocessor data intoresults. Internal core shared by the publicpreprocessseam and the crate’s own preprocessor tests. - visible_
macros - Every macro name visible to
file— its own#defines plus those of every header it transitively includes — borrowed fromfiles.