clang API Documentation
Abstract interface for callback invocations by the ASTReader. More...
#include <ASTReader.h>

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. | |
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.
| ASTReaderListener::~ASTReaderListener | ( | ) | [virtual] |
Definition at line 63 of file ASTReader.cpp.
| 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.
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.
| Buffers | Information about the predefines buffers. |
| OriginalFileName | The original file name for the AST file, which will appear as an entry in the predefines buffer. |
| SuggestedPredefines | If necessary, additional definitions are added here. |
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.
Reimplemented in clang::PCHValidator.
Definition at line 113 of file ASTReader.h.