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) | |
| 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. | |
ASTReaderListener implementation to validate the information of the PCH file against an initialized Preprocessor.
Definition at line 248 of file ASTReader.h.
| clang::PCHValidator::PCHValidator | ( | Preprocessor & | PP, |
| ASTReader & | Reader | ||
| ) | [inline] |
Definition at line 253 of file ASTReader.h.
| 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.
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.
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.
| SuggestedPredefines | Can be filled in with the set of predefines that are suggested by the preprocessor options. Typically only used when loading a precompiled header. |
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.
Reimplemented from clang::ASTReaderListener.
Definition at line 304 of file ASTReader.cpp.
References checkTargetOptions().