clang 19.0.0git
Public Member Functions | List of all members
clang::MultiplexASTMutationListener Class Reference
Inheritance diagram for clang::MultiplexASTMutationListener:
Inheritance graph
[legend]

Public Member Functions

 MultiplexASTMutationListener (ArrayRef< ASTMutationListener * > L)
 
void CompletedTagDefinition (const TagDecl *D) override
 A new TagDecl definition was completed.
 
void AddedVisibleDecl (const DeclContext *DC, const Decl *D) override
 A new declaration with name has been added to a DeclContext.
 
void AddedCXXImplicitMember (const CXXRecordDecl *RD, const Decl *D) override
 An implicit member was added after the definition was completed.
 
void AddedCXXTemplateSpecialization (const ClassTemplateDecl *TD, const ClassTemplateSpecializationDecl *D) override
 A template specialization (or partial one) was added to the template declaration.
 
void AddedCXXTemplateSpecialization (const VarTemplateDecl *TD, const VarTemplateSpecializationDecl *D) override
 A template specialization (or partial one) was added to the template declaration.
 
void AddedCXXTemplateSpecialization (const FunctionTemplateDecl *TD, const FunctionDecl *D) override
 A template specialization (or partial one) was added to the template declaration.
 
void ResolvedExceptionSpec (const FunctionDecl *FD) override
 A function's exception specification has been evaluated or instantiated.
 
void DeducedReturnType (const FunctionDecl *FD, QualType ReturnType) override
 A function's return type has been deduced.
 
void ResolvedOperatorDelete (const CXXDestructorDecl *DD, const FunctionDecl *Delete, Expr *ThisArg) override
 A virtual destructor's operator delete has been resolved.
 
void CompletedImplicitDefinition (const FunctionDecl *D) override
 An implicit member got a definition.
 
void InstantiationRequested (const ValueDecl *D) override
 The instantiation of a templated function or variable was requested.
 
void VariableDefinitionInstantiated (const VarDecl *D) override
 A templated variable's definition was implicitly instantiated.
 
void FunctionDefinitionInstantiated (const FunctionDecl *D) override
 A function template's definition was instantiated.
 
void DefaultArgumentInstantiated (const ParmVarDecl *D) override
 A default argument was instantiated.
 
void DefaultMemberInitializerInstantiated (const FieldDecl *D) override
 A default member initializer was instantiated.
 
void AddedObjCCategoryToInterface (const ObjCCategoryDecl *CatD, const ObjCInterfaceDecl *IFD) override
 A new objc category class was added for an interface.
 
void DeclarationMarkedUsed (const Decl *D) override
 A declaration is marked used which was not previously marked used.
 
void DeclarationMarkedOpenMPThreadPrivate (const Decl *D) override
 A declaration is marked as OpenMP threadprivate which was not previously marked as threadprivate.
 
void DeclarationMarkedOpenMPAllocate (const Decl *D, const Attr *A) override
 A declaration is marked as a variable with OpenMP allocator.
 
void DeclarationMarkedOpenMPDeclareTarget (const Decl *D, const Attr *Attr) override
 A declaration is marked as OpenMP declaretarget which was not previously marked as declaretarget.
 
void RedefinedHiddenDefinition (const NamedDecl *D, Module *M) override
 A definition has been made visible by being redefined locally.
 
void AddedAttributeToRecord (const Attr *Attr, const RecordDecl *Record) override
 An attribute was added to a RecordDecl.
 
void EnteringModulePurview () override
 The parser find the named module declaration.
 
void AddedManglingNumber (const Decl *D, unsigned) override
 An mangling number was added to a Decl.
 
void AddedStaticLocalNumbers (const Decl *D, unsigned) override
 An static local number was added to a Decl.
 
void AddedAnonymousNamespace (const TranslationUnitDecl *, NamespaceDecl *AnonNamespace) override
 An anonymous namespace was added the translation unit decl.
 
- Public Member Functions inherited from clang::ASTMutationListener
virtual ~ASTMutationListener ()
 
virtual void CompletedTagDefinition (const TagDecl *D)
 A new TagDecl definition was completed.
 
virtual void AddedVisibleDecl (const DeclContext *DC, const Decl *D)
 A new declaration with name has been added to a DeclContext.
 
virtual void AddedCXXImplicitMember (const CXXRecordDecl *RD, const Decl *D)
 An implicit member was added after the definition was completed.
 
virtual void AddedCXXTemplateSpecialization (const ClassTemplateDecl *TD, const ClassTemplateSpecializationDecl *D)
 A template specialization (or partial one) was added to the template declaration.
 
