clang 22.0.0git
clang::MethodVFTableLocation Struct Reference

#include "clang/AST/VTableBuilder.h"

Public Member Functions

 MethodVFTableLocation ()
 MethodVFTableLocation (uint64_t VBTableIndex, const CXXRecordDecl *VBase, CharUnits VFPtrOffset, uint64_t Index)
bool operator< (const MethodVFTableLocation &other) const

Public Attributes

uint64_t VBTableIndex
 If nonzero, holds the vbtable index of the virtual base with the vfptr.
const CXXRecordDeclVBase
 If nonnull, holds the last vbase which contains the vfptr that the method definition is adjusted to.
CharUnits VFPtrOffset
 This is the offset of the vfptr from the start of the last vbase, or the complete type if there are no virtual bases.
uint64_t Index
 Method's index in the vftable.

Detailed Description

Definition at line 539 of file VTableBuilder.h.

Constructor & Destructor Documentation

◆ MethodVFTableLocation() [1/2]

clang::MethodVFTableLocation::MethodVFTableLocation ( )
inline

Definition at line 554 of file VTableBuilder.h.

References Index, clang::nullptr, VBase, VBTableIndex, VFPtrOffset, and clang::Zero.

Referenced by operator<().

◆ MethodVFTableLocation() [2/2]

clang::MethodVFTableLocation::MethodVFTableLocation ( uint64_t VBTableIndex,
const CXXRecordDecl * VBase,
CharUnits VFPtrOffset,
uint64_t Index )
inline

Definition at line 558 of file VTableBuilder.h.

References Index, VBase, VBTableIndex, and VFPtrOffset.

Member Function Documentation

◆ operator<()

bool clang::MethodVFTableLocation::operator< ( const MethodVFTableLocation & other) const
inline

Definition at line 563 of file VTableBuilder.h.

References Index, MethodVFTableLocation(), VBase, VBTableIndex, and VFPtrOffset.

Member Data Documentation

◆ Index

uint64_t clang::MethodVFTableLocation::Index

Method's index in the vftable.

Definition at line 552 of file VTableBuilder.h.

Referenced by MethodVFTableLocation(), MethodVFTableLocation(), and operator<().

◆ VBase

const CXXRecordDecl* clang::MethodVFTableLocation::VBase

If nonnull, holds the last vbase which contains the vfptr that the method definition is adjusted to.

Definition at line 545 of file VTableBuilder.h.

Referenced by MethodVFTableLocation(), MethodVFTableLocation(), operator<(), and vfptrIsEarlierInMDC().

◆ VBTableIndex

uint64_t clang::MethodVFTableLocation::VBTableIndex

If nonzero, holds the vbtable index of the virtual base with the vfptr.

Definition at line 541 of file VTableBuilder.h.

Referenced by MethodVFTableLocation(), MethodVFTableLocation(), and operator<().

◆ VFPtrOffset

CharUnits clang::MethodVFTableLocation::VFPtrOffset

This is the offset of the vfptr from the start of the last vbase, or the complete type if there are no virtual bases.

Definition at line 549 of file VTableBuilder.h.

Referenced by MethodVFTableLocation(), MethodVFTableLocation(), operator<(), and vfptrIsEarlierInMDC().


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