clang 20.0.0git
|
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/AST/ByteCode/MemberPointer.h"
Public Member Functions | |
MemberPointer ()=default | |
MemberPointer (Pointer Base, const ValueDecl *Dcl) | |
MemberPointer (uint32_t Address, const Descriptor *D) | |
MemberPointer (const ValueDecl *D) | |
uint64_t | getIntegerRepresentation () const |
std::optional< Pointer > | toPointer (const Context &Ctx) const |
FunctionPointer | toFunctionPointer (const Context &Ctx) const |
Pointer | getBase () const |
bool | isMemberFunctionPointer () const |
const CXXMethodDecl * | getMemberFunction () const |
const FieldDecl * | getField () const |
bool | hasDecl () const |
const ValueDecl * | getDecl () const |
MemberPointer | atInstanceBase (unsigned Offset) const |
MemberPointer | takeInstance (Pointer Instance) const |
APValue | toAPValue (const ASTContext &) const |
bool | isZero () const |
bool | hasBase () const |
bool | isWeak () const |
void | print (llvm::raw_ostream &OS) const |
std::string | toDiagnosticString (const ASTContext &Ctx) const |
ComparisonCategoryResult | compare (const MemberPointer &RHS) const |
Definition at line 22 of file MemberPointer.h.
|
default |
Referenced by atInstanceBase(), and takeInstance().
Definition at line 33 of file MemberPointer.h.
|
inline |
Definition at line 34 of file MemberPointer.h.
|
inline |
Definition at line 39 of file MemberPointer.h.
References D.
|
inline |
Definition at line 72 of file MemberPointer.h.
References MemberPointer().
|
inline |
Definition at line 102 of file MemberPointer.h.
References clang::Equal, and clang::Unordered.
Referenced by clang::interp::CmpHelperEQ< MemberPointer >().
|
inline |
Definition at line 54 of file MemberPointer.h.
|
inline |
Definition at line 70 of file MemberPointer.h.
Referenced by toAPValue().
|
inline |
Definition at line 65 of file MemberPointer.h.
|
inline |
Definition at line 43 of file MemberPointer.h.
|
inline |
Definition at line 62 of file MemberPointer.h.
Referenced by isWeak().
|
inline |
Definition at line 86 of file MemberPointer.h.
Referenced by toAPValue().
|
inline |
Definition at line 69 of file MemberPointer.h.
|
inline |
Definition at line 59 of file MemberPointer.h.
|
inline |
Definition at line 87 of file MemberPointer.h.
References getMemberFunction().
|
inline |
Definition at line 85 of file MemberPointer.h.
Referenced by clang::interp::CmpHelperEQ< MemberPointer >(), and toAPValue().
|
inline |
Definition at line 93 of file MemberPointer.h.
Referenced by clang::interp::operator<<().
|
inline |
Definition at line 78 of file MemberPointer.h.
References clang::interp::Pointer::isZero(), and MemberPointer().
APValue clang::interp::MemberPointer::toAPValue | ( | const ASTContext & | ASTCtx | ) | const |
Definition at line 74 of file MemberPointer.cpp.
References getDecl(), hasBase(), and isZero().
Referenced by toDiagnosticString().
|
inline |
Definition at line 98 of file MemberPointer.h.
References clang::APValue::getAsString(), clang::ValueDecl::getType(), and toAPValue().
FunctionPointer clang::interp::MemberPointer::toFunctionPointer | ( | const Context & | Ctx | ) | const |
Definition at line 70 of file MemberPointer.cpp.
References clang::interp::Program::getFunction(), and clang::interp::Context::getProgram().
Definition at line 18 of file MemberPointer.cpp.
References clang::interp::Pointer::atField(), clang::interp::Pointer::block(), clang::interp::Context::collectBaseOffset(), clang::interp::Record::getDecl(), clang::interp::Block::getDescriptor(), clang::interp::Record::getField(), clang::interp::Descriptor::getMetadataSize(), clang::DeclContext::getParent(), clang::FieldDecl::getParent(), clang::interp::Pointer::getRecord(), clang::interp::Context::getRecord(), clang::interp::Block::getSize(), and clang::interp::Record::Field::Offset.