virtual void AddedCXXTemplateSpecialization (const VarTemplateDecl *TD, const VarTemplateSpecializationDecl *D)
 A template specialization (or partial one) was added to the template declaration.
 
virtual void AddedCXXTemplateSpecialization (const FunctionTemplateDecl *TD, const FunctionDecl *D)
 A template specialization (or partial one) was added to the template declaration.
 
virtual void ResolvedExceptionSpec (const FunctionDecl *FD)
 A function's exception specification has been evaluated or instantiated.
 
virtual void DeducedReturnType (const FunctionDecl *FD, QualType ReturnType)
 A function's return type has been deduced.
 
virtual void ResolvedOperatorDelete (const CXXDestructorDecl *DD, const FunctionDecl *Delete, Expr *ThisArg)
 A virtual destructor's operator delete has been resolved.
 
virtual void CompletedImplicitDefinition (const FunctionDecl *D)
 An implicit member got a definition.
 
virtual void InstantiationRequested (const ValueDecl *D)
 The instantiation of a templated function or variable was requested.
 
virtual void VariableDefinitionInstantiated (const VarDecl *D)
 A templated variable's definition was implicitly instantiated.
 
virtual void FunctionDefinitionInstantiated (const FunctionDecl *D)
 A function template's definition was instantiated.
 
virtual void DefaultArgumentInstantiated (const ParmVarDecl *D)
 A default argument was instantiated.
 
virtual void DefaultMemberInitializerInstantiated (const FieldDecl *D)
 A default member initializer was instantiated.
 
virtual void AddedObjCCategoryToInterface (const ObjCCategoryDecl *CatD, const ObjCInterfaceDecl *IFD)
 A new objc category class was added for an interface.
 
virtual void DeclarationMarkedUsed (const Decl *D)
 A declaration is marked used which was not previously marked used.
 
virtual void DeclarationMarkedOpenMPThreadPrivate (const Decl *D)
 A declaration is marked as OpenMP threadprivate which was not previously marked as threadprivate.
 
virtual void DeclarationMarkedOpenMPDeclareTarget (const Decl *D, const Attr *Attr)
 A declaration is marked as OpenMP declaretarget which was not previously marked as declaretarget.
 
virtual void DeclarationMarkedOpenMPAllocate (const Decl *D, const Attr *A)
 A declaration is marked as a variable with OpenMP allocator.
 
virtual void RedefinedHiddenDefinition (const NamedDecl *D, Module *M)
 A definition has been made visible by being redefined locally.
 
virtual void AddedAttributeToRecord (const Attr *Attr, const RecordDecl *Record)
 An attribute was added to a RecordDecl.
 
virtual void EnteringModulePurview ()
 The parser find the named module declaration.
 
virtual void AddedManglingNumber (const Decl *D, unsigned Number)
 An mangling number was added to a Decl.
 
virtual void AddedStaticLocalNumbers (const Decl *D, unsigned Number)
 An static local number was added to a Decl.
 
virtual void AddedAnonymousNamespace (const TranslationUnitDecl *TU, NamespaceDecl *AnonNamespace)
 An anonymous namespace was added the translation unit decl.
 

Detailed Description

Definition at line 87 of file MultiplexConsumer.cpp.

Constructor & Destructor Documentation

◆ MultiplexASTMutationListener()

clang::MultiplexASTMutationListener::MultiplexASTMutationListener ( ArrayRef< ASTMutationListener * >  L)

Definition at line 131 of file MultiplexConsumer.cpp.

Member Function Documentation

◆ AddedAnonymousNamespace()

void clang::MultiplexASTMutationListener::AddedAnonymousNamespace ( const TranslationUnitDecl TU,
NamespaceDecl AnonNamespace 
)
overridevirtual

An anonymous namespace was added the translation unit decl.

Parameters
TUThe translation unit decl that got a new anonymous namespace
AnonNamespaceThe anonymous namespace that was added

Reimplemented from clang::ASTMutationListener.

Definition at line 264 of file MultiplexConsumer.cpp.

◆ AddedAttributeToRecord()

void clang::MultiplexASTMutationListener::AddedAttributeToRecord ( const Attr Attr,
const RecordDecl Record 
)
overridevirtual

An attribute was added to a RecordDecl.

Parameters
AttrThe attribute that was added to the Record
RecordThe RecordDecl that got a new attribute

Reimplemented from clang::ASTMutationListener.

Definition at line 242 of file MultiplexConsumer.cpp.

