clang API Documentation

Public Member Functions
clang::ExternalPreprocessorSource Class Reference

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

#include <ExternalPreprocessorSource.h>

Inheritance diagram for clang::ExternalPreprocessorSource:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~ExternalPreprocessorSource ()
virtual void ReadDefinedMacros ()=0
 Read the set of macros defined by this external macro source.
virtual void LoadMacroDefinition (IdentifierInfo *II)=0
 Read the definition for the given macro.
virtual void updateOutOfDateIdentifier (IdentifierInfo &II)=0
 Update an out-of-date identifier.

Detailed Description

Abstract interface for external sources of preprocessor information.

This abstract class allows an external sources (such as the ASTReader) to provide additional macro definitions.

Definition at line 24 of file ExternalPreprocessorSource.h.


Constructor & Destructor Documentation

ExternalPreprocessorSource::~ExternalPreprocessorSource ( ) [virtual]

Definition at line 50 of file Preprocessor.cpp.


Member Function Documentation

virtual void clang::ExternalPreprocessorSource::LoadMacroDefinition ( IdentifierInfo II) [pure virtual]

Read the definition for the given macro.

Implemented in clang::ASTReader.

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

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

Implemented in clang::ASTReader.

Referenced by clang::Preprocessor::macro_begin(), and clang::Preprocessor::macro_end().

virtual void clang::ExternalPreprocessorSource::updateOutOfDateIdentifier ( IdentifierInfo II) [pure virtual]

Update an out-of-date identifier.

Implemented in clang::ASTReader.

Referenced by clang::Preprocessor::HandleIdentifier(), and isTrivialSingleTokenExpansion().


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