clang API Documentation

Public Member Functions
clang::ASTMutationListener Class Reference

An abstract interface that should be implemented by listeners that want to be notified when an AST entity gets modified after its initial creation. More...

#include <ASTMutationListener.h>

Inheritance diagram for clang::ASTMutationListener:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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 CompletedImplicitDefinition (const FunctionDecl *D)
 An implicit member got a definition.
virtual void StaticDataMemberInstantiated (const VarDecl *D)
 A static data member was implicitly instantiated.
virtual void FunctionDefinitionInstantiated (const FunctionDecl *D)
 A function template's definition was instantiated.
virtual void AddedObjCCategoryToInterface (const ObjCCategoryDecl *CatD, const ObjCInterfaceDecl *IFD)
 A new objc category class was added for an interface.
virtual void AddedObjCPropertyInClassExtension (const ObjCPropertyDecl *Prop, const ObjCPropertyDecl *OrigProp, const ObjCCategoryDecl *ClassExt)
 A objc class extension redeclared or introduced a property.
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.

Detailed Description

An abstract interface that should be implemented by listeners that want to be notified when an AST entity gets modified after its initial creation.

Definition at line 39 of file ASTMutationListener.h.


Constructor & Destructor Documentation

Definition at line 7504 of file ASTContext.cpp.


Member Function Documentation

virtual void clang::ASTMutationListener::AddedCXXImplicitMember ( const CXXRecordDecl RD,
const Decl D 
) [inline, virtual]

An implicit member was added after the definition was completed.

Reimplemented in clang::ASTWriter, and clang::MultiplexASTMutationListener.

Definition at line 50 of file ASTMutationListener.h.

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

Reimplemented in clang::ASTWriter, and clang::MultiplexASTMutationListener.

Definition at line 54 of file ASTMutationListener.h.

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

Reimplemented in clang::ASTWriter, and clang::MultiplexASTMutationListener.

Definition at line 60 of file ASTMutationListener.h.

virtual void clang::ASTMutationListener::AddedCXXTemplateSpecialization ( const FunctionTemplateDecl TD,
const FunctionDecl D 
) [inline, virtual]

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

Reimplemented in clang::ASTWriter, and clang::MultiplexASTMutationListener.

Definition at line 65 of file ASTMutationListener.h.

virtual void clang::ASTMutationListener::AddedObjCCategoryToInterface ( const ObjCCategoryDecl CatD,
const ObjCInterfaceDecl IFD 
) [inline, virtual]

A new objc category class was added for an interface.

Reimplemented in clang::ASTWriter, and clang::MultiplexASTMutationListener.

Definition at line 85 of file ASTMutationListener.h.

virtual void clang::ASTMutationListener::AddedObjCPropertyInClassExtension ( const ObjCPropertyDecl Prop,
const ObjCPropertyDecl OrigProp,
const ObjCCategoryDecl ClassExt 
) [inline, virtual]

A objc class extension redeclared or introduced a property.

Parameters:
Propthe property in the class extension
OrigPropthe property from the original interface that was declared or null if the property was introduced.
ClassExtthe class extension.

Reimplemented in clang::ASTWriter, and clang::MultiplexASTMutationListener.

Definition at line 96 of file ASTMutationListener.h.

virtual void clang::ASTMutationListener::AddedVisibleDecl ( const DeclContext DC,
const Decl D 
) [inline, virtual]

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

Reimplemented in clang::ASTWriter, and clang::MultiplexASTMutationListener.

Definition at line 47 of file ASTMutationListener.h.

virtual void clang::ASTMutationListener::CompletedImplicitDefinition ( const FunctionDecl D) [inline, virtual]

An implicit member got a definition.

Reimplemented in clang::ASTWriter, and clang::MultiplexASTMutationListener.

Definition at line 76 of file ASTMutationListener.h.

virtual void clang::ASTMutationListener::CompletedTagDefinition ( const TagDecl D) [inline, virtual]

A new TagDecl definition was completed.

Reimplemented in clang::ASTWriter, and clang::MultiplexASTMutationListener.

Definition at line 44 of file ASTMutationListener.h.

virtual void clang::ASTMutationListener::DeclarationMarkedOpenMPThreadPrivate ( const Decl D) [inline, virtual]

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

Parameters:
Dthe declaration marked OpenMP threadprivate.

Reimplemented in clang::ASTWriter, and clang::MultiplexASTMutationListener.

Definition at line 109 of file ASTMutationListener.h.

virtual void clang::ASTMutationListener::DeclarationMarkedUsed ( const Decl D) [inline, virtual]

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

Parameters:
Dthe declaration marked used

Reimplemented in clang::ASTWriter, and clang::MultiplexASTMutationListener.

Definition at line 103 of file ASTMutationListener.h.

Referenced by clang::Decl::markUsed().

void ASTMutationListener::DeducedReturnType ( const FunctionDecl FD,
QualType  ReturnType 
) [virtual]

A function's return type has been deduced.

Reimplemented in clang::ASTWriter, and clang::MultiplexASTMutationListener.

Definition at line 7506 of file ASTContext.cpp.

virtual void clang::ASTMutationListener::FunctionDefinitionInstantiated ( const FunctionDecl D) [inline, virtual]

A function template's definition was instantiated.

Reimplemented in clang::ASTWriter.

Definition at line 82 of file ASTMutationListener.h.

virtual void clang::ASTMutationListener::ResolvedExceptionSpec ( const FunctionDecl FD) [inline, virtual]

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

Reimplemented in clang::ASTWriter.

Definition at line 70 of file ASTMutationListener.h.

virtual void clang::ASTMutationListener::StaticDataMemberInstantiated ( const VarDecl D) [inline, virtual]

A static data member was implicitly instantiated.

Reimplemented in clang::ASTWriter, and clang::MultiplexASTMutationListener.

Definition at line 79 of file ASTMutationListener.h.


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