Lines Matching refs:nil
115 …ddObject:0]; // expected-warning {{Argument to 'NSMutableArray' method 'addObject:' cannot be nil}}
120 …; // expected-warning {{Argument to 'NSMutableArray' method 'insertObject:atIndex:' cannot be nil}}
125 …ed-warning {{Argument to 'NSMutableArray' method 'replaceObjectAtIndex:withObject:' cannot be nil}}
130 …ected-warning {{Argument to 'NSMutableArray' method 'setObject:atIndexedSubscript:' cannot be nil}}
135 marray[1] = 0; // expected-warning {{Array element cannot be nil}}
141 …bject:0]; // expected-warning {{Argument to 'NSArray' method 'arrayByAddingObject:' cannot be nil}}
146 …etObject:0 forKey:key]; // expected-warning {{Value argument to 'setObject:forKey:' cannot be nil}}
150 … setObject:obj forKey:0]; // expected-warning {{Key argument to 'setObject:forKey:' cannot be nil}}
154 …emoveObjectForKey:0]; // expected-warning {{Value argument to 'removeObjectForKey:' cannot be nil}}
163 d[key] = 0; // expected-warning {{'NSMutableDictionary' key cannot be nil}}
167 …forKey:key]; // expected-warning {{Value argument to 'dictionaryWithObject:forKey:' cannot be nil}}
170 …obj forKey:0]; // expected-warning {{Key argument to 'dictionaryWithObject:forKey:' cannot be nil}}
176 return @{@"abc":value, nilKey:@"abc"}; // expected-warning {{Dictionary key cannot be nil}}
182 return @{@"abc":nilValue}; // expected-warning {{Dictionary value cannot be nil}}
190 return @{@"abc":nilValue, nilKey:@"abc"}; // expected-warning {{Dictionary key cannot be nil}}
191 … // expected-warning@-1 {{Dictionary value cannot be nil}}
197 return @[ @"a", myNil, @"c" ]; // expected-warning {{Array element cannot be nil}}
249 // key is nil because FooPtr is nil. However, FooPtr is set to nil inside an
301 // Don't warn about adding nil to a container when the receiver is also
302 // definitely nil.
309 // When view is nil, subviews is also nil so there should be no warning