clang
9.0.0
|
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. More... | |
virtual void | ReadModuleName (StringRef ModuleName) |
virtual void | ReadModuleMapFile (StringRef ModuleMapPath) |
virtual bool | ReadLanguageOptions (const LangOptions &LangOpts, bool Complain, bool AllowCompatibleDifferences) |
Receives the language options. More... | |
virtual bool | ReadTargetOptions (const TargetOptions &TargetOpts, bool Complain, bool AllowCompatibleDifferences) |
Receives the target options. More... | |
virtual bool | ReadDiagnosticOptions (IntrusiveRefCntPtr< DiagnosticOptions > DiagOpts, bool Complain) |
Receives the diagnostic options. More... | |
virtual bool | ReadFileSystemOptions (const FileSystemOptions &FSOpts, bool Complain) |
Receives the file system options. More... | |
virtual bool | ReadHeaderSearchOptions (const HeaderSearchOptions &HSOpts, StringRef SpecificModuleCachePath, bool Complain) |
Receives the header search options. More... | |
virtual bool | ReadPreprocessorOptions (const PreprocessorOptions &PPOpts, bool Complain, std::string &SuggestedPredefines) |
Receives the preprocessor options. More... | |
virtual void | ReadCounter (const serialization::ModuleFile &M, unsigned Value) |
Receives COUNTER value. More... | |
virtual void | visitModuleFile (StringRef Filename, serialization::ModuleKind Kind) |
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, bool isExplicitModule) |
if needsInputFileVisitation returns true, this is called for each non-system input file of the AST File. 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 ModuleName, StringRef Filename) |
If needsImportVisitation returns true , this is called for each AST file imported by this AST file. More... | |
virtual void | readModuleFileExtension (const ModuleFileExtensionMetadata &Metadata) |
Indicates that a particular module file extension has been read. More... | |
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 126 of file ASTReader.h.
|
virtualdefault |
Referenced by clang::ChainedASTReaderListener::readModuleFileExtension().
|
inlinevirtual |
Returns true if this ASTReaderListener
wants to receive the imports of the AST file via visitImport
, false otherwise.
Definition at line 231 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 212 of file ASTReader.h.
Referenced by isDiagnosedResult(), clang::ASTReader::readASTFileControlBlock(), and clang::ChainedASTReaderListener::takeSecond().
|
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 216 of file ASTReader.h.
Referenced by isDiagnosedResult(), clang::ASTReader::readASTFileControlBlock(), and clang::ChainedASTReaderListener::takeSecond().
|
inlinevirtual |
Receives COUNTER value.
Reimplemented in clang::PCHValidator, and clang::ChainedASTReaderListener.
Definition at line 203 of file ASTReader.h.
Referenced by isDiagnosedResult(), clang::PCHValidator::PCHValidator(), and clang::ChainedASTReaderListener::takeSecond().
|
inlinevirtual |
Receives the diagnostic options.
Reimplemented in clang::PCHValidator, and clang::ChainedASTReaderListener.
Definition at line 164 of file ASTReader.h.
Referenced by clang::PCHValidator::PCHValidator(), and clang::ChainedASTReaderListener::takeSecond().
|
inlinevirtual |
Receives the file system options.
Reimplemented in clang::ChainedASTReaderListener.
Definition at line 173 of file ASTReader.h.
Referenced by clang::ChainedASTReaderListener::takeSecond().
|
inlinevirtual |
Receives the full Clang version information.
Reimplemented in clang::ChainedASTReaderListener.
Definition at line 134 of file ASTReader.h.
References clang::getClangFullRepositoryVersion().
Referenced by clang::ASTReader::readASTFileControlBlock(), and clang::ChainedASTReaderListener::takeSecond().
|
inlinevirtual |
Receives the header search options.
Reimplemented in clang::PCHValidator, and clang::ChainedASTReaderListener.
Definition at line 182 of file ASTReader.h.
Referenced by clang::PCHValidator::PCHValidator(), and clang::ChainedASTReaderListener::takeSecond().
|
inlinevirtual |
Receives the language options.
Reimplemented in clang::PCHValidator, and clang::ChainedASTReaderListener.
Definition at line 144 of file ASTReader.h.
Referenced by clang::PCHValidator::PCHValidator(), and clang::ChainedASTReaderListener::takeSecond().
|
inlinevirtual |
Indicates that a particular module file extension has been read.
Reimplemented in clang::ChainedASTReaderListener.
Definition at line 238 of file ASTReader.h.
Referenced by clang::ASTReader::readASTFileControlBlock(), and clang::ChainedASTReaderListener::takeSecond().
|
inlinevirtual |
Reimplemented in clang::ChainedASTReaderListener.
Definition at line 139 of file ASTReader.h.
Referenced by clang::ASTReader::readASTFileControlBlock(), and clang::ChainedASTReaderListener::takeSecond().
|
inlinevirtual |
Reimplemented in clang::ChainedASTReaderListener.
Definition at line 138 of file ASTReader.h.
Referenced by isDiagnosedResult(), clang::ASTReader::readASTFileControlBlock(), and clang::ChainedASTReaderListener::takeSecond().
|
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::SimpleASTReaderListener, clang::PCHValidator, and clang::ChainedASTReaderListener.
Definition at line 196 of file ASTReader.h.
Referenced by clang::PCHValidator::PCHValidator(), clang::SimpleASTReaderListener::SimpleASTReaderListener(), and clang::ChainedASTReaderListener::takeSecond().
|
inlinevirtual |
Receives the target options.
Reimplemented in clang::PCHValidator, and clang::ChainedASTReaderListener.
Definition at line 154 of file ASTReader.h.
Referenced by clang::PCHValidator::PCHValidator(), and clang::ChainedASTReaderListener::takeSecond().
|
inlinevirtual |
If needsImportVisitation returns true
, this is called for each AST file imported by this AST file.
Definition at line 235 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 224 of file ASTReader.h.
Referenced by isDiagnosedResult(), clang::ASTReader::readASTFileControlBlock(), and clang::ChainedASTReaderListener::takeSecond().
|
inlinevirtual |
This is called for each AST file loaded.
Reimplemented in clang::ChainedASTReaderListener, and clang::RewriteIncludesAction::RewriteImportsListener.
Definition at line 207 of file ASTReader.h.
Referenced by isDiagnosedResult(), and clang::ChainedASTReaderListener::takeSecond().