clang API Documentation

Public Member Functions
clang::ASTReaderListener Class Reference

Abstract interface for callback invocations by the ASTReader. More...

#include <ASTReader.h>

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

List of all members.

Public Member Functions

virtual ~ASTReaderListener ()
virtual bool ReadLanguageOptions (const LangOptions &LangOpts)
 Receives the language options.
virtual bool ReadTargetTriple (StringRef Triple)
 Receives the target triple.
virtual bool ReadPredefinesBuffer (const PCHPredefinesBlocks &Buffers, StringRef OriginalFileName, std::string &SuggestedPredefines, FileManager &FileMgr)
 Receives the contents of the predefines buffer.
virtual void ReadHeaderFileInfo (const HeaderFileInfo &HFI, unsigned ID)
 Receives a HeaderFileInfo entry.
virtual void ReadCounter (unsigned Value)
 Receives __COUNTER__ value.

Detailed Description

Abstract interface for callback invocations by the ASTReader.

While reading an AST file, the ASTReader will call the methods of the listener to pass on specific information. Some of the listener methods can return true to indicate to the ASTReader that the information (and consequently the AST file) is invalid.

Definition at line 99 of file ASTReader.h.


Constructor & Destructor Documentation

ASTReaderListener::~ASTReaderListener ( ) [virtual]

Definition at line 63 of file ASTReader.cpp.


Member Function Documentation

virtual void clang::ASTReaderListener::ReadCounter ( unsigned  Value) [inline, virtual]

Receives __COUNTER__ value.

Reimplemented in clang::PCHValidator.

Definition at line 139 of file ASTReader.h.

virtual void clang::ASTReaderListener::ReadHeaderFileInfo ( const HeaderFileInfo HFI,
unsigned  ID 
) [inline, virtual]

Receives a HeaderFileInfo entry.

Reimplemented in clang::PCHValidator.

Definition at line 136 of file ASTReader.h.

virtual bool clang::ASTReaderListener::ReadLanguageOptions ( const LangOptions LangOpts) [inline, virtual]

Receives the language options.

Returns:
true to indicate the options are invalid or false otherwise.

Reimplemented in clang::PCHValidator.

Definition at line 106 of file ASTReader.h.

virtual bool clang::ASTReaderListener::ReadPredefinesBuffer ( const PCHPredefinesBlocks Buffers,
StringRef  OriginalFileName,
std::string &  SuggestedPredefines,
FileManager FileMgr 
) [inline, virtual]

Receives the contents of the predefines buffer.

Parameters:
BuffersInformation about the predefines buffers.
OriginalFileNameThe original file name for the AST file, which will appear as an entry in the predefines buffer.
SuggestedPredefinesIf necessary, additional definitions are added here.
Returns:
true to indicate the predefines are invalid or false otherwise.

Reimplemented in clang::PCHValidator.

Definition at line 128 of file ASTReader.h.

virtual bool clang::ASTReaderListener::ReadTargetTriple ( StringRef  Triple) [inline, virtual]

Receives the target triple.

Returns:
true to indicate the target triple is invalid or false otherwise.

Reimplemented in clang::PCHValidator.

Definition at line 113 of file ASTReader.h.


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