clang: clang::ExternalPreprocessorSource Class Reference (original) (raw)

Abstract interface for external sources of preprocessor information. More...

#include "[clang/Lex/ExternalPreprocessorSource.h](ExternalPreprocessorSource%5F8h%5Fsource.html)"

Public Member Functions
virtual ~ExternalPreprocessorSource ()
virtual void ReadDefinedMacros ()=0
Read the set of macros defined by this external macro source.
virtual void updateOutOfDateIdentifier (const IdentifierInfo &II)=0
Update an out-of-date identifier.
virtual IdentifierInfo * GetIdentifier (uint64_t ID)=0
Return the identifier associated with the given ID number.
virtual Module * getModule (unsigned ModuleID)=0
Map a module ID to a module.

Abstract interface for external sources of preprocessor information.

This abstract class allows an external sources (such as the [ASTReader](classclang%5F1%5F1ASTReader.html "Reads an AST files chain containing the contents of a translation unit.")) to provide additional preprocessing information.

Definition at line 29 of file ExternalPreprocessorSource.h.

ExternalPreprocessorSource::~ExternalPreprocessorSource ( ) virtualdefault

GetIdentifier()

virtual IdentifierInfo * clang::ExternalPreprocessorSource::GetIdentifier ( uint64_t ID) pure virtual

Return the identifier associated with the given ID number.

The ID 0 is associated with the NULL identifier.

Implemented in clang::ASTReader.

getModule()

virtual Module * clang::ExternalPreprocessorSource::getModule ( unsigned ModuleID) pure virtual

ReadDefinedMacros()

virtual void clang::ExternalPreprocessorSource::ReadDefinedMacros ( ) pure virtual

Read the set of macros defined by this external macro source.

Implemented in clang::ASTReader.

updateOutOfDateIdentifier()

virtual void clang::ExternalPreprocessorSource::updateOutOfDateIdentifier ( const IdentifierInfo & II) pure virtual

The documentation for this class was generated from the following files: