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)
bool ReadLanguageOptions (const LangOptions &LangOpts, bool Complain, bool AllowCompatibleDifferences) override
 Receives the language options.
bool ReadTargetOptions (const TargetOptions &TargetOpts, bool Complain) override
 Receives the target options.
bool ReadDiagnosticOptions (IntrusiveRefCntPtr< DiagnosticOptions > DiagOpts, bool Complain) override
 Receives the diagnostic options.
bool ReadPreprocessorOptions (const PreprocessorOptions &PPOpts, bool Complain, std::string &SuggestedPredefines) override
 Receives the preprocessor options.
void ReadCounter (const serialization::ModuleFile &M, unsigned Value) override
 Receives __COUNTER__ value.

Detailed Description

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

Definition at line 248 of file ASTReader.h.


Constructor & Destructor Documentation

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

Definition at line 253 of file ASTReader.h.


Member Function Documentation

void PCHValidator::ReadCounter ( const serialization::ModuleFile M,
unsigned  Value 
) [override, virtual]

Receives __COUNTER__ value.

Reimplemented from clang::ASTReaderListener.

Definition at line 594 of file ASTReader.cpp.

bool PCHValidator::ReadDiagnosticOptions ( IntrusiveRefCntPtr< DiagnosticOptions DiagOpts,
bool  Complain 
) [override, virtual]

Receives the diagnostic options.

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

Reimplemented from clang::ASTReaderListener.

Definition at line 393 of file ASTReader.cpp.

References checkDiagnosticMappings(), clang::DiagnosticsEngine::getDiagnosticIDs(), clang::serialization::MK_ImplicitModule, clang::ProcessWarningOptions(), clang::serialization::ModuleManager::rbegin(), and clang::serialization::ModuleManager::size().

bool PCHValidator::ReadLanguageOptions ( const LangOptions LangOpts,
bool  Complain,
bool  AllowCompatibleDifferences 
) [override, virtual]

Receives the language options.

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

Reimplemented from clang::ASTReaderListener.

Definition at line 295 of file ASTReader.cpp.

References checkLanguageOptions().

bool PCHValidator::ReadPreprocessorOptions ( const PreprocessorOptions PPOpts,
bool  Complain,
std::string &  SuggestedPredefines 
) [override, virtual]

Receives the preprocessor options.

Parameters:
SuggestedPredefinesCan be filled in with the set of predefines that are suggested by the preprocessor options. Typically only used when loading a precompiled header.
Returns:
true to indicate the preprocessor options are invalid, or false otherwise.

Reimplemented from clang::ASTReaderListener.

Definition at line 582 of file ASTReader.cpp.

References checkPreprocessorOptions().

bool PCHValidator::ReadTargetOptions ( const TargetOptions TargetOpts,
bool  Complain 
) [override, virtual]

Receives the target options.

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

Reimplemented from clang::ASTReaderListener.

Definition at line 304 of file ASTReader.cpp.

References checkTargetOptions().


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