• Home
  • Raw
  • Download

Lines Matching +full:arr +full:- +full:diff

1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc %s -fsyntax-only -Wobjc-cocoa-api -veri…
2 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc -x objective-c %s.fixed -fsyntax-only
4 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc %t.m -fixit -Wobjc-cocoa-api
5 // RUN: diff %s.fixed %t.m
16 - (id)initWithString:(NSString *)aString;
20 - (id)objectAtIndex:(unsigned long)index;
21 - (id)objectAtIndexedSubscript:(int)index;
31 - (id)initWithObjects:(const id [])objects count:(unsigned long)cnt;
32 - (id)initWithObjects:(id)firstObj, ...;
33 - (id)initWithArray:(NSArray *)array;
35 - (id)objectAtIndex:(unsigned long)index;
39 - (void)replaceObjectAtIndex:(unsigned long)index withObject:(id)anObject;
40 - (void)setObject:(id)object atIndexedSubscript:(int)index;
44 - (id)objectForKeyedSubscript:(id)key;
55 - (id)initWithObjects:(const id [])objects forKeys:(const id [])keys count:(unsigned long)cnt;
56 - (id)initWithObjectsAndKeys:(id)firstObject, ...;
57 - (id)initWithDictionary:(NSDictionary *)otherDictionary;
58 - (id)initWithObjects:(NSArray *)objects forKeys:(NSArray *)keys;
60 - (id)objectForKey:(id)aKey;
64 - (void)setObject:(id)anObject forKey:(id)aKey;
65 - (void)setObject:(id)object forKeyedSubscript:(id)key;
80 NSString *str = M([NSString stringWithString:@"foo"]); // expected-warning {{redundant}}
81 str = [[NSString alloc] initWithString:@"foo"]; // expected-warning {{redundant}}
82 NSArray *arr = [NSArray arrayWithArray:@[str]]; // expected-warning {{redundant}}
83 …NSDictionary *dict = [NSDictionary dictionaryWithDictionary:@{str: arr}]; // expected-warning {{re…