clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::CXXDestructorDecl Class Reference

Represents a C++ destructor within a class. More...

#include <DeclCXX.h>

Inheritance diagram for clang::CXXDestructorDecl:
Inheritance graph
[legend]
Collaboration diagram for clang::CXXDestructorDecl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void setOperatorDelete (FunctionDecl *OD)
const FunctionDeclgetOperatorDelete () const

Static Public Member Functions

static CXXDestructorDeclCreate (ASTContext &C, CXXRecordDecl *RD, SourceLocation StartLoc, const DeclarationNameInfo &NameInfo, QualType T, TypeSourceInfo *TInfo, bool isInline, bool isImplicitlyDeclared)
static CXXDestructorDeclCreateDeserialized (ASTContext &C, unsigned ID)
static bool classof (const Decl *D)
static bool classofKind (Kind K)

Friends

class ASTDeclReader
class ASTDeclWriter

Detailed Description

Represents a C++ destructor within a class.

For example:

 class X {
 public:
   ~X(); // represented by a CXXDestructorDecl.
 };

Definition at line 2348 of file DeclCXX.h.


Member Function Documentation

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]

Reimplemented from clang::CXXMethodDecl.

Definition at line 1872 of file DeclCXX.cpp.

References AttributeLangSupport::C.


Friends And Related Function Documentation

friend class ASTDeclReader [friend]

Reimplemented from clang::FunctionDecl.

Definition at line 2383 of file DeclCXX.h.

friend class ASTDeclWriter [friend]

Reimplemented from clang::FunctionDecl.

Definition at line 2384 of file DeclCXX.h.


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