Lines Matching +full:argument +full:- +full:count
1 …-Wno-objc-literal-conversion -analyze -analyzer-checker=core,osx.cocoa.NonNilReturnValue,osx.cocoa…
12 - (id)copyWithZone:(NSZone *)zone;
15 - (id)mutableCopyWithZone:(NSZone *)zone;
18 - (void)encodeWithCoder:(NSCoder *)aCoder;
25 - (id)init;
28 - (id)mutableCopy;
38 - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id [])buffer cou…
42 - (NSUInteger)count; method
43 - (id)objectAtIndex:(NSUInteger)index;
47 - (NSArray *)arrayByAddingObject:(id)anObject;
48 - (void)setObject:(id)obj atIndexedSubscript:(NSUInteger)idx __attribute__((availability(macosx,int…
52 + (instancetype)arrayWithObjects:(const id [])objects count:(NSUInteger)cnt;
57 - (void)addObject:(id)anObject;
58 - (void)insertObject:(id)anObject atIndex:(NSUInteger)index;
59 - (void)removeLastObject;
60 - (void)removeObjectAtIndex:(NSUInteger)index;
61 - (void)replaceObjectAtIndex:(NSUInteger)index withObject:(id)anObject;
67 - (NSUInteger)count; method
68 - (id)objectForKey:(id)aKey;
69 - (NSEnumerator *)keyEnumerator;
77 …ionaryWithObjects:(const id [])objects forKeys:(const id <NSCopying> [])keys count:(NSUInteger)cnt;
83 - (void)removeObjectForKey:(id)aKey;
84 - (void)setObject:(id)anObject forKey:(id <NSCopying>)aKey;
90 - (void)addEntriesFromDictionary:(NSDictionary *)otherDictionary;
91 - (void)removeAllObjects;
92 - (void)removeObjectsForKeys:(NSArray *)keyArray;
93 - (void)setDictionary:(NSDictionary *)otherDictionary;
94 - (void)setObject:(id)obj forKeyedSubscript:(id <NSCopying>)key __attribute__((availability(macosx,…
101 - (NSUInteger)count; method in NSOrderedSetCreation
115 …[marray addObject:0]; // expected-warning {{Argument to 'NSMutableArray' method 'addObject:' canno…
120 …[marray insertObject:0 atIndex:1]; // expected-warning {{Argument to 'NSMutableArray' method 'inse…
125 …[marray replaceObjectAtIndex:1 withObject:0]; // expected-warning {{Argument to 'NSMutableArray' m…
130 …[marray setObject:0 atIndexedSubscript:1]; // expected-warning {{Argument to 'NSMutableArray' meth…
135 marray[1] = 0; // expected-warning {{Array element cannot be nil}}
141 …NSArray *copyArray = [array arrayByAddingObject:0]; // expected-warning {{Argument to 'NSArray' me…
146 …[d setObject:0 forKey:key]; // expected-warning {{Value argument to 'setObject:forKey:' cannot be …
150 …[d setObject:obj forKey:0]; // expected-warning {{Key argument to 'setObject:forKey:' cannot be ni…
154 …[d removeObjectForKey:0]; // expected-warning {{Value argument to 'removeObjectForKey:' cannot be …
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 '…
170 …return [NSDictionary dictionaryWithObject:obj forKey:0]; // expected-warning {{Key argument to 'di…
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
214 - (int *)getPtr;
215 - (int)getInt;
216 - (NSMutableDictionary *)getDictPtr;
218 - (NSString*) stringForKeyFE: (id<NSCopying>)key;
231 *[obj getPtr] = 1; // no-warning
242 D[key] = @"abc"; // no-warning
251 [D setObject: value forKey: key]; // no-warning
264 if ([D count] > 0) { // Count is greater than zero.
275 NSUInteger containerCount = [containers count];
284 clang_analyzer_eval(!!@[]); // expected-warning{{TRUE}}
285 clang_analyzer_eval(!!@{}); // expected-warning{{TRUE}}
289 - (void)addObject:(id)obj safe:(BOOL)safe;
293 [arr addObject:0 safe:1]; // no-warning
297 -(NSArray *)subviews;
304 [array addObject:0]; // no-warning
311 [subviews addObject:view]; // no-warning