clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions | Friends
clang::Expr::Classification Class Reference

The return type of classify(). Represents the C++11 expression taxonomy. More...

#include <Expr.h>

List of all members.

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_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.

Friends

class Expr

Detailed Description

The return type of classify(). Represents the C++11 expression taxonomy.

Definition at line 301 of file Expr.h.


Member Enumeration Documentation

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 304 of file Expr.h.

The results of modification testing.

Enumerator:
CM_Untested 
CM_Modifiable 
CM_RValue 
CM_Function 
CM_LValueCast 
CM_NoSetterProperty 
CM_ConstQualified 
CM_ArrayType 
CM_IncompleteType 

Definition at line 319 of file Expr.h.


Constructor & Destructor Documentation

clang::Expr::Classification::Classification ( ) [inline]

Definition at line 342 of file Expr.h.

Referenced by makeSimpleLValue().


Member Function Documentation

Definition at line 344 of file Expr.h.

Referenced by clang::Expr::ClassifyLValue(), and clang::Expr::isModifiableLvalue().

Definition at line 345 of file Expr.h.

References CM_Untested.

Referenced by isModifiable(), and clang::Expr::isModifiableLvalue().

Definition at line 351 of file Expr.h.

References CL_XValue.

Definition at line 354 of file Expr.h.

References CM_Modifiable, and getModifiable().

Definition at line 350 of file Expr.h.

References CL_XValue.

Referenced by TryReferenceInit(), and TryReferenceInitializationCore().


Friends And Related Function Documentation

friend class Expr [friend]

Definition at line 332 of file Expr.h.


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