clang 20.0.0git
|
Abstract interface for callback invocations by the ASTReader. More...
#include "clang/Serialization/ASTReader.h"
Public Member Functions | |
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. | |
Abstract interface for callback invocations by the ASTReader.
While reading an AST file, the ASTReader will call the methods of the listener to pass on specific information. Some of the listener methods can return true to indicate to the ASTReader that the information (and consequently the AST file) is invalid.
Definition at line 114 of file ASTReader.h.
|
virtualdefault |
|
inlinevirtual |
Returns true if this ASTReaderListener
wants to receive the imports of the AST file via visitImport
, false otherwise.
Definition at line 240 of file ASTReader.h.
Referenced by clang::ASTReader::readASTFileControlBlock().
|
inlinevirtual |
Returns true if this ASTReaderListener
wants to receive the input files of the AST file via visitInputFile
, false otherwise.
Reimplemented in clang::ChainedASTReaderListener.
Definition at line 221 of file ASTReader.h.
Referenced by clang::ASTReader::readASTFileControlBlock().
|
inlinevirtual |
Returns true if this ASTReaderListener
wants to receive the system input files of the AST file via visitInputFile
, false otherwise.
Reimplemented in clang::ChainedASTReaderListener.
Definition at line 225 of file ASTReader.h.
Referenced by clang::ASTReader::readASTFileControlBlock().
|
inlinevirtual |
Receives COUNTER value.
Reimplemented in clang::ChainedASTReaderListener, and clang::PCHValidator.
Definition at line 212 of file ASTReader.h.
|
inlinevirtual |
Receives the diagnostic options.
Reimplemented in clang::ChainedASTReaderListener, and clang::PCHValidator.
Definition at line 153 of file ASTReader.h.
|
inlinevirtual |
Receives the file system options.
Reimplemented in clang::ChainedASTReaderListener.
Definition at line 162 of file ASTReader.h.
|
inlinevirtual |
Receives the full Clang version information.
Reimplemented in clang::ChainedASTReaderListener.
Definition at line 122 of file ASTReader.h.
References clang::getClangFullRepositoryVersion().
Referenced by clang::ASTReader::readASTFileControlBlock().
|
inlinevirtual |
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 in clang::ChainedASTReaderListener, and clang::PCHValidator.
Definition at line 175 of file ASTReader.h.
|
inlinevirtual |
Receives the header search paths.
HSOpts | The read header search paths. Only the following fields are initialized: UserEntries, SystemHeaderPrefixes, VFSOverlayFiles. The rest is reported in ReadHeaderSearchOptions(). |
Definition at line 191 of file ASTReader.h.
|
inlinevirtual |
Receives the language options.
Reimplemented in clang::ChainedASTReaderListener, and clang::PCHValidator.
Definition at line 132 of file ASTReader.h.
|
inlinevirtual |
Indicates that a particular module file extension has been read.
Reimplemented in clang::ChainedASTReaderListener.
Definition at line 247 of file ASTReader.h.
Referenced by clang::ASTReader::readASTFileControlBlock().
|
inlinevirtual |
Reimplemented in clang::ChainedASTReaderListener.
Definition at line 127 of file ASTReader.h.
Referenced by clang::ASTReader::readASTFileControlBlock().
|
inlinevirtual |
Reimplemented in clang::ChainedASTReaderListener.
Definition at line 126 of file ASTReader.h.
Referenced by clang::ASTReader::readASTFileControlBlock().
|
inlinevirtual |
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 in clang::ChainedASTReaderListener, clang::PCHValidator, and clang::SimpleASTReaderListener.
Definition at line 204 of file ASTReader.h.
|
inlinevirtual |
Receives the target options.
Reimplemented in clang::ChainedASTReaderListener, and clang::PCHValidator.
Definition at line 142 of file ASTReader.h.
|
inlinevirtual |
If needsImportVisitation returns true
, this is called for each AST file imported by this AST file.
Definition at line 244 of file ASTReader.h.
Referenced by clang::ASTReader::readASTFileControlBlock().
|
inlinevirtual |
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.
Reimplemented in clang::ChainedASTReaderListener.
Definition at line 233 of file ASTReader.h.
Referenced by clang::ASTReader::readASTFileControlBlock().
|
inlinevirtual |
This is called for each AST file loaded.
Reimplemented in clang::ChainedASTReaderListener, and clang::RewriteIncludesAction::RewriteImportsListener.
Definition at line 216 of file ASTReader.h.