slang::parsing::PreprocessorMetadata struct

Various bits of metadata collected during preprocessing.

Public variables

std::vector<const syntax::DefineDirectiveSyntax*> definedMacros
The macros that were defined at the end of preprocessing.
std::vector<IncludeMetadata> includeDirectives
The include directives that were encountered while preprocessing.
std::vector<MacroRefMetadata> macroRefs
The macro references that were expanded while preprocessing.
std::vector<BufferID> sourceBufferIds
The source buffer IDs that were pushed into the preprocessor, in order.

Variable documentation

std::vector<BufferID> slang::parsing::PreprocessorMetadata::sourceBufferIds

The source buffer IDs that were pushed into the preprocessor, in order.

This includes top-level and included source files, but not macro expansion buffers.