clang
8.0.0
|
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 . More... | |
std::unique_ptr< ASTReaderListener > | takeFirst () |
std::unique_ptr< ASTReaderListener > | takeSecond () |
bool | ReadFullVersionInformation (StringRef FullVersion) override |
Receives the full Clang version information. More... | |
void | ReadModuleName (StringRef ModuleName) override |
void | ReadModuleMapFile (StringRef ModuleMapPath) override |
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 | ReadFileSystemOptions (const FileSystemOptions &FSOpts, bool Complain) override |
Receives the file system options. More... | |
bool | ReadHeaderSearchOptions (const HeaderSearchOptions &HSOpts, StringRef SpecificModuleCachePath, bool Complain) override |
Receives the header search options. More... | |
bool | ReadPreprocessorOptions (const PreprocessorOptions &PPOpts, bool Complain, std::string &SuggestedPredefines) override |
Receives the preprocessor options. More... | |
void | ReadCounter (const serialization::ModuleFile &M, unsigned Value) override |
Receives COUNTER value. More... | |
bool | needsInputFileVisitation () override |
Returns true if this ASTReaderListener wants to receive the input files of the AST file via visitInputFile , false otherwise. More... | |
bool | needsSystemInputFileVisitation () override |
Returns true if this ASTReaderListener wants to receive the system input files of the AST file via visitInputFile , false otherwise. More... | |
void | visitModuleFile (StringRef Filename, serialization::ModuleKind Kind) override |
This is called for each AST file loaded. More... | |
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. More... | |
void | readModuleFileExtension (const ModuleFileExtensionMetadata &Metadata) override |
Indicates that a particular module file extension has been read. More... | |
![]() | |
virtual | ~ASTReaderListener () |
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... | |
Simple wrapper class for chaining listeners.
Definition at line 244 of file ASTReader.h.
|
inline |
Takes ownership of First
and Second
.
Definition at line 250 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 215 of file ASTReader.cpp.
References clang::First.
|
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 220 of file ASTReader.cpp.
References clang::First.
|
overridevirtual |
Receives COUNTER value.
Reimplemented from clang::ASTReaderListener.
Definition at line 209 of file ASTReader.cpp.
References clang::First.
|
overridevirtual |
Receives the diagnostic options.
Reimplemented from clang::ASTReaderListener.
Definition at line 179 of file ASTReader.cpp.
References clang::First.
|
overridevirtual |
Receives the file system options.
Reimplemented from clang::ASTReaderListener.
Definition at line 186 of file ASTReader.cpp.
References clang::First.
|
overridevirtual |
Receives the full Clang version information.
Reimplemented from clang::ASTReaderListener.
Definition at line 145 of file ASTReader.cpp.
References clang::First.
|
overridevirtual |
Receives the header search options.
Reimplemented from clang::ASTReaderListener.
Definition at line 192 of file ASTReader.cpp.
References clang::First.
|
overridevirtual |
Receives the language options.
Reimplemented from clang::ASTReaderListener.
Definition at line 161 of file ASTReader.cpp.
References clang::First.
|
overridevirtual |
Indicates that a particular module file extension has been read.
Reimplemented from clang::ASTReaderListener.
Definition at line 247 of file ASTReader.cpp.
References clang::First, and clang::ASTReaderListener::~ASTReaderListener().
|
overridevirtual |
Reimplemented from clang::ASTReaderListener.
Definition at line 155 of file ASTReader.cpp.
References clang::First.
|
overridevirtual |
Reimplemented from clang::ASTReaderListener.
Definition at line 150 of file ASTReader.cpp.
References clang::First.
|
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 201 of file ASTReader.cpp.
References clang::First.
|
overridevirtual |
Receives the target options.
Reimplemented from clang::ASTReaderListener.
Definition at line 170 of file ASTReader.cpp.
References clang::First.
|
inline |
Definition at line 254 of file ASTReader.h.
|
inline |
Definition at line 255 of file ASTReader.h.
References Filename, clang::SrcMgr::isSystem(), clang::ASTReaderListener::needsInputFileVisitation(), clang::ASTReaderListener::needsSystemInputFileVisitation(), clang::ASTReaderListener::ReadCounter(), clang::ASTReaderListener::ReadDiagnosticOptions(), clang::ASTReaderListener::ReadFileSystemOptions(), clang::ASTReaderListener::ReadFullVersionInformation(), clang::ASTReaderListener::ReadHeaderSearchOptions(), clang::ASTReaderListener::ReadLanguageOptions(), clang::ASTReaderListener::readModuleFileExtension(), clang::ASTReaderListener::ReadModuleMapFile(), clang::ASTReaderListener::ReadModuleName(), clang::ASTReaderListener::ReadPreprocessorOptions(), clang::ASTReaderListener::ReadTargetOptions(), clang::ASTReaderListener::visitInputFile(), and clang::ASTReaderListener::visitModuleFile().
|
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 231 of file ASTReader.cpp.
References clang::First.
|
overridevirtual |
This is called for each AST file loaded.
Reimplemented from clang::ASTReaderListener.
Definition at line 225 of file ASTReader.cpp.
References clang::First.