clang  9.0.0
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:
[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
 

Static Public Member Functions

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

Constructor & Destructor Documentation

◆ LValueBase() [1/3]

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

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

Referenced by getObjectType(), and IsGlobalLValue().

◆ getCallIndex()

unsigned APValue::LValueBase::getCallIndex ( ) const

Definition at line 53 of file APValue.cpp.

References Local.

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

◆ getOpaqueValue()

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

Definition at line 88 of file APValue.cpp.

Referenced by clang::hash_value().

◆ getTypeInfo()

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

Definition at line 45 of file APValue.cpp.

Referenced by EvaluateLValue().

◆ getTypeInfoType()

QualType APValue::LValueBase::getTypeInfoType ( ) const

Definition at line 61 of file APValue.cpp.

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

Referenced by getObjectType().

◆ getVersion()

unsigned APValue::LValueBase::getVersion ( ) const

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

Referenced by EvaluateBuiltinConstantPForLValue(), and evaluateLValueAsAllocSize().

◆ operator bool()

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

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

◆ operator==

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

Definition at line 67 of file APValue.cpp.

Member Data Documentation

◆ Local

LocalState clang::APValue::LValueBase::Local

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

Referenced by getTypeInfoType().


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