@@ -123,83 +123,82 @@ CompareDerivedToBaseConversions(Sema &S, SourceLocation Loc,
123
123
/// GetConversionRank - Retrieve the implicit conversion rank
124
124
/// corresponding to the given implicit conversion kind.
125
125
ImplicitConversionRank clang::GetConversionRank(ImplicitConversionKind Kind) {
126
- static const ImplicitConversionRank
127
- Rank[] = {
128
- ICR_Exact_Match,
129
- ICR_Exact_Match,
130
- ICR_Exact_Match,
131
- ICR_Exact_Match,
132
- ICR_Exact_Match,
133
- ICR_Exact_Match,
134
- ICR_Promotion,
135
- ICR_Promotion,
136
- ICR_Promotion,
137
- ICR_Conversion,
138
- ICR_Conversion,
139
- ICR_Conversion,
140
- ICR_Conversion,
141
- ICR_Conversion,
142
- ICR_Conversion,
143
- ICR_Conversion,
144
- ICR_Conversion,
145
- ICR_Conversion,
146
- ICR_Conversion,
147
- ICR_Conversion,
148
- ICR_Conversion,
149
- ICR_OCL_Scalar_Widening,
150
- ICR_Complex_Real_Conversion,
151
- ICR_Conversion,
152
- ICR_Conversion,
153
- ICR_Writeback_Conversion,
154
- ICR_Exact_Match, // NOTE(gbiv): This may not be completely right --
155
- // it was omitted by the patch that added
156
- // ICK_Zero_Event_Conversion
157
- ICR_Exact_Match, // NOTE(ctopper): This may not be completely right --
158
- // it was omitted by the patch that added
159
- // ICK_Zero_Queue_Conversion
160
- ICR_C_Conversion,
161
- ICR_C_Conversion_Extension,
162
- ICR_Conversion,
126
+ static const ImplicitConversionRank Rank[] = {
127
+ ICR_Exact_Match,
128
+ ICR_Exact_Match,
129
+ ICR_Exact_Match,
130
+ ICR_Exact_Match,
131
+ ICR_Exact_Match,
132
+ ICR_Exact_Match,
133
+ ICR_Promotion,
134
+ ICR_Promotion,
135
+ ICR_Promotion,
136
+ ICR_Conversion,
137
+ ICR_Conversion,
138
+ ICR_Conversion,
139
+ ICR_Conversion,
140
+ ICR_Conversion,
141
+ ICR_Conversion,
142
+ ICR_Conversion,
143
+ ICR_Conversion,
144
+ ICR_Conversion,
145
+ ICR_Conversion,
146
+ ICR_Conversion,
147
+ ICR_Conversion,
148
+ ICR_OCL_Scalar_Widening,
149
+ ICR_Complex_Real_Conversion,
150
+ ICR_Conversion,
151
+ ICR_Conversion,
152
+ ICR_Writeback_Conversion,
153
+ ICR_Exact_Match, // NOTE(gbiv): This may not be completely right --
154
+ // it was omitted by the patch that added
155
+ // ICK_Zero_Event_Conversion
156
+ ICR_Exact_Match, // NOTE(ctopper): This may not be completely right --
157
+ // it was omitted by the patch that added
158
+ // ICK_Zero_Queue_Conversion
159
+ ICR_C_Conversion,
160
+ ICR_C_Conversion_Extension,
161
+ ICR_Conversion,
163
162
};
164
163
static_assert(std::size(Rank) == (int)ICK_Num_Conversion_Kinds);
165
164
return Rank[(int)Kind];
166
165
}
167
166
168
167
/// GetImplicitConversionName - Return the name of this kind of
169
168
/// implicit conversion.
170
- static const char* GetImplicitConversionName(ImplicitConversionKind Kind) {
171
- static const char* const Name[] = {
172
- "No conversion",
173
- "Lvalue-to-rvalue",
174
- "Array-to-pointer",
175
- "Function-to-pointer",
176
- "Function pointer conversion",
177
- "Qualification",
178
- "Integral promotion",
179
- "Floating point promotion",
180
- "Complex promotion",
181
- "Integral conversion",
182
- "Floating conversion",
183
- "Complex conversion",
184
- "Floating-integral conversion",
185
- "Pointer conversion",
186
- "Pointer-to-member conversion",
187
- "Boolean conversion",
188
- "Compatible-types conversion",
189
- "Derived-to-base conversion",
190
- "Vector conversion",
191
- "SVE Vector conversion",
192
- "RVV Vector conversion",
193
- "Vector splat",
194
- "Complex-real conversion",
195
- "Block Pointer conversion",
196
- "Transparent Union Conversion",
197
- "Writeback conversion",
198
- "OpenCL Zero Event Conversion",
199
- "OpenCL Zero Queue Conversion",
200
- "C specific type conversion",
201
- "Incompatible pointer conversion",
202
- "Fixed point conversion",
169
+ static const char * GetImplicitConversionName(ImplicitConversionKind Kind) {
170
+ static const char * const Name[] = {
171
+ "No conversion",
172
+ "Lvalue-to-rvalue",
173
+ "Array-to-pointer",
174
+ "Function-to-pointer",
175
+ "Function pointer conversion",
176
+ "Qualification",
177
+ "Integral promotion",
178
+ "Floating point promotion",
179
+ "Complex promotion",
180
+ "Integral conversion",
181
+ "Floating conversion",
182
+ "Complex conversion",
183
+ "Floating-integral conversion",
184
+ "Pointer conversion",
185
+ "Pointer-to-member conversion",
186
+ "Boolean conversion",
187
+ "Compatible-types conversion",
188
+ "Derived-to-base conversion",
189
+ "Vector conversion",
190
+ "SVE Vector conversion",
191
+ "RVV Vector conversion",
192
+ "Vector splat",
193
+ "Complex-real conversion",
194
+ "Block Pointer conversion",
195
+ "Transparent Union Conversion",
196
+ "Writeback conversion",
197
+ "OpenCL Zero Event Conversion",
198
+ "OpenCL Zero Queue Conversion",
199
+ "C specific type conversion",
200
+ "Incompatible pointer conversion",
201
+ "Fixed point conversion",
203
202
};
204
203
static_assert(std::size(Name) == (int)ICK_Num_Conversion_Kinds);
205
204
return Name[Kind];
0 commit comments