hanchenye-llvm-project/clang/test/ARCMT
Argyrios Kyrtzidis 6b4f341ecd [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

llvm-svn: 172679
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
GC-check.m
GC-no-arc-runtime.m
GC-no-arc-runtime.m.result
GC-no-finalize-removal.m
GC-no-finalize-removal.m.result
GC.h
GC.m
GC.m.result
api.m
api.m.result
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
atautorelease-2.m.result
atautorelease-3.m
atautorelease-3.m.result
atautorelease-check.m
atautorelease.m
atautorelease.m.result
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
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
dealloc.m.result
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
remove-dealloc-zerouts.m
remove-dealloc-zerouts.m.result
remove-statements.m
remove-statements.m.result
retains.m
retains.m.result
rewrite-block-var.m
rewrite-block-var.m.result
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