clang: clang::VTableComponent Class Reference (original) (raw)

Represents a single component in a vtable. More...

#include "[clang/AST/VTableBuilder.h](VTableBuilder%5F8h%5Fsource.html)"

Public Member Functions
VTableComponent ()=default
Kind getKind () const
Get the kind of this vtable component.
CharUnits getVCallOffset () const
CharUnits getVBaseOffset () const
CharUnits getOffsetToTop () const
const CXXRecordDecl * getRTTIDecl () const
const CXXMethodDecl * getFunctionDecl () const
const CXXDestructorDecl * getDestructorDecl () const
const CXXMethodDecl * getUnusedFunctionDecl () const
bool isDestructorKind () const
bool isUsedFunctionPointerKind () const
bool isFunctionPointerKind () const
bool isRTTIKind () const
GlobalDecl getGlobalDecl () const
Static Public Member Functions
static VTableComponent MakeVCallOffset (CharUnits Offset)
static VTableComponent MakeVBaseOffset (CharUnits Offset)
static VTableComponent MakeOffsetToTop (CharUnits Offset)
static VTableComponent MakeRTTI (const CXXRecordDecl *RD)
static VTableComponent MakeFunction (const CXXMethodDecl *MD)
static VTableComponent MakeCompleteDtor (const CXXDestructorDecl *DD)
static VTableComponent MakeDeletingDtor (const CXXDestructorDecl *DD)
static VTableComponent MakeUnusedFunction (const CXXMethodDecl *MD)

Represents a single component in a vtable.

Definition at line 30 of file VTableBuilder.h.

Kind

Enumerator
CK_VCallOffset
CK_VBaseOffset
CK_OffsetToTop
CK_RTTI
CK_FunctionPointer
CK_CompleteDtorPointer A pointer to the complete destructor.
CK_DeletingDtorPointer A pointer to the deleting destructor.
CK_UnusedFunctionPointer An entry that is never used. In some cases, a vtable function pointer will end up never being called. Such vtable function pointers are represented as a CK_UnusedFunctionPointer.

Definition at line 32 of file VTableBuilder.h.

clang::VTableComponent::VTableComponent ( ) default

getDestructorDecl()

getFunctionDecl()

const CXXMethodDecl * clang::VTableComponent::getFunctionDecl ( ) const inline

getGlobalDecl()

GlobalDecl clang::VTableComponent::getGlobalDecl ( ) const inline

Definition at line 153 of file VTableBuilder.h.

References CK_CompleteDtorPointer, CK_DeletingDtorPointer, CK_FunctionPointer, CK_OffsetToTop, CK_RTTI, CK_UnusedFunctionPointer, CK_VBaseOffset, CK_VCallOffset, clang::Dtor_Complete, clang::Dtor_Deleting, getFunctionDecl(), getKind(), and isUsedFunctionPointerKind().

getKind()

Kind clang::VTableComponent::getKind ( ) const inline

getOffsetToTop()

CharUnits clang::VTableComponent::getOffsetToTop ( ) const inline

getRTTIDecl()

const CXXRecordDecl * clang::VTableComponent::getRTTIDecl ( ) const inline

getUnusedFunctionDecl()

const CXXMethodDecl * clang::VTableComponent::getUnusedFunctionDecl ( ) const inline

getVBaseOffset()

CharUnits clang::VTableComponent::getVBaseOffset ( ) const inline

getVCallOffset()

CharUnits clang::VTableComponent::getVCallOffset ( ) const inline

isDestructorKind()

bool clang::VTableComponent::isDestructorKind ( ) const inline

isFunctionPointerKind()

bool clang::VTableComponent::isFunctionPointerKind ( ) const inline

isRTTIKind()

bool clang::VTableComponent::isRTTIKind ( ) const inline

isUsedFunctionPointerKind()

bool clang::VTableComponent::isUsedFunctionPointerKind ( ) const inline

MakeCompleteDtor()

MakeDeletingDtor()

MakeFunction()

MakeOffsetToTop()

MakeRTTI()

MakeUnusedFunction()

MakeVBaseOffset()

MakeVCallOffset()


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