summaryrefslogtreecommitdiffstats
path: root/clang/test/ARCMT/objcmt-subscripting-literals-in-arc.m.result
Commit message (Collapse)AuthorAgeFilesLines
* [objcmt] Rewrite a NSDictionary dictionaryWithObjects:forKeys: to a ↵Argyrios Kyrtzidis2013-01-161-0/+2
| | | | | | | | | | | | | | | | | | dictionary literal if we can see the elements of the arrays. for example: NSDictionary *dict = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"1", @"2", nil] forKeys:[NSArray arrayWithObjects:@"A", @"B", nil]]; --> NSDictionary *dict = @{ @"A" : @"1", @"B" : @"2" }; rdar://12428166 llvm-svn: 172679
* [objcmt] When checking whether the subscripting methods are declared useArgyrios Kyrtzidis2012-06-191-7/+19
| | | | | | | | | ObjCInterfaceDec::lookupInstanceMethod to make sure we check categories as well and update related tests. rdar://11695288 llvm-svn: 158697
* [objcmt] When in ARC mode, also convert "[[.. alloc] init]" messages to ↵Argyrios Kyrtzidis2012-06-061-0/+94
literals, since the change from +1 to +0 will be handled fine by ARC. rdar://11606358 llvm-svn: 158114
OpenPOWER on IntegriCloud