clang  10.0.0svn
Classes | Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::APValue::LValueBase Class Reference

#include "clang/AST/APValue.h"

Collaboration diagram for clang::APValue::LValueBase:
Collaboration graph
[legend]

Public Member Functions

 LValueBase ()
 
 LValueBase (const ValueDecl *P, unsigned I=0, unsigned V=0)
 
 LValueBase (const Expr *P, unsigned I=0, unsigned V=0)
 
template<class T >
bool is () const
 
template<class T >
get () const
 
template<class 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
 

Static Public Member Functions

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

Friends

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 138 of file APValue.h.

Constructor & Destructor Documentation

◆ LValueBase() [1/3]

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

Definition at line 144 of file APValue.h.

References P, and V.

◆ LValueBase() [2/3]

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

Definition at line 40 of file APValue.cpp.

◆ LValueBase() [3/3]

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

Definition at line 42 of file APValue.cpp.

Member Function Documentation

◆ dyn_cast()

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

◆ get()

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

Definition at line 154 of file APValue.h.

Referenced by getObjectType(), and IsGlobalLValue().

◆ getCallIndex()

unsigned APValue::LValueBase::getCallIndex ( ) const

Definition at line 61 of file APValue.cpp.

References Local.

Referenced by clang::hash_value(), and lifetimeStartedInEvaluation().

◆ getDynamicAlloc()

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

Definition at line 45 of file APValue.cpp.

◆ getDynamicAllocType()

QualType APValue::LValueBase::getDynamicAllocType ( ) const

Definition at line 75 of file APValue.cpp.

References DynamicAllocType, and clang::QualType::getFromOpaquePtr().

Referenced by getObjectType().

◆ getOpaqueValue()

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

Definition at line 102 of file APValue.cpp.

Referenced by clang::hash_value().

◆ getTypeInfo()

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

Definition at line 53 of file APValue.cpp.

◆ getTypeInfoType()

QualType APValue::LValueBase::getTypeInfoType ( ) const

Definition at line 70 of file APValue.cpp.

References clang::QualType::getFromOpaquePtr(), and TypeInfoType.

Referenced by getObjectType().

◆ getVersion()

unsigned APValue::LValueBase::getVersion ( ) const

Definition at line 66 of file APValue.cpp.

References Local.

Referenced by clang::hash_value().

◆ is()

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

◆ isNull()

bool APValue::LValueBase::isNull ( ) const

Definition at line 106 of file APValue.cpp.

Referenced by EvaluateBuiltinConstantPForLValue(), and evaluateLValueAsAllocSize().

◆ operator bool()

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

Definition at line 110 of file APValue.cpp.

Friends And Related Function Documentation

◆ hash_value

llvm::hash_code hash_value ( const LValueBase Base)
friend

◆ operator!=

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

Definition at line 171 of file APValue.h.

◆ operator==

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

Definition at line 81 of file APValue.cpp.

Member Data Documentation

◆ DynamicAllocType

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

The QualType, if this is a DynamicAllocLValue.

Definition at line 186 of file APValue.h.

Referenced by getDynamicAllocType().

◆ Local

LocalState clang::APValue::LValueBase::Local

Definition at line 182 of file APValue.h.

Referenced by getCallIndex(), getVersion(), and clang::operator==().

◆ TypeInfoType

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

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

Definition at line 184 of file APValue.h.

Referenced by getTypeInfoType().


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