clang API Documentation
ASTReaderListener implementation to validate the information of the PCH file against an initialized Preprocessor. More...
#include <ASTReader.h>


Public Member Functions | |
| PCHValidator (Preprocessor &PP, ASTReader &Reader) | |
| 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. | |
ASTReaderListener implementation to validate the information of the PCH file against an initialized Preprocessor.
Definition at line 144 of file ASTReader.h.
| clang::PCHValidator::PCHValidator | ( | Preprocessor & | PP, |
| ASTReader & | Reader | ||
| ) | [inline] |
Definition at line 151 of file ASTReader.h.
| void PCHValidator::ReadCounter | ( | unsigned | Value | ) | [virtual] |
Receives __COUNTER__ value.
Reimplemented from clang::ASTReaderListener.
Definition at line 405 of file ASTReader.cpp.
| void PCHValidator::ReadHeaderFileInfo | ( | const HeaderFileInfo & | HFI, |
| unsigned | ID | ||
| ) | [virtual] |
Receives a HeaderFileInfo entry.
Reimplemented from clang::ASTReaderListener.
Definition at line 399 of file ASTReader.cpp.
| bool PCHValidator::ReadLanguageOptions | ( | const LangOptions & | LangOpts | ) | [virtual] |
Receives the language options.
Reimplemented from clang::ASTReaderListener.
Definition at line 66 of file ASTReader.cpp.
| bool PCHValidator::ReadPredefinesBuffer | ( | const PCHPredefinesBlocks & | Buffers, |
| StringRef | OriginalFileName, | ||
| std::string & | SuggestedPredefines, | ||
| FileManager & | FileMgr | ||
| ) | [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 from clang::ASTReaderListener.
Definition at line 188 of file ASTReader.cpp.
References CommandLine, EqualConcatenations(), FindMacro(), clang::SourceManager::getLocForStartOfFile(), clang::SourceLocation::getLocWithOffset(), and clang::HeaderSearch::NormalizeDashIncludePath().
| bool PCHValidator::ReadTargetTriple | ( | StringRef | Triple | ) | [virtual] |
Receives the target triple.
Reimplemented from clang::ASTReaderListener.
Definition at line 97 of file ASTReader.cpp.