clang 24.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 150 of file APValue.h.

Constructor & Destructor Documentation

◆ LValueBase() [1/3]

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

Definition at line 156 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 41 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 43 of file APValue.cpp.

References Local, and V.

Member Function Documentation

◆ dyn_cast()

◆ get()

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

Definition at line 166 of file APValue.h.

References clang::cast(), and clang::T.

Referenced by getType(), clang::ASTNodeImporter::ImportAPValue(), and clang::TextNodeDumper::Visit().

◆ getCallIndex()

unsigned APValue::LValueBase::getCallIndex ( ) const

Definition at line 107 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 46 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 174 of file APValue.cpp.

◆ getType()

◆ getTypeInfo()

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

Definition at line 54 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 112 of file APValue.cpp.

References is(), and Local.

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

◆ is()

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

◆ isNull()

bool APValue::LValueBase::isNull ( ) const

Definition at line 178 of file APValue.cpp.

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

◆ operator bool()

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

Definition at line 182 of file APValue.cpp.

◆ Profile()

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

Definition at line 126 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 187 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 189 of file APValue.h.

References hash_value, and LValueBase().

◆ operator!=

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

Definition at line 186 of file APValue.h.

References LValueBase().

◆ operator==

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

Definition at line 135 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 202 of file APValue.h.

Referenced by getDynamicAllocType().

◆ Local

LocalState clang::APValue::LValueBase::Local

Definition at line 198 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 200 of file APValue.h.

Referenced by getTypeInfoType().


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