◆ AddedCXXImplicitMember()

void clang::MultiplexASTMutationListener::AddedCXXImplicitMember ( const CXXRecordDecl RD,
const Decl D 
)
overridevirtual

An implicit member was added after the definition was completed.

Reimplemented from clang::ASTMutationListener.

Definition at line 147 of file MultiplexConsumer.cpp.

◆ AddedCXXTemplateSpecialization() [1/3]

void clang::MultiplexASTMutationListener::AddedCXXTemplateSpecialization ( const ClassTemplateDecl TD,
const ClassTemplateSpecializationDecl D 
)
overridevirtual

A template specialization (or partial one) was added to the template declaration.

Reimplemented from clang::ASTMutationListener.

Definition at line 152 of file MultiplexConsumer.cpp.

◆ AddedCXXTemplateSpecialization() [2/3]

void clang::MultiplexASTMutationListener::AddedCXXTemplateSpecialization ( const FunctionTemplateDecl TD,
const FunctionDecl D 
)
overridevirtual

A template specialization (or partial one) was added to the template declaration.

Reimplemented from clang::ASTMutationListener.

Definition at line 162 of file MultiplexConsumer.cpp.

◆ AddedCXXTemplateSpecialization() [3/3]

void clang::MultiplexASTMutationListener::AddedCXXTemplateSpecialization ( const VarTemplateDecl TD,
const VarTemplateSpecializationDecl D 
)
overridevirtual

A template specialization (or partial one) was added to the template declaration.

Reimplemented from clang::ASTMutationListener.

Definition at line 157 of file MultiplexConsumer.cpp.

◆ AddedManglingNumber()

void clang::MultiplexASTMutationListener::AddedManglingNumber ( const Decl D,
unsigned  Number 
)
overridevirtual

An mangling number was added to a Decl.

Parameters
DThe decl that got a mangling number
NumberThe mangling number that was added to the Decl

Reimplemented from clang::ASTMutationListener.

Definition at line 254 of file MultiplexConsumer.cpp.

◆ AddedObjCCategoryToInterface()

void clang::MultiplexASTMutationListener::AddedObjCCategoryToInterface ( const ObjCCategoryDecl CatD,
const ObjCInterfaceDecl IFD 
)
overridevirtual

A new objc category class was added for an interface.

Reimplemented from clang::ASTMutationListener.

Definition at line 211 of file MultiplexConsumer.cpp.

◆ AddedStaticLocalNumbers()

void clang::MultiplexASTMutationListener::AddedStaticLocalNumbers ( const Decl D,
unsigned  Number 
)
overridevirtual

An static local number was added to a Decl.

Parameters
DThe decl that got a static local number
NumberThe static local number that was added to the Decl

Reimplemented from clang::ASTMutationListener.

Definition at line 259 of file MultiplexConsumer.cpp.

◆ AddedVisibleDecl()

void clang::MultiplexASTMutationListener::AddedVisibleDecl ( const DeclContext DC,
const Decl D 
)
overridevirtual

A new declaration with name has been added to a DeclContext.

Reimplemented from clang::ASTMutationListener.

Definition at line 141 of file MultiplexConsumer.cpp.

◆ CompletedImplicitDefinition()

void clang::MultiplexASTMutationListener::CompletedImplicitDefinition ( const FunctionDecl D)
overridevirtual

An implicit member got a definition.

Reimplemented from clang::ASTMutationListener.

Definition at line 182 of file MultiplexConsumer.cpp.

◆ CompletedTagDefinition()

void clang::MultiplexASTMutationListener::CompletedTagDefinition ( const TagDecl D)
overridevirtual

A new TagDecl definition was completed.

Reimplemented from clang::ASTMutationListener.

Definition at line 136 of file MultiplexConsumer.cpp.

◆ DeclarationMarkedOpenMPAllocate()

void clang::MultiplexASTMutationListener::DeclarationMarkedOpenMPAllocate ( const Decl D,
const Attr A 
)
overridevirtual

A declaration is marked as a variable with OpenMP allocator.

Parameters
Dthe declaration marked as a variable with OpenMP allocator.

Reimplemented from clang::ASTMutationListener.

Definition at line 226 of file MultiplexConsumer.cpp.

◆ DeclarationMarkedOpenMPDeclareTarget()

void clang::MultiplexASTMutationListener::DeclarationMarkedOpenMPDeclareTarget ( const Decl D,
const Attr Attr 
)
overridevirtual

A declaration is marked as OpenMP declaretarget which was not previously marked as declaretarget.

