Lines Matching refs:expected
38 -(instancetype)initWithArray:(NSArray<T> *)array; // expected-note{{passing argument}}
39 - (void)setObject:(T)object atIndexedSubscript:(int)index; // expected-note 2{{passing argument to …
52 - (void)addObject:(U)object; // expected-note 7{{passing argument to parameter 'object' here}}
76 - (V)objectForKeyedSubscript:(K)key; // expected-note 2{{parameter 'key'}}
81 // expected-note@-1 {{parameter 'object' here}}
82 // expected-note@-2 {{parameter 'object' here}}
83 // expected-note@-3 {{parameter 'key' here}}
84 // expected-note@-4 {{parameter 'key' here}}
117 @interface NSNullableTest2<ViewType : NSView * _Nullable> : NSObject // expected-error{{type parame…
126 …nonnull_NSControl = [unspecifiedControl maybeView]; // expected-warning{{from nullable pointer 'N…
131 …nonnull_NSControl = [nonnullControl maybeView]; // expected-warning{{from nullable pointer 'Nonnu…
134 …NSNullableTest<NSControl * _Nonnull> *nonnullControl2; // expected-error{{type argument 'NSControl…
153 ip = [stringSet firstObject]; // expected-warning{{from 'NSString *'}}
154 ip = [mutStringSet firstObject]; // expected-warning{{from 'NSString *'}}
155 ip = [widgetSet firstObject]; // expected-warning{{from 'Widget *'}}
156 ip = [untypedMutSet firstObject]; // expected-warning{{from 'id'}}
157 ip = [mutStringArraySet firstObject]; // expected-warning{{from 'NSArray<NSString *> *'}}
158 ip = [set firstObject]; // expected-warning{{from 'id'}}
159 ip = [mutSet firstObject]; // expected-warning{{from 'id'}}
160 ip = [mutArraySet firstObject]; // expected-warning{{from 'id'}}
161 ip = [block firstObject]; // expected-warning{{from 'id'}}
163 ip = [stringSet findObject:@"blah"]; // expected-warning{{from 'NSString *'}}
166 ip = [NSSet<NSString *> alloc]; // expected-warning{{from 'NSSet<NSString *> *'}}
167 ip = [NSSet alloc]; // expected-warning{{from 'NSSet *'}}
168 …ip = [MutableSetOfArrays<NSString *> alloc]; // expected-warning{{from 'MutableSetOfArrays<NSStrin…
169 ip = [MutableSetOfArrays alloc]; // expected-warning{{from 'MutableSetOfArrays *'}}
170 ip = [NSArray<NSString *> array]; // expected-warning{{from 'NSArray<NSString *> *'}}
171 ip = [NSArray<NSString *><NSCopying> array]; // expected-warning{{from 'NSArray<NSString *> *'}}
173 …ip = [[NSMutableArray<NSString *> alloc] init]; // expected-warning{{from 'NSMutableArray<NSStrin…
177 …[[NSMutableArray<NSNumber *> alloc] initWithArray: stringArray]; // expected-warning{{sending 'NSA…
179 ip = [[[NSViewController alloc] init] view]; // expected-warning{{from '__kindof NSView *'}}
183 NSNumber *number = kindofStringArray[0]; // expected-warning{{of type '__kindof NSString *'}}
196 [mutStringSet addObject: window]; // expected-warning{{parameter of type 'NSString *'}}
197 [widgetSet addObject: window]; // expected-warning{{parameter of type 'Widget *'}}
198 …[untypedMutSet addObject: window]; // expected-warning{{parameter of incompatible type 'id<NSCopyi…
199 …[mutStringArraySet addObject: window]; // expected-warning{{parameter of type 'NSArray<NSString *>…
200 [mutSet addObject: window]; // expected-warning{{parameter of incompatible type 'id<NSCopying>'}}
201 …[mutArraySet addObject: window]; // expected-warning{{parameter of incompatible type 'id<NSCopying…
202 [block addObject: window]; // expected-warning{{parameter of incompatible type 'id<NSCopying>'}}
219 ip = stringSet.allObjects; // expected-warning{{from 'NSArray<NSString *> *'}}
220 ip = mutStringSet.allObjects; // expected-warning{{from 'NSArray<NSString *> *'}}
221 ip = widgetSet.allObjects; // expected-warning{{from 'NSArray<Widget *> *'}}
222 ip = untypedMutSet.allObjects; // expected-warning{{from 'NSArray *'}}
223 ip = mutStringArraySet.allObjects; // expected-warning{{from 'NSArray<NSArray<NSString *> *> *'}}
224 ip = set.allObjects; // expected-warning{{from 'NSArray *'}}
225 ip = mutSet.allObjects; // expected-warning{{from 'NSArray *'}}
226 ip = mutArraySet.allObjects; // expected-warning{{from 'NSArray *'}}
228 ip = mutDict.someRandomKey; // expected-warning{{from '__kindof id<NSCopying>'}}
230 ip = [[NSViewController alloc] init].view; // expected-warning{{from '__kindof NSView *'}}
243 mutStringSet.allObjects = ip; // expected-warning{{to 'NSArray<NSString *> *'}}
244 widgetSet.allObjects = ip; // expected-warning{{to 'NSArray<Widget *> *'}}
245 untypedMutSet.allObjects = ip; // expected-warning{{to 'NSArray *'}}
246 mutStringArraySet.allObjects = ip; // expected-warning{{to 'NSArray<NSArray<NSString *> *> *'}}
247 mutSet.allObjects = ip; // expected-warning{{to 'NSArray *'}}
248 mutArraySet.allObjects = ip; // expected-warning{{to 'NSArray *'}}
250 mutDict.someRandomKey = ip; // expected-warning{{to 'id<NSCopying>'}}
270 ip = stringArray[0]; // expected-warning{{from 'NSString *'}}
272 ip = mutStringArray[0]; // expected-warning{{from 'NSString *'}}
273 mutStringArray[0] = ip; // expected-warning{{parameter of type 'NSString *'}}
275 ip = array[0]; // expected-warning{{from 'id'}}
277 ip = mutArray[0]; // expected-warning{{from 'id'}}
278 mutArray[0] = ip; // expected-warning{{parameter of type 'id'}}
280 ip = stringWidgetDict[string]; // expected-warning{{from 'Widget *'}}
281 widget = stringWidgetDict[widget]; // expected-warning{{to parameter of type 'NSString *'}}
283 ip = mutStringWidgetDict[string]; // expected-warning{{from 'Widget *'}}
284 widget = mutStringWidgetDict[widget]; // expected-warning{{to parameter of type 'NSString *'}}
285 mutStringWidgetDict[string] = ip; // expected-warning{{to parameter of type 'Widget *'}}
286 mutStringWidgetDict[widget] = widget; // expected-warning{{to parameter of type 'NSString *'}}
288 ip = dict[string]; // expected-warning{{from 'id'}}
290 ip = mutDict[string]; // expected-warning{{from 'id'}}
291 mutDict[string] = ip; // expected-warning{{to parameter of type 'id'}}
294 mutDict[window] = widget; // expected-warning{{parameter of incompatible type 'id<NSCopying>'}}
304 ip = stringArray->data; // expected-warning{{from 'NSString **'}}
305 ip = array->data; // expected-warning{{from 'id *'}}
312 ip = data; // expected-warning{{from 'Window **'}}
331 …stringArray = numberArray; // expected-warning{{incompatible pointer types assigning to 'NSArray<N…
337 …numberArray = mutStringArray; // expected-warning{{incompatible pointer types assigning to 'NSArra…
361 …covariant2 = covariant1; // expected-warning{{incompatible pointer types assigning to 'NSCovariant…
364 …covariant4 = covariant3; // expected-warning{{incompatible pointer types assigning to 'NSCovariant…
372 …contravariant1 = contravariant2; // expected-warning{{incompatible pointer types assigning to 'NSC…
389 ip = cond ? stringArray : mutStringArray; // expected-warning{{from 'NSArray<NSString *> *'}}
390 ip = cond ? mutStringArray : stringArray; // expected-warning{{from 'NSArray<NSString *> *'}}
392 ip = cond ? stringArray2 : mutStringArray; // expected-warning{{from 'NSArray<NSString *> *'}}
393 ip = cond ? mutStringArray : stringArray2; // expected-warning{{from 'NSArray<NSString *> *'}}
395 ip = cond ? stringArray : mutArray; // expected-warning{{from 'NSArray *'}}
397 ip = cond ? stringArray2 : mutArray; // expected-warning{{from 'NSArray *'}}
399 ip = cond ? mutArray : stringArray; // expected-warning{{from 'NSArray *'}}
401 ip = cond ? mutArray : stringArray2; // expected-warning{{from 'NSArray *'}}
403 …object = cond ? stringArray : numberArray; // expected-warning{{incompatible operand types ('NSArr…
412 ip = super.lastObject; // expected-warning{{from 'NSString *'}}
413 super.lastObject = ip; // expected-warning{{to 'NSString *'}}
414 ip = [super objectAtIndexedSubscript:0]; // expected-warning{{from 'NSString *'}}
419 ip = super.array; // expected-warning{{from 'NSArray<NSString *> *'}}
420 super.array = ip; // expected-warning{{to 'NSArray<NSString *> *'}}
421 ip = [super array]; // expected-warning{{from 'NSArray<NSString *> *'}}
428 typedef NSArray<NSObject> ArrayOfNSObjectWarning; // expected-warning{{parameterized class 'NSArray…