clang
3.7.0
|
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. More... | |
bool | ReadTargetOptions (const TargetOptions &TargetOpts, bool Complain, bool AllowCompatibleDifferences) override |
Receives the target options. More... | |
bool | ReadDiagnosticOptions (IntrusiveRefCntPtr< DiagnosticOptions > DiagOpts, bool Complain) override |
Receives the diagnostic options. More... | |
bool | ReadPreprocessorOptions (const PreprocessorOptions &PPOpts, bool Complain, std::string &SuggestedPredefines) override |
Receives the preprocessor options. More... | |
bool | ReadHeaderSearchOptions (const HeaderSearchOptions &HSOpts, StringRef SpecificModuleCachePath, bool Complain) override |
Receives the header search options. More... | |
void | ReadCounter (const serialization::ModuleFile &M, unsigned Value) override |
Receives COUNTER value. More... | |
![]() | |
virtual | ~ASTReaderListener () |
virtual bool | ReadFullVersionInformation (StringRef FullVersion) |
Receives the full Clang version information. More... | |
virtual void | ReadModuleName (StringRef ModuleName) |
virtual void | ReadModuleMapFile (StringRef ModuleMapPath) |
virtual bool | ReadFileSystemOptions (const FileSystemOptions &FSOpts, bool Complain) |
Receives the file system options. More... | |
virtual void | visitModuleFile (StringRef Filename) |
This is called for each AST file loaded. More... | |
virtual bool | needsInputFileVisitation () |
Returns true if this ASTReaderListener wants to receive the input files of the AST file via visitInputFile , false otherwise. More... | |
virtual bool | needsSystemInputFileVisitation () |
Returns true if this ASTReaderListener wants to receive the system input files of the AST file via visitInputFile , false otherwise. More... | |
virtual bool | visitInputFile (StringRef Filename, bool isSystem, bool isOverridden) |
if needsInputFileVisitation returns true, this is called for each non-system input file of the AST File. If needsSystemInputFileVisitation is true, then it is called for all system input files as well. More... | |
virtual bool | needsImportVisitation () const |
Returns true if this ASTReaderListener wants to receive the imports of the AST file via visitImport , false otherwise. More... | |
virtual void | visitImport (StringRef Filename) |
If needsImportVisitation returns true , this is called for each AST file imported by this AST file. More... | |
ASTReaderListener implementation to validate the information of the PCH file against an initialized Preprocessor.
Definition at line 252 of file ASTReader.h.
|
inline |
Definition at line 257 of file ASTReader.h.
|
overridevirtual |
Receives COUNTER value.
Reimplemented from clang::ASTReaderListener.
Definition at line 634 of file ASTReader.cpp.
|
overridevirtual |
Receives the diagnostic options.
Reimplemented from clang::ASTReaderListener.
Definition at line 403 of file ASTReader.cpp.
References checkDiagnosticMappings(), clang::DiagnosticsEngine::getDiagnosticIDs(), clang::if(), clang::serialization::MK_ImplicitModule, clang::ProcessWarningOptions(), clang::serialization::ModuleManager::rbegin(), and clang::serialization::ModuleManager::size().
|
overridevirtual |
Receives the header search options.
Reimplemented from clang::ASTReaderListener.
Definition at line 625 of file ASTReader.cpp.
References checkHeaderSearchOptions().
|
overridevirtual |
Receives the language options.
Reimplemented from clang::ASTReaderListener.
Definition at line 303 of file ASTReader.cpp.
References checkLanguageOptions().
|
overridevirtual |
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 592 of file ASTReader.cpp.
References checkPreprocessorOptions().
|
overridevirtual |
Receives the target options.
Reimplemented from clang::ASTReaderListener.
Definition at line 312 of file ASTReader.cpp.
References checkTargetOptions().