clang  6.0.0svn
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::Expr::Classification Class Reference

The return type of classify(). More...

#include "clang/AST/Expr.h"

Public Types

enum  Kinds {
  CL_LValue, CL_XValue, CL_Function, CL_Void,
  CL_AddressableVoid, CL_DuplicateVectorComponents, CL_MemberFunction, CL_SubObjCPropertySetting,
  CL_ClassTemporary, CL_ArrayTemporary, CL_ObjCMessageRValue, CL_PRValue
}
 The various classification results. Most of these mean prvalue. More...
 
enum  ModifiableType {
  CM_Untested, CM_Modifiable, CM_RValue, CM_Function,
  CM_LValueCast, CM_NoSetterProperty, CM_ConstQualified, CM_ConstQualifiedField,
  CM_ConstAddrSpace, CM_ArrayType, CM_IncompleteType
}
 The results of modification testing. More...
 

Public Member Functions

 Classification ()
 
Kinds getKind () const
 
ModifiableType getModifiable () const
 
bool isLValue () const
 
bool isXValue () const
 
bool isGLValue () const
 
bool isPRValue () const
 
bool isRValue () const
 
bool isModifiable () const
 

Static Public Member Functions

static Classification makeSimpleLValue ()
 Create a simple, modifiably lvalue. More...
 

Friends

class Expr
 

Detailed Description

The return type of classify().

Represents the C++11 expression taxonomy.

Definition at line 302 of file Expr.h.

Member Enumeration Documentation

◆ Kinds

The various classification results. Most of these mean prvalue.

Enumerator
CL_LValue 
CL_XValue 
CL_Function 
CL_Void 
CL_AddressableVoid 
CL_DuplicateVectorComponents 
CL_MemberFunction 
CL_SubObjCPropertySetting 
CL_ClassTemporary 
CL_ArrayTemporary 
CL_ObjCMessageRValue 
CL_PRValue 

Definition at line 305 of file Expr.h.

◆ ModifiableType

The results of modification testing.

Enumerator
CM_Untested 
CM_Modifiable 
CM_RValue 
CM_Function 
CM_LValueCast 
CM_NoSetterProperty 
CM_ConstQualified 
CM_ConstQualifiedField 
CM_ConstAddrSpace 
CM_ArrayType 
CM_IncompleteType 

Definition at line 320 of file Expr.h.

Constructor & Destructor Documentation

◆ Classification()

clang::Expr::Classification::Classification ( )
inline

Definition at line 345 of file Expr.h.

Member Function Documentation

◆ getKind()

Kinds clang::Expr::Classification::getKind ( ) const
inline

◆ getModifiable()

ModifiableType clang::Expr::Classification::getModifiable ( ) const
inline

Definition at line 348 of file Expr.h.

Referenced by clang::Expr::isModifiableLvalue().

◆ isGLValue()

bool clang::Expr::Classification::isGLValue ( ) const
inline

Definition at line 354 of file Expr.h.

◆ isLValue()

bool clang::Expr::Classification::isLValue ( ) const
inline

◆ isModifiable()

bool clang::Expr::Classification::isModifiable ( ) const
inline

Definition at line 357 of file Expr.h.

◆ isPRValue()

bool clang::Expr::Classification::isPRValue ( ) const
inline

Definition at line 355 of file Expr.h.

Referenced by clang::canTypeidThrow(), TryReferenceInit(), and TryReferenceInitializationCore().

◆ isRValue()

bool clang::Expr::Classification::isRValue ( ) const
inline

◆ isXValue()

bool clang::Expr::Classification::isXValue ( ) const
inline

Definition at line 353 of file Expr.h.

Referenced by TryReferenceInit(), and TryReferenceInitializationCore().

◆ makeSimpleLValue()

static Classification clang::Expr::Classification::makeSimpleLValue ( )
inlinestatic

Create a simple, modifiably lvalue.

Definition at line 360 of file Expr.h.

Referenced by clang::Sema::AddOverloadCandidate().

Friends And Related Function Documentation

◆ Expr

friend class Expr
friend

Definition at line 335 of file Expr.h.


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