clang API Documentation

Public Member Functions
clang::PCHValidator Class Reference

ASTReaderListener implementation to validate the information of the PCH file against an initialized Preprocessor. More...

#include <ASTReader.h>

Inheritance diagram for clang::PCHValidator:
Inheritance graph
[legend]
Collaboration diagram for clang::PCHValidator:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

ASTReaderListener implementation to validate the information of the PCH file against an initialized Preprocessor.

Definition at line 144 of file ASTReader.h.


Constructor & Destructor Documentation

clang::PCHValidator::PCHValidator ( Preprocessor PP,
ASTReader Reader 
) [inline]

Definition at line 151 of file ASTReader.h.


Member Function Documentation

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.

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

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.

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 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.

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

Reimplemented from clang::ASTReaderListener.

Definition at line 97 of file ASTReader.cpp.


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