clang  6.0.0svn
Classes | Public Member Functions | Public Attributes | List of all members
clang::InitializationSequence::Step Class Reference

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

#include "clang/Sema/Initialization.h"

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

Classes

struct  F
 

Public Member Functions

void Destroy ()
 

Public Attributes

StepKind Kind
 The kind of conversion or initialization step we are taking. More...
 
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. More...
 
   ImplicitConversionSequence *   ICS
 When Kind = SK_ConversionSequence, the implicit conversion sequence. More...
 
   InitListExpr *   WrappingSyntacticList
 When Kind = SK_RewrapInitList, the syntactic form of the wrapping list. More...
 
}; 
 

Detailed Description

A single step in the initialization sequence.

Definition at line 783 of file Initialization.h.

Member Function Documentation

◆ Destroy()

void InitializationSequence::Step::Destroy ( )

Definition at line 3093 of file SemaInit.cpp.

Member Data Documentation

◆ @212

union { ... }

◆ Function

struct F clang::InitializationSequence::Step::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.

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 808 of file Initialization.h.

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

◆ ICS

ImplicitConversionSequence* clang::InitializationSequence::Step::ICS

When Kind = SK_ConversionSequence, the implicit conversion sequence.

Definition at line 812 of file Initialization.h.

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

◆ Kind

StepKind clang::InitializationSequence::Step::Kind

The kind of conversion or initialization step we are taking.

Definition at line 786 of file Initialization.h.

Referenced by clang::InitializationSequence::AddPassByIndirectCopyRestoreStep(), and clang::InitializationSequence::Perform().

◆ Type

QualType clang::InitializationSequence::Step::Type

◆ WrappingSyntacticList

InitListExpr* clang::InitializationSequence::Step::WrappingSyntacticList

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

Definition at line 816 of file Initialization.h.


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