clang 22.0.0git
|
Simple wrapper class for chaining listeners. More...
#include "clang/Serialization/ASTReader.h"
Public Member Functions | |
ChainedASTReaderListener (std::unique_ptr< ASTReaderListener > First, std::unique_ptr< ASTReaderListener > Second) | |
Takes ownership of First and Second . | |
std::unique_ptr< ASTReaderListener > | takeFirst () |
std::unique_ptr< ASTReaderListener > | takeSecond () |
bool | ReadFullVersionInformation (StringRef FullVersion) override |
Receives the full Clang version information. | |
void | ReadModuleName (StringRef ModuleName) override |
void | ReadModuleMapFile (StringRef ModuleMapPath) override |
bool | ReadLanguageOptions (const LangOptions &LangOpts, StringRef ModuleFilename, bool Complain, bool AllowCompatibleDifferences) override |
Receives the language options. | |
bool | ReadCodeGenOptions (const CodeGenOptions &CGOpts, StringRef ModuleFilename, bool Complain, bool AllowCompatibleDifferences) override |
Receives the codegen options. | |
bool | ReadTargetOptions (const TargetOptions &TargetOpts, StringRef ModuleFilename, bool Complain, bool AllowCompatibleDifferences) override |
Receives the target options. | |
bool | ReadDiagnosticOptions (DiagnosticOptions &DiagOpts, StringRef ModuleFilename, bool Complain) override |
Receives the diagnostic options. | |
bool | ReadFileSystemOptions (const FileSystemOptions &FSOpts, bool Complain) override |
Receives the file system options. | |
bool | ReadHeaderSearchOptions (const HeaderSearchOptions &HSOpts, StringRef ModuleFilename, StringRef SpecificModuleCachePath, bool Complain) override |
Receives the header search options. | |
bool | ReadPreprocessorOptions (const PreprocessorOptions &PPOpts, StringRef ModuleFilename, bool ReadMacros, bool Complain, std::string &SuggestedPredefines) override |
Receives the preprocessor options. | |
void | ReadCounter (const serialization::ModuleFile &M, unsigned Value) override |
Receives COUNTER value. | |
bool | needsInputFileVisitation () override |
Returns true if this ASTReaderListener wants to receive the input files of the AST file via visitInputFile , false otherwise. | |
bool | needsSystemInputFileVisitation () override |
Returns true if this ASTReaderListener wants to receive the system input files of the AST file via visitInputFile , false otherwise. | |
void | visitModuleFile (StringRef Filename, serialization::ModuleKind Kind) override |
This is called for each AST file loaded. | |
bool | visitInputFile (StringRef Filename, bool isSystem, bool isOverridden, bool isExplicitModule) override |
if needsInputFileVisitation returns true, this is called for each non-system input file of the AST File. | |
void | readModuleFileExtension (const ModuleFileExtensionMetadata &Metadata) override |
Indicates that a particular module file extension has been read. | |
Public Member Functions inherited from clang::ASTReaderListener | |
virtual | ~ASTReaderListener () |
virtual bool | ReadHeaderSearchPaths (const HeaderSearchOptions &HSOpts, bool Complain) |
Receives the header search paths. | |
virtual bool | visitInputFileAsRequested (StringRef FilenameAsRequested, StringRef Filename, bool isSystem, bool isOverridden, bool isExplicitModule) |
Similiar to member function of visitInputFile but should be defined when there is a distinction between the file name and the name-as-requested. | |
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. |
Simple wrapper class for chaining listeners.
Definition at line 276 of file ASTReader.h.
|
inline |
Takes ownership of First
and Second
.
Definition at line 282 of file ASTReader.h.
|
overridevirtual |
Returns true if this ASTReaderListener
wants to receive the input files of the AST file via visitInputFile
, false otherwise.
Reimplemented from clang::ASTReaderListener.
Definition at line 233 of file ASTReader.cpp.
|
overridevirtual |
Returns true if this ASTReaderListener
wants to receive the system input files of the AST file via visitInputFile
, false otherwise.
Reimplemented from clang::ASTReaderListener.
Definition at line 238 of file ASTReader.cpp.
|
overridevirtual |
Receives the codegen options.
Reimplemented from clang::ASTReaderListener.
Definition at line 178 of file ASTReader.cpp.
|
overridevirtual |
Receives COUNTER value.
Reimplemented from clang::ASTReaderListener.
Definition at line 227 of file ASTReader.cpp.
|
overridevirtual |
Receives the diagnostic options.
Reimplemented from clang::ASTReaderListener.
Definition at line 196 of file ASTReader.cpp.
|
overridevirtual |
Receives the file system options.
Reimplemented from clang::ASTReaderListener.
Definition at line 203 of file ASTReader.cpp.
|
overridevirtual |
Receives the full Clang version information.
Reimplemented from clang::ASTReaderListener.
Definition at line 154 of file ASTReader.cpp.
|
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 209 of file ASTReader.cpp.
|
overridevirtual |
Receives the language options.
Reimplemented from clang::ASTReaderListener.
Definition at line 169 of file ASTReader.cpp.
|
overridevirtual |
Indicates that a particular module file extension has been read.
Reimplemented from clang::ASTReaderListener.
Definition at line 265 of file ASTReader.cpp.
|
overridevirtual |
Reimplemented from clang::ASTReaderListener.
Definition at line 164 of file ASTReader.cpp.
|
overridevirtual |
Reimplemented from clang::ASTReaderListener.
Definition at line 159 of file ASTReader.cpp.
|
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 218 of file ASTReader.cpp.
|
overridevirtual |
Receives the target options.
Reimplemented from clang::ASTReaderListener.
Definition at line 187 of file ASTReader.cpp.
|
inline |
Definition at line 286 of file ASTReader.h.
|
inline |
Definition at line 287 of file ASTReader.h.
Referenced by clang::ASTReader::ListenerScope::~ListenerScope().
|
overridevirtual |
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 from clang::ASTReaderListener.
Definition at line 249 of file ASTReader.cpp.
|
overridevirtual |
This is called for each AST file loaded.
Reimplemented from clang::ASTReaderListener.
Definition at line 243 of file ASTReader.cpp.