Home | History | Annotate | Download | only in Analysis

Lines Matching full:warning

115   [marray addObject:0]; // expected-warning {{Argument to 'NSMutableArray' method 'addObject:' cannot be nil}}
120 [marray insertObject:0 atIndex:1]; // expected-warning {{Argument to 'NSMutableArray' method 'insertObject:atIndex:' cannot be nil}}
125 [marray replaceObjectAtIndex:1 withObject:0]; // expected-warning {{Argument to 'NSMutableArray' method 'replaceObjectAtIndex:withObject:' cannot be nil}}
130 [marray setObject:0 atIndexedSubscript:1]; // expected-warning {{Argument to 'NSMutableArray' method 'setObject:atIndexedSubscript:' cannot be nil}}
135 marray[1] = 0; // expected-warning {{Array element cannot be nil}}
141 NSArray *copyArray = [array arrayByAddingObject:0]; // expected-warning {{Argument to 'NSArray' method 'arrayByAddingObject:' cannot be nil}}
146 [d setObject:0 forKey:key]; // expected-warning {{Value argument to 'setObject:forKey:' cannot be nil}}
150 [d setObject:obj forKey:0]; // expected-warning {{Key argument to 'setObject:forKey:' cannot be nil}}
154 [d removeObjectForKey:0]; // expected-warning {{Value argument to 'removeObjectForKey:' cannot be nil}}
158 d[key] = 0; // no-warning - removing the mapping for the given key
163 d[key] = 0; // expected-warning {{'NSMutableDictionary' key cannot be nil}}
167 return [NSDictionary dictionaryWithObject:0 forKey:key]; // expected-warning {{Value argument to 'dictionaryWithObject:forKey:' cannot be nil}}
170 return [NSDictionary dictionaryWithObject: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}}
207 d[key] = @"abc"; // no-warning
231 *[obj getPtr] = 1; // no-warning
242 D[key] = @"abc"; // no-warning
251 [D setObject: value forKey: key]; // no-warning
259 [Table setObject:Value forKey:Object]; // no warning
269 [D removeObjectForKey:s]; // no warning
279 *x = 1; // no warning
284 clang_analyzer_eval(!!@[]); // expected-warning{{TRUE}}
285 clang_analyzer_eval(!!@{}); // expected-warning{{TRUE}}
293 [arr addObject:0 safe:1]; // no-warning
304 [array addObject:0]; // no-warning
309 // When view is nil, subviews is also nil so there should be no warning
311 [subviews addObject:view]; // no-warning