15 #ifndef LLVM_CLANG_FRONTEND_MULTIPLEXCONSUMER_H
16 #define LLVM_CLANG_FRONTEND_MULTIPLEXCONSUMER_H
25 class MultiplexASTMutationListener;
26 class MultiplexASTDeserializationListener;
49 llvm::StringRef
Value)
override;
62 std::vector<std::unique_ptr<ASTConsumer>> Consumers;
63 std::unique_ptr<MultiplexASTMutationListener> MutationListener;
64 std::unique_ptr<MultiplexASTDeserializationListener> DeserializationListener;
ASTMutationListener * GetASTMutationListener() override
If the consumer is interested in entities getting modified after their initial creation, it should return a pointer to an ASTMutationListener here.
void HandleTopLevelDeclInObjCContainer(DeclGroupRef D) override
Handle the specified top-level declaration that occurred inside and ObjC container. The default implementation ignored them.
void HandleDependentLibrary(llvm::StringRef Lib) override
Handle a dependent library created by a pragma in the source. Currently this only exists to support M...
void HandleVTable(CXXRecordDecl *RD) override
Callback involved at the end of a translation unit to notify the consumer that a vtable for the given...
void CompleteTentativeDefinition(VarDecl *D) override
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
void PrintStats() override
PrintStats - If desired, print any statistics.
An abstract interface that should be implemented by clients that read ASTs and then require further s...
bool HandleTopLevelDecl(DeclGroupRef D) override
MultiplexConsumer(std::vector< std::unique_ptr< ASTConsumer >> C)
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
void HandleTagDeclRequiredDefinition(const TagDecl *D) override
This callback is invoked the first time each TagDecl is required to be complete.
Sema - This implements semantic analysis and AST building for C.
~MultiplexConsumer() override
void Initialize(ASTContext &Context) override
void HandleTagDeclDefinition(TagDecl *D) override
An abstract interface that should be implemented by listeners that want to be notified when an AST en...
void HandleInterestingDecl(DeclGroupRef D) override
void HandleLinkerOptionPragma(llvm::StringRef Opts) override
Handle a pragma that appends to Linker Options. Currently this only exists to support Microsoft's #pr...
void HandleCXXImplicitFunctionInstantiation(FunctionDecl *D) override
Invoked when a function is implicitly instantiated. Note that at this point point it does not have a ...
void HandleDetectMismatch(llvm::StringRef Name, llvm::StringRef Value) override
Handle a pragma that emits a mismatch identifier and value to the object file for the linker to work ...
TagDecl - Represents the declaration of a struct/union/class/enum.
Represents a static or instance method of a struct/union/class.
void HandleImplicitImportDecl(ImportDecl *D) override
Handle an ImportDecl that was implicitly created due to an inclusion directive. The default implement...
void ForgetSema() override
Inform the semantic consumer that Sema is no longer available.
Describes a module import declaration, which makes the contents of the named module visible in the cu...
void InitializeSema(Sema &S) override
Initialize the semantic consumer with the Sema instance being used to perform semantic analysis on th...
void HandleInlineMethodDefinition(CXXMethodDecl *D) override
This callback is invoked each time an inline method definition is completed.
Represents a C++ struct/union/class.
void HandleTranslationUnit(ASTContext &Ctx) override
ASTDeserializationListener * GetASTDeserializationListener() override
If the consumer is interested in entities being deserialized from AST files, it should return a point...
void HandleCXXStaticMemberVarInstantiation(VarDecl *VD) override
HandleCXXStaticMemberVarInstantiation - Tell the consumer that this.