clang API Documentation

Classes | Public Member Functions | Public Attributes
clang::InitializationSequence::Step Class Reference

A single step in the initialization sequence. More...

#include <Initialization.h>

Collaboration diagram for clang::InitializationSequence::Step:
Collaboration graph
[legend]

List of all members.

Classes

struct  F

Public Member Functions

void Destroy ()

Public Attributes

StepKind Kind
 The kind of conversion or initialization step we are taking.
QualType Type
union {
   struct F   Function
 When Kind == SK_ResolvedOverloadedFunction or Kind == SK_UserConversion, the function that the expression should be resolved to or the conversion function to call, respectively. When Kind == SK_ConstructorInitialization or SK_ListConstruction, the constructor to be called.
   ImplicitConversionSequence *   ICS
 When Kind = SK_ConversionSequence, the implicit conversion sequence.
   InitListExpr *   WrappingSyntacticList
 When Kind = SK_RewrapInitList, the syntactic form of the wrapping list.
}; 

Detailed Description

A single step in the initialization sequence.

Definition at line 718 of file Initialization.h.


Member Function Documentation

Definition at line 2717 of file SemaInit.cpp.

References ICS, clang::InitializationSequence::SK_ArrayInit, clang::InitializationSequence::SK_AtomicConversion, clang::InitializationSequence::SK_BindReference, clang::InitializationSequence::SK_BindReferenceToTemporary, clang::InitializationSequence::SK_CAssignment, clang::InitializationSequence::SK_CastDerivedToBaseLValue, clang::InitializationSequence::SK_CastDerivedToBaseRValue, clang::InitializationSequence::SK_CastDerivedToBaseXValue, clang::InitializationSequence::SK_ConstructorInitialization, clang::InitializationSequence::SK_ConstructorInitializationFromList, clang::InitializationSequence::SK_ConversionSequence, clang::InitializationSequence::SK_ConversionSequenceNoNarrowing, clang::InitializationSequence::SK_ExtraneousCopyToTemporary, clang::InitializationSequence::SK_ListInitialization, clang::InitializationSequence::SK_LValueToRValue, clang::InitializationSequence::SK_ObjCObjectConversion, clang::InitializationSequence::SK_OCLSamplerInit, clang::InitializationSequence::SK_OCLZeroEvent, clang::InitializationSequence::SK_ParenthesizedArrayInit, clang::InitializationSequence::SK_PassByIndirectCopyRestore, clang::InitializationSequence::SK_PassByIndirectRestore, clang::InitializationSequence::SK_ProduceObjCObject, clang::InitializationSequence::SK_QualificationConversionLValue, clang::InitializationSequence::SK_QualificationConversionRValue, clang::InitializationSequence::SK_QualificationConversionXValue, clang::InitializationSequence::SK_ResolveAddressOfOverloadedFunction, clang::InitializationSequence::SK_RewrapInitList, clang::InitializationSequence::SK_StdInitializerList, clang::InitializationSequence::SK_StdInitializerListConstructorCall, clang::InitializationSequence::SK_StringInit, clang::InitializationSequence::SK_UnwrapInitList, clang::InitializationSequence::SK_UserConversion, and clang::InitializationSequence::SK_ZeroInitialization.

Referenced by clang::InitializationSequence::~InitializationSequence().


Member Data Documentation

union { ... }

When Kind == SK_ResolvedOverloadedFunction or Kind == SK_UserConversion, the function that the expression should be resolved to or the conversion function to call, respectively. When Kind == SK_ConstructorInitialization or SK_ListConstruction, the constructor to be called.

Always a FunctionDecl, plus a Boolean flag telling if it was selected from an overloaded set having size greater than 1. For conversion decls, the naming class is the source type. For construct decls, the naming class is the target type.

Definition at line 743 of file Initialization.h.

Referenced by clang::InitializationSequence::AddAddressOverloadResolutionStep(), clang::InitializationSequence::AddConstructorInitializationStep(), clang::InitializationSequence::AddUserConversionStep(), clang::InitializationSequence::Perform(), and PerformConstructorInitialization().

When Kind = SK_ConversionSequence, the implicit conversion sequence.

Definition at line 747 of file Initialization.h.

Referenced by clang::InitializationSequence::AddConversionSequenceStep(), Destroy(), and clang::InitializationSequence::Perform().

When Kind = SK_RewrapInitList, the syntactic form of the wrapping list.

Definition at line 751 of file Initialization.h.

Referenced by clang::InitializationSequence::Perform().


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