clang-1/test/ARCMT
Argyrios Kyrtzidis a44b970042 [objcmt] Rewrite a NSDictionary dictionaryWithObjects:forKeys: to a 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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172679 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-16 23:54:48 +00:00
..
Inputs
with space
Common.h [arcmt] Rewrite uses of Block_copy/Block_release macros. 2013-01-03 03:17:17 +00:00
GC-check-warn-nsalloc.m arc migrator: Provide infrastructure to add options 2012-01-25 00:20:29 +00:00
GC-check.m [arcmt] The migrator tests for the buildbot in http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/ 2012-01-12 02:34:32 +00:00
GC-no-arc-runtime.m [arcmt] GC migrator: don't try to remove redundant __strong, it does 2012-02-25 01:57:42 +00:00
GC-no-arc-runtime.m.result [arcmt] GC migrator: don't try to remove redundant __strong, it does 2012-02-25 01:57:42 +00:00
GC-no-finalize-removal.m [arcmt] GC migrator: don't try to remove redundant __strong, it does 2012-02-25 01:57:42 +00:00
GC-no-finalize-removal.m.result [arcmt] GC migrator: don't try to remove redundant __strong, it does 2012-02-25 01:57:42 +00:00
GC.h [arcmt] In GC, error for __strong/__weak on non-objc pointers. 2011-11-06 18:58:23 +00:00
GC.m [arcmt] GC migrator: don't try to remove redundant __strong, it does 2012-02-25 01:57:42 +00:00
GC.m.result [arcmt] GC migrator: don't try to remove redundant __strong, it does 2012-02-25 01:57:42 +00:00
api.m [arcmt] The migrator tests for the buildbot in http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/ 2012-01-12 02:34:32 +00:00
api.m.result [arcmt] The migrator tests for the buildbot in http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/ 2012-01-12 02:34:32 +00:00
assign-prop-no-arc-runtime.m
assign-prop-no-arc-runtime.m.result
assign-prop-with-arc-runtime.m [arcmt] Fix a bug where a property in a class extension, that did not exist 2012-03-29 01:10:31 +00:00
assign-prop-with-arc-runtime.m.result [arcmt] Fix a bug where a property in a class extension, that did not exist 2012-03-29 01:10:31 +00:00
atautorelease-2.m [arcmt] The migrator tests for the buildbot in http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/ 2012-01-12 02:34:32 +00:00
atautorelease-2.m.result [arcmt] The migrator tests for the buildbot in http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/ 2012-01-12 02:34:32 +00:00
atautorelease-3.m [arcmt] The migrator tests for the buildbot in http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/ 2012-01-12 02:34:32 +00:00
atautorelease-3.m.result [arcmt] The migrator tests for the buildbot in http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/ 2012-01-12 02:34:32 +00:00
atautorelease-check.m [arcmt] The migrator tests for the buildbot in http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/ 2012-01-12 02:34:32 +00:00
atautorelease.m [arcmt] The migrator tests for the buildbot in http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/ 2012-01-12 02:34:32 +00:00
atautorelease.m.result [arcmt] The migrator tests for the buildbot in http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/ 2012-01-12 02:34:32 +00:00
autoreleases.m [arcmt] Allow removing an -autorelease of a variable initialized in the previous statement. 2013-01-04 18:30:11 +00:00
autoreleases.m.result [arcmt] Allow removing an -autorelease of a variable initialized in the previous statement. 2013-01-04 18:30:11 +00:00
block_copy_release.m [arcmt] Rewrite uses of Block_copy/Block_release macros. 2013-01-03 03:17:17 +00:00
block_copy_release.m.result [arcmt] Rewrite uses of Block_copy/Block_release macros. 2013-01-03 03:17:17 +00:00
check-api.m
check-with-serialized-diag.m Don't include FixIts with a null replacement range. Fixes <rdar://problem/11040133>. 2012-03-20 20:49:45 +00:00
checking.m [arcmt] Follow-up for r171484; make sure when adding brackets enclosing case statements, 2013-01-08 00:58:25 +00:00
cxx-checking.mm objective-C arc: remove -Warc-abi in its entirety. 2012-09-14 17:48:35 +00:00
cxx-rewrite.mm [arcmt] The migrator tests for the buildbot in http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/ 2012-01-12 02:34:32 +00:00
cxx-rewrite.mm.result Let Expr::HasSideEffects() return false for NULL, bool literals, this, and nullptr. 2012-07-20 03:39:05 +00:00
dealloc.m [arcmt] The migrator tests for the buildbot in http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/ 2012-01-12 02:34:32 +00:00
dealloc.m.result [arcmt] The migrator tests for the buildbot in http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/ 2012-01-12 02:34:32 +00:00
dispatch.m [arcmt] Remove an unused -autorelease, without failing with error, for this 2012-05-23 21:50:04 +00:00
dispatch.m.result [arcmt] Remove an unused -autorelease, without failing with error, for this 2012-05-23 21:50:04 +00:00
driver-migrate.m Add new code migrator support for migrating existing Objective-C code to use 2012-03-06 20:06:33 +00:00
init.m [arcmt] When fixing the "unassigned init call" ARC error, make sure 2012-03-31 01:34:06 +00:00
init.m.result [arcmt] When fixing the "unassigned init call" ARC error, make sure 2012-03-31 01:34:06 +00:00
migrate-emit-errors.m Add new code migrator support for migrating existing Objective-C code to use 2012-03-06 20:06:33 +00:00
migrate-plist-output.m Add new code migrator support for migrating existing Objective-C code to use 2012-03-06 20:06:33 +00:00
migrate-space-in-path.m Add new code migrator support for migrating existing Objective-C code to use 2012-03-06 20:06:33 +00:00
migrate.m Add new code migrator support for migrating existing Objective-C code to use 2012-03-06 20:06:33 +00:00
no-canceling-bridge-to-bridge-cast.m revert r160839 for now. 2012-07-27 21:34:23 +00:00
nonobjc-to-objc-cast-2.m revert r160839 for now. 2012-07-27 21:34:23 +00:00
nonobjc-to-objc-cast.m [arcmt] At an unbridged cast error, if we're returning a load-of-ivar from a +0 method, 2012-06-07 00:44:06 +00:00
nonobjc-to-objc-cast.m.result [arcmt] At an unbridged cast error, if we're returning a load-of-ivar from a +0 method, 2012-06-07 00:44:06 +00:00
objcmt-boxing.m [objcmt] Have the modern objc migration warning change from: 2012-06-20 01:28:32 +00:00
objcmt-boxing.m.result [objcmt] Have the modern objc migration warning change from: 2012-06-20 01:28:32 +00:00
objcmt-numeric-literals.m [objcmt] When rewriting to array/dictionary literals, add an explicit 2012-05-14 22:01:53 +00:00
objcmt-numeric-literals.m.result [objcmt] Rewrite [NSNumber numberWith*] messages to the new @() boxing syntax. 2012-05-15 19:17:49 +00:00
objcmt-subscripting-literals-in-arc.m [objcmt] Rewrite a NSDictionary dictionaryWithObjects:forKeys: to a dictionary literal 2013-01-16 23:54:48 +00:00
objcmt-subscripting-literals-in-arc.m.result [objcmt] Rewrite a NSDictionary dictionaryWithObjects:forKeys: to a dictionary literal 2013-01-16 23:54:48 +00:00
objcmt-subscripting-literals.m [objcmt] Rewrite a NSDictionary dictionaryWithObjects:forKeys: to a dictionary literal 2013-01-16 23:54:48 +00:00
objcmt-subscripting-literals.m.result [objcmt] Rewrite a NSDictionary dictionaryWithObjects:forKeys: to a dictionary literal 2013-01-16 23:54:48 +00:00
objcmt-subscripting-unavailable.m [objcmt] Don't migrate to subscripting syntax if the required methods have not 2012-06-04 21:23:26 +00:00
objcmt-subscripting-unavailable.m.result [objcmt] Don't migrate to subscripting syntax if the required methods have not 2012-06-04 21:23:26 +00:00
protected-scope.m [arcmt] Follow-up for r171484; make sure when adding brackets enclosing case statements, 2013-01-08 00:58:25 +00:00
protected-scope.m.result [arcmt] Follow-up for r171484; make sure when adding brackets enclosing case statements, 2013-01-08 00:58:25 +00:00
releases-driver.m objective-c arc: ARC IRGen correctly assumes result 2012-07-30 20:52:48 +00:00
releases-driver.m.result objective-c arc: ARC IRGen correctly assumes result 2012-07-30 20:52:48 +00:00
releases.m objective-c arc: ARC IRGen correctly assumes result 2012-07-30 20:52:48 +00:00
releases.m.result objective-c arc: ARC IRGen correctly assumes result 2012-07-30 20:52:48 +00:00
remove-dealloc-method.m
remove-dealloc-method.m.result arc migrator: replace "retain" attribute with "strong" 2012-01-20 19:15:02 +00:00
remove-dealloc-zerouts.m
remove-dealloc-zerouts.m.result arc migrator: replace "retain" attribute with "strong" 2012-01-20 19:15:02 +00:00
remove-statements.m
remove-statements.m.result
retains.m
retains.m.result arc migrator: replace "retain" attribute with "strong" 2012-01-20 19:15:02 +00:00
rewrite-block-var.m [arcmt] 2012-03-05 08:46:24 +00:00
rewrite-block-var.m.result [arcmt] 2012-03-05 08:46:24 +00:00
safe-arc-assign.m
safe-arc-assign.m.result
verify.m Change VerifyDiagnosticConsumer so that it *must* contain at least one "expected-*" directive. As a result, for test-cases that are not expected to generate any diagnostics, an additional directive "expected-no-diagnostics" has been implemented which can then be included in such test-cases. This new directive may not be used in conjunction with any other "expected-*" directive. 2012-10-19 12:49:32 +00:00
with-arc-mode-check.m
with-arc-mode-migrate.m Add new code migrator support for migrating existing Objective-C code to use 2012-03-06 20:06:33 +00:00
with-arc-mode-migrate.m.result Add new code migrator support for migrating existing Objective-C code to use 2012-03-06 20:06:33 +00:00
with-arc-mode-modify.m
with-arc-mode-modify.m.result