clang 22.0.0git
clang::APValue::LValueBase Class Reference

#include "clang/AST/APValue.h"

Public Member Functions

 LValueBase ()
 LValueBase (const ValueDecl *P, unsigned I=0, unsigned V=0)
 LValueBase (const Expr *P, unsigned I=0, unsigned V=0)
void Profile (llvm::FoldingSetNodeID &ID) const
template<class T>
bool is () const
template<class T>
T get () const
template<class T>
T dyn_cast () const
void * getOpaqueValue () const
bool isNull () const
 operator bool () const
unsigned getCallIndex () const
unsigned getVersion () const
QualType getTypeInfoType () const
QualType getDynamicAllocType () const
QualType getType () const

Static Public Member Functions

static LValueBase getDynamicAlloc (DynamicAllocLValue LV, QualType Type)
static LValueBase getTypeInfo (TypeInfoLValue LV, QualType TypeInfo)

Friends

struct llvm::DenseMapInfo< LValueBase >
bool operator== (const LValueBase &LHS, const LValueBase &RHS)
bool operator!= (const LValueBase &LHS, const LValueBase &RHS)
llvm::hash_code hash_value (const LValueBase &Base)

Detailed Description

Definition at line 146 of file APValue.h.

Constructor & Destructor Documentation

◆ LValueBase() [1/3]

clang::APValue::LValueBase::LValueBase ( )
inline

Definition at line 152 of file APValue.h.

References Local.

Referenced by getDynamicAlloc(), getTypeInfo(), llvm::DenseMapInfo< LValueBase >, and operator!=.

◆ LValueBase() [2/3]

APValue::LValueBase::LValueBase ( const ValueDecl * P,
unsigned I = 0,
unsigned V = 0 )

Definition at line 42 of file APValue.cpp.

References clang::cast(), getCanonicalDecl(), Local, clang::nullptr, and V.

◆ LValueBase() [3/3]

APValue::LValueBase::LValueBase ( const Expr * P,
unsigned I = 0,
unsigned V = 0 )

Definition at line 44 of file APValue.cpp.

References Local, and V.

Member Function Documentation

◆ dyn_cast()

◆ get()

template<class T>
T clang::APValue::LValueBase::get ( ) const
inline

◆ getCallIndex()

unsigned APValue::LValueBase::getCallIndex ( ) const

Definition at line 108 of file APValue.cpp.

References is(), and Local.

Referenced by clang::ASTNodeImporter::ImportAPValue().

◆ getDynamicAlloc()

APValue::LValueBase APValue::LValueBase::getDynamicAlloc ( DynamicAllocLValue LV,
QualType Type )
static

Definition at line 47 of file APValue.cpp.

References LValueBase().

Referenced by clang::interp::Pointer::toAPValue().

◆ getDynamicAllocType()

QualType APValue::LValueBase::getDynamicAllocType ( ) const

◆ getOpaqueValue()

void * APValue::LValueBase::getOpaqueValue ( ) const

Definition at line 175 of file APValue.cpp.

◆ getType()

◆ getTypeInfo()

APValue::LValueBase APValue::LValueBase::getTypeInfo ( TypeInfoLValue LV,
QualType TypeInfo )
static

Definition at line 55 of file APValue.cpp.

References LValueBase().

Referenced by clang::ASTNodeImporter::ImportAPValue(), and clang::interp::Pointer::toAPValue().

◆ getTypeInfoType()

QualType APValue::LValueBase::getTypeInfoType ( ) const

◆ getVersion()

unsigned APValue::LValueBase::getVersion ( ) const

Definition at line 113 of file APValue.cpp.

References is(), and Local.

Referenced by findCompleteObject(), and clang::ASTNodeImporter::ImportAPValue().

◆ is()

◆ isNull()

bool APValue::LValueBase::isNull ( ) const

Definition at line 179 of file APValue.cpp.

Referenced by EvaluateComparisonBinaryOperator(), and clang::TextNodeDumper::Visit().

◆ operator bool()

APValue::LValueBase::operator bool ( ) const
explicit

Definition at line 183 of file APValue.cpp.

◆ Profile()

void APValue::LValueBase::Profile ( llvm::FoldingSetNodeID & ID) const

Definition at line 127 of file APValue.cpp.

References is(), and Local.

Referenced by clang::APValue::Profile().

◆ hash_value

llvm::hash_code hash_value ( const LValueBase & Base)
friend

Definition at line 202 of file APValue.cpp.

References llvm::hash_value().

Referenced by llvm::DenseMapInfo< LValueBase >.

◆ llvm::DenseMapInfo< LValueBase >

friend struct llvm::DenseMapInfo< LValueBase >
friend

Definition at line 185 of file APValue.h.

References hash_value, and LValueBase().

◆ operator!=

bool operator!= ( const LValueBase & LHS,
const LValueBase & RHS )
friend

Definition at line 182 of file APValue.h.

References LValueBase().

◆ operator==

bool operator== ( const LValueBase & LHS,
const LValueBase & RHS )
friend

Definition at line 136 of file APValue.cpp.

References is(), and Local.

Member Data Documentation

◆ DynamicAllocType

void* clang::APValue::LValueBase::DynamicAllocType

The QualType, if this is a DynamicAllocLValue.

Definition at line 198 of file APValue.h.

Referenced by getDynamicAllocType().

◆ Local

LocalState clang::APValue::LValueBase::Local

Definition at line 194 of file APValue.h.

Referenced by getCallIndex(), getVersion(), LValueBase(), LValueBase(), LValueBase(), operator==, and Profile().

◆ TypeInfoType

void* clang::APValue::LValueBase::TypeInfoType

The type std::type_info, if this is a TypeInfoLValue.

Definition at line 196 of file APValue.h.

Referenced by getTypeInfoType().


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