Parameters
Dthe declaration marked OpenMP declaretarget.
Attrthe added attribute.

Reimplemented from clang::ASTMutationListener.

Definition at line 231 of file MultiplexConsumer.cpp.

◆ DeclarationMarkedOpenMPThreadPrivate()

void clang::MultiplexASTMutationListener::DeclarationMarkedOpenMPThreadPrivate ( const Decl D)
overridevirtual

A declaration is marked as OpenMP threadprivate which was not previously marked as threadprivate.

Parameters
Dthe declaration marked OpenMP threadprivate.

Reimplemented from clang::ASTMutationListener.

Definition at line 221 of file MultiplexConsumer.cpp.

◆ DeclarationMarkedUsed()

void clang::MultiplexASTMutationListener::DeclarationMarkedUsed ( const Decl D)
overridevirtual

A declaration is marked used which was not previously marked used.

Parameters
Dthe declaration marked used

Reimplemented from clang::ASTMutationListener.

Definition at line 217 of file MultiplexConsumer.cpp.

◆ DeducedReturnType()

void clang::MultiplexASTMutationListener::DeducedReturnType ( const FunctionDecl FD,
QualType  ReturnType 
)
overridevirtual

A function's return type has been deduced.

Reimplemented from clang::ASTMutationListener.

Definition at line 172 of file MultiplexConsumer.cpp.

◆ DefaultArgumentInstantiated()

void clang::MultiplexASTMutationListener::DefaultArgumentInstantiated ( const ParmVarDecl D)
overridevirtual

A default argument was instantiated.

Reimplemented from clang::ASTMutationListener.

Definition at line 201 of file MultiplexConsumer.cpp.

◆ DefaultMemberInitializerInstantiated()

void clang::MultiplexASTMutationListener::DefaultMemberInitializerInstantiated ( const FieldDecl D)
overridevirtual

A default member initializer was instantiated.

Reimplemented from clang::ASTMutationListener.

Definition at line 206 of file MultiplexConsumer.cpp.

◆ EnteringModulePurview()

void clang::MultiplexASTMutationListener::EnteringModulePurview ( )
overridevirtual

The parser find the named module declaration.

Reimplemented from clang::ASTMutationListener.

Definition at line 249 of file MultiplexConsumer.cpp.

◆ FunctionDefinitionInstantiated()

void clang::MultiplexASTMutationListener::FunctionDefinitionInstantiated ( const FunctionDecl D)
overridevirtual

A function template's definition was instantiated.

Reimplemented from clang::ASTMutationListener.

Definition at line 196 of file MultiplexConsumer.cpp.

◆ InstantiationRequested()

void clang::MultiplexASTMutationListener::InstantiationRequested ( const ValueDecl D)
overridevirtual

The instantiation of a templated function or variable was requested.

In particular, the point of instantiation and template specialization kind of D may have changed.

Reimplemented from clang::ASTMutationListener.

Definition at line 187 of file MultiplexConsumer.cpp.

◆ RedefinedHiddenDefinition()

void clang::MultiplexASTMutationListener::RedefinedHiddenDefinition ( const NamedDecl D,
Module M 
)
overridevirtual

A definition has been made visible by being redefined locally.

Parameters
DThe definition that was previously not visible.
MThe containing module in which the definition was made visible, if any.

Reimplemented from clang::ASTMutationListener.

Definition at line 236 of file MultiplexConsumer.cpp.

◆ ResolvedExceptionSpec()

void clang::MultiplexASTMutationListener::ResolvedExceptionSpec ( const FunctionDecl FD)
overridevirtual

A function's exception specification has been evaluated or instantiated.

Reimplemented from clang::ASTMutationListener.

Definition at line 167 of file MultiplexConsumer.cpp.

◆ ResolvedOperatorDelete()

void clang::MultiplexASTMutationListener::ResolvedOperatorDelete ( const CXXDestructorDecl DD,
const FunctionDecl Delete,
Expr ThisArg 
)
overridevirtual

A virtual destructor's operator delete has been resolved.

Reimplemented from clang::ASTMutationListener.

Definition at line 177 of file MultiplexConsumer.cpp.

References clang::Delete.

◆ VariableDefinitionInstantiated()

void clang::MultiplexASTMutationListener::VariableDefinitionInstantiated ( const VarDecl D)
overridevirtual

A templated variable's definition was implicitly instantiated.

Reimplemented from clang::ASTMutationListener.

Definition at line 191 of file MultiplexConsumer.cpp.


The documentation for this class was generated from the following file: