clang API Documentation
A single step in the initialization sequence. More...
#include <Initialization.h>
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. | |
}; |
A single step in the initialization sequence.
Definition at line 718 of file Initialization.h.
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().
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().
The kind of conversion or initialization step we are taking.
Definition at line 721 of file Initialization.h.
Referenced by clang::InitializationSequence::AddAddressOverloadResolutionStep(), clang::InitializationSequence::AddArrayInitStep(), clang::InitializationSequence::AddAtomicConversionStep(), clang::InitializationSequence::AddCAssignmentStep(), clang::InitializationSequence::AddConstructorInitializationStep(), clang::InitializationSequence::AddConversionSequenceStep(), clang::InitializationSequence::AddDerivedToBaseCastStep(), clang::InitializationSequence::AddExtraneousCopyToTemporary(), clang::InitializationSequence::AddListInitializationStep(), clang::InitializationSequence::AddObjCObjectConversionStep(), clang::InitializationSequence::AddOCLSamplerInitStep(), clang::InitializationSequence::AddOCLZeroEventStep(), clang::InitializationSequence::AddParenthesizedArrayInitStep(), clang::InitializationSequence::AddPassByIndirectCopyRestoreStep(), clang::InitializationSequence::AddProduceObjCObjectStep(), clang::InitializationSequence::AddQualificationConversionStep(), clang::InitializationSequence::AddReferenceBindingStep(), clang::InitializationSequence::AddStdInitializerListConstructionStep(), clang::InitializationSequence::AddStringInitStep(), clang::InitializationSequence::AddUserConversionStep(), clang::InitializationSequence::AddZeroInitializationStep(), isReferenceBinding(), and clang::InitializationSequence::Perform().
Definition at line 724 of file Initialization.h.
Referenced by clang::InitializationSequence::AddAddressOverloadResolutionStep(), clang::InitializationSequence::AddArrayInitStep(), clang::InitializationSequence::AddAtomicConversionStep(), clang::InitializationSequence::AddCAssignmentStep(), clang::InitializationSequence::AddConstructorInitializationStep(), clang::InitializationSequence::AddConversionSequenceStep(), clang::InitializationSequence::AddDerivedToBaseCastStep(), clang::InitializationSequence::AddExtraneousCopyToTemporary(), clang::InitializationSequence::AddListInitializationStep(), clang::InitializationSequence::AddObjCObjectConversionStep(), clang::InitializationSequence::AddOCLSamplerInitStep(), clang::InitializationSequence::AddOCLZeroEventStep(), clang::InitializationSequence::AddParenthesizedArrayInitStep(), clang::InitializationSequence::AddPassByIndirectCopyRestoreStep(), clang::InitializationSequence::AddProduceObjCObjectStep(), clang::InitializationSequence::AddQualificationConversionStep(), clang::InitializationSequence::AddReferenceBindingStep(), clang::InitializationSequence::AddStdInitializerListConstructionStep(), clang::InitializationSequence::AddStringInitStep(), clang::InitializationSequence::AddUserConversionStep(), clang::InitializationSequence::AddZeroInitializationStep(), 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().