clang API Documentation
Represents a C++ destructor within a class. More...
#include <DeclCXX.h>
Public Member Functions | |
void | setOperatorDelete (FunctionDecl *OD) |
const FunctionDecl * | getOperatorDelete () const |
Static Public Member Functions | |
static CXXDestructorDecl * | Create (ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc, const DeclarationNameInfo &NameInfo, QualType T, TypeSourceInfo *TInfo, bool isInline, bool isImplicitlyDeclared) |
static CXXDestructorDecl * | CreateDeserialized (ASTContext &C, unsigned ID) |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
Friends | |
class | ASTDeclReader |
class | ASTDeclWriter |
Represents a C++ destructor within a class.
For example:
static bool clang::CXXDestructorDecl::classof | ( | const Decl * | D | ) | [inline, static] |
Reimplemented from clang::CXXMethodDecl.
Definition at line 2380 of file DeclCXX.h.
References classofKind(), and clang::Decl::getKind().
static bool clang::CXXDestructorDecl::classofKind | ( | Kind | K | ) | [inline, static] |
Reimplemented from clang::CXXMethodDecl.
Definition at line 2381 of file DeclCXX.h.
Referenced by classof().
CXXDestructorDecl * CXXDestructorDecl::Create | ( | ASTContext & | C, |
CXXRecordDecl * | RD, | ||
SourceLocation | StartLoc, | ||
const DeclarationNameInfo & | NameInfo, | ||
QualType | T, | ||
TypeSourceInfo * | TInfo, | ||
bool | isInline, | ||
bool | isImplicitlyDeclared | ||
) | [static] |
Definition at line 1879 of file DeclCXX.cpp.
References AttributeLangSupport::C, clang::DeclarationName::CXXDestructorName, clang::DeclarationNameInfo::getName(), and clang::DeclarationName::getNameKind().
Referenced by CreateNewFunctionDecl(), clang::Sema::DeclareImplicitDestructor(), clang::TemplateDeclInstantiator::VisitCXXMethodDecl(), and clang::ASTNodeImporter::VisitFunctionDecl().
CXXDestructorDecl * CXXDestructorDecl::CreateDeserialized | ( | ASTContext & | C, |
unsigned | ID | ||
) | [static] |
Reimplemented from clang::CXXMethodDecl.
Definition at line 1872 of file DeclCXX.cpp.
References AttributeLangSupport::C.
const FunctionDecl* clang::CXXDestructorDecl::getOperatorDelete | ( | ) | const [inline] |
Definition at line 2375 of file DeclCXX.h.
References clang::Redeclarable< FunctionDecl >::getFirstDecl().
Referenced by clang::Sema::CheckDestructor(), and clang::CodeGen::CodeGenFunction::EnterDtorCleanups().
void clang::CXXDestructorDecl::setOperatorDelete | ( | FunctionDecl * | OD | ) | [inline] |
Definition at line 2372 of file DeclCXX.h.
References clang::Redeclarable< FunctionDecl >::getFirstDecl().
Referenced by clang::Sema::CheckDestructor().
friend class ASTDeclReader [friend] |
Reimplemented from clang::FunctionDecl.
friend class ASTDeclWriter [friend] |
Reimplemented from clang::FunctionDecl.