clang 20.0.0git
|
ASTReaderListener implementation to validate the information of the PCH file against an initialized Preprocessor. More...
#include "clang/Serialization/ASTReader.h"
Public Member Functions | |
PCHValidator (Preprocessor &PP, ASTReader &Reader) | |
bool | ReadLanguageOptions (const LangOptions &LangOpts, StringRef ModuleFilename, bool Complain, bool AllowCompatibleDifferences) override |
Receives the language options. | |
bool | ReadTargetOptions (const TargetOptions &TargetOpts, StringRef ModuleFilename, bool Complain, bool AllowCompatibleDifferences) override |
Receives the target options. | |
bool | ReadDiagnosticOptions (IntrusiveRefCntPtr< DiagnosticOptions > DiagOpts, StringRef ModuleFilename, bool Complain) override |
Receives the diagnostic options. | |
bool | ReadPreprocessorOptions (const PreprocessorOptions &PPOpts, StringRef ModuleFilename, bool ReadMacros, bool Complain, std::string &SuggestedPredefines) override |
Receives the preprocessor options. | |
bool | ReadHeaderSearchOptions (const HeaderSearchOptions &HSOpts, StringRef ModuleFilename, StringRef SpecificModuleCachePath, bool Complain) override |
Receives the header search options. | |
void | ReadCounter (const serialization::ModuleFile &M, unsigned Value) override |
Receives COUNTER value. | |
Public Member Functions inherited from clang::ASTReaderListener | |
virtual | ~ASTReaderListener () |
virtual bool | ReadFullVersionInformation (StringRef FullVersion) |
Receives the full Clang version information. | |
virtual void | ReadModuleName (StringRef ModuleName) |
virtual void | ReadModuleMapFile (StringRef ModuleMapPath) |
virtual bool | ReadLanguageOptions (const LangOptions &LangOpts, StringRef ModuleFilename, bool Complain, bool AllowCompatibleDifferences) |
Receives the language options. | |
virtual bool | ReadTargetOptions (const TargetOptions &TargetOpts, StringRef ModuleFilename, bool Complain, bool AllowCompatibleDifferences) |
Receives the target options. | |
virtual bool | ReadDiagnosticOptions (IntrusiveRefCntPtr< DiagnosticOptions > DiagOpts, StringRef ModuleFilename, bool Complain) |
Receives the diagnostic options. | |
virtual bool | ReadFileSystemOptions (const FileSystemOptions &FSOpts, bool Complain) |
Receives the file system options. | |
virtual bool | ReadHeaderSearchOptions (const HeaderSearchOptions &HSOpts, StringRef ModuleFilename, StringRef SpecificModuleCachePath, bool Complain) |
Receives the header search options. | |
virtual bool | ReadHeaderSearchPaths (const HeaderSearchOptions &HSOpts, bool Complain) |
Receives the header search paths. | |
virtual bool | ReadPreprocessorOptions (const PreprocessorOptions &PPOpts, StringRef ModuleFilename, bool ReadMacros, bool Complain, std::string &SuggestedPredefines) |
Receives the preprocessor options. | |
virtual void | ReadCounter (const serialization::ModuleFile &M, unsigned Value) |
Receives COUNTER value. | |
virtual void | visitModuleFile (StringRef Filename, serialization::ModuleKind Kind) |
This is called for each AST file loaded. | |
virtual bool | needsInputFileVisitation () |
Returns true if this ASTReaderListener wants to receive the input files of the AST file via visitInputFile , false otherwise. | |
virtual bool | needsSystemInputFileVisitation () |
Returns true if this ASTReaderListener wants to receive the system input files of the AST file via visitInputFile , false otherwise. | |
virtual bool | visitInputFile (StringRef Filename, bool isSystem, bool isOverridden, bool isExplicitModule) |
if needsInputFileVisitation returns true, this is called for each non-system input file of the AST File. | |
virtual bool | needsImportVisitation () const |
Returns true if this ASTReaderListener wants to receive the imports of the AST file via visitImport , false otherwise. | |
virtual void | visitImport (StringRef ModuleName, StringRef Filename) |
If needsImportVisitation returns true , this is called for each AST file imported by this AST file. | |
virtual void | readModuleFileExtension (const ModuleFileExtensionMetadata &Metadata) |
Indicates that a particular module file extension has been read. | |
ASTReaderListener implementation to validate the information of the PCH file against an initialized Preprocessor.
Definition at line 301 of file ASTReader.h.
|
inline |
Definition at line 306 of file ASTReader.h.
|
overridevirtual |
Receives COUNTER value.
Reimplemented from clang::ASTReaderListener.
Definition at line 894 of file ASTReader.cpp.
References clang::Preprocessor::setCounterValue().
|
overridevirtual |
Receives the diagnostic options.
Reimplemented from clang::ASTReaderListener.
Definition at line 596 of file ASTReader.cpp.
References checkDiagnosticMappings(), clang::Preprocessor::getCurrentModule(), clang::DiagnosticsEngine::getDiagnosticIDs(), clang::DiagnosticsEngine::getDiagnosticOptions(), clang::Preprocessor::getDiagnostics(), clang::ASTReader::getModuleManager(), getTopImportImplicitModule(), clang::Module::IsSystem, clang::Module::Name, clang::ProcessWarningOptions(), clang::serialization::ModuleManager::size(), and clang::DiagnosticOptions::SystemHeaderWarningsModules.
|
overridevirtual |
Receives the header search options.
HSOpts | The read header search options. The following fields are missing and are reported in ReadHeaderSearchPaths(): UserEntries, SystemHeaderPrefixes, VFSOverlayFiles. |
Reimplemented from clang::ASTReaderListener.
Definition at line 883 of file ASTReader.cpp.
References checkModuleCachePath(), clang::ASTReader::getFileManager(), clang::Preprocessor::getHeaderSearchInfo(), clang::Preprocessor::getLangOpts(), clang::HeaderSearch::getModuleCachePath(), clang::Preprocessor::getPreprocessorOpts(), and clang::FileManager::getVirtualFileSystem().
|
overridevirtual |
Receives the language options.
Reimplemented from clang::ASTReaderListener.
Definition at line 457 of file ASTReader.cpp.
References checkLanguageOptions(), and clang::Preprocessor::getLangOpts().
|
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 838 of file ASTReader.cpp.
References checkPreprocessorOptions(), clang::Preprocessor::getFileManager(), clang::Preprocessor::getLangOpts(), and clang::Preprocessor::getPreprocessorOpts().
|
overridevirtual |
Receives the target options.
Reimplemented from clang::ASTReaderListener.
Definition at line 466 of file ASTReader.cpp.
References checkTargetOptions(), clang::Preprocessor::getTargetInfo(), and clang::TargetInfo::getTargetOpts().