@@ -151,36 +151,35 @@ ERROR(ivar_not_initialized_at_implicit_superinit,none,
151
151
(StringRef, bool ))
152
152
153
153
ERROR(self_use_before_fully_init,none,
154
- " use of 'self' in %select{method call|property access}1 %0 before "
154
+ " 'self' used in %select{method call|property access}1 %0 before "
155
155
" %select{all stored properties are initialized|"
156
- " super.init initializes self |"
157
- " self.init initializes self }2" , (DeclBaseName, bool , unsigned ))
156
+ " ' super.init' call |"
157
+ " ' self.init' call }2" , (DeclBaseName, bool , unsigned ))
158
158
ERROR(use_of_self_before_fully_init,none,
159
159
" 'self' used before all stored properties are initialized" , ())
160
- ERROR(use_of_self_before_fully_init_protocol,none,
161
- " 'self' used before chaining to another self.init requirement" , ())
162
160
163
161
164
162
NOTE(stored_property_not_initialized,none,
165
163
" '%0' not initialized" , (StringRef))
166
164
167
165
ERROR(selfinit_multiple_times,none,
168
- " %select{super|self}0.init called multiple times in initializer" ,
166
+ " ' %select{super|self}0.init' called multiple times in initializer" ,
169
167
(unsigned ))
170
168
ERROR(superselfinit_not_called_before_return,none,
171
- " %select{super|self}0.init isn't called on all paths before returning "
169
+ " ' %select{super|self}0.init' isn't called on all paths before returning "
172
170
" from initializer" , (unsigned ))
173
- ERROR(self_before_superselfinit,none,
174
- " 'self' used before %select{super|self}0.init call" ,
175
- (unsigned ))
171
+ ERROR(self_before_superinit,none,
172
+ " 'self' used before 'super.init' call" , ())
173
+ ERROR(self_before_selfinit,none,
174
+ " 'self' used before 'self.init' call" , ())
175
+ ERROR(self_before_selfinit_value_type,none,
176
+ " 'self' used before 'self.init' call or assignment to 'self'" , ())
176
177
ERROR(self_inside_catch_superselfinit,none,
177
178
" 'self' used inside 'catch' block reachable from "
178
179
" %select{super|self}0.init call" ,
179
180
(unsigned ))
180
181
ERROR(return_from_init_without_initing_self,none,
181
- " return from enum initializer method without storing to 'self'" , ())
182
- ERROR(return_from_protocol_init_without_initing_self,none,
183
- " protocol extension initializer never chained to 'self.init'" , ())
182
+ " return from initializer before 'self.init' call or assignment to 'self'" , ())
184
183
ERROR(return_from_init_without_initing_stored_properties,none,
185
184
" return from initializer without initializing all"
186
185
" stored properties" , ())
0 commit comments