clang 20.0.0git
|
Represents a single component in a vtable. More...
#include "clang/AST/VTableBuilder.h"
Public Types | |
enum | Kind { CK_VCallOffset , CK_VBaseOffset , CK_OffsetToTop , CK_RTTI , CK_FunctionPointer , CK_CompleteDtorPointer , CK_DeletingDtorPointer , CK_UnusedFunctionPointer } |
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.
Definition at line 32 of file VTableBuilder.h.
|
default |
Referenced by MakeCompleteDtor(), MakeDeletingDtor(), MakeFunction(), MakeOffsetToTop(), MakeRTTI(), MakeUnusedFunction(), MakeVBaseOffset(), and MakeVCallOffset().
|
inline |
Definition at line 131 of file VTableBuilder.h.
References isDestructorKind().
Referenced by getFunctionDecl().
|
inline |
Definition at line 124 of file VTableBuilder.h.
References getDestructorDecl(), isDestructorKind(), and isFunctionPointerKind().
Referenced by getGlobalDecl().
|
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().
|
inline |
Get the kind of this vtable component.
Definition at line 97 of file VTableBuilder.h.
Referenced by getGlobalDecl(), getOffsetToTop(), getUnusedFunctionDecl(), getVBaseOffset(), getVCallOffset(), isDestructorKind(), isFunctionPointerKind(), isRTTIKind(), and isUsedFunctionPointerKind().
|
inline |
Definition at line 113 of file VTableBuilder.h.
References CK_OffsetToTop, and getKind().
|
inline |
Definition at line 119 of file VTableBuilder.h.
References isRTTIKind().
|
inline |
Definition at line 136 of file VTableBuilder.h.
References CK_UnusedFunctionPointer, and getKind().
|
inline |
Definition at line 107 of file VTableBuilder.h.
References CK_VBaseOffset, and getKind().
|
inline |
Definition at line 101 of file VTableBuilder.h.
References CK_VCallOffset, and getKind().
|
inline |
Definition at line 141 of file VTableBuilder.h.
References getKind(), and isDestructorKind().
Referenced by getDestructorDecl(), getFunctionDecl(), and isDestructorKind().
|
inline |
Definition at line 147 of file VTableBuilder.h.
References getKind(), and isFunctionPointerKind().
Referenced by getFunctionDecl(), and isFunctionPointerKind().
|
inline |
Definition at line 151 of file VTableBuilder.h.
References getKind(), and isRTTIKind().
Referenced by getRTTIDecl(), and isRTTIKind().
|
inline |
Definition at line 143 of file VTableBuilder.h.
References getKind(), and isUsedFunctionPointerKind().
Referenced by getGlobalDecl(), and isUsedFunctionPointerKind().
|
inlinestatic |
Definition at line 79 of file VTableBuilder.h.
References CK_CompleteDtorPointer, and VTableComponent().
|
inlinestatic |
Definition at line 84 of file VTableBuilder.h.
References CK_DeletingDtorPointer, and VTableComponent().
|
inlinestatic |
Definition at line 71 of file VTableBuilder.h.
References CK_FunctionPointer, and VTableComponent().
|
inlinestatic |
Definition at line 63 of file VTableBuilder.h.
References CK_OffsetToTop, and VTableComponent().
|
inlinestatic |
Definition at line 67 of file VTableBuilder.h.
References CK_RTTI, and VTableComponent().
|
inlinestatic |
Definition at line 89 of file VTableBuilder.h.
References CK_UnusedFunctionPointer, and VTableComponent().
|
inlinestatic |
Definition at line 59 of file VTableBuilder.h.
References CK_VBaseOffset, and VTableComponent().
|
inlinestatic |
Definition at line 55 of file VTableBuilder.h.
References CK_VCallOffset, and VTableComponent().