hanchenye-llvm-project/clang/test/ARCMT
Jordan Rose b00073db80 Update VerifyDiagnosticConsumer to only get directives during parsing.
The old behavior was to re-scan any files (like modules) where we may have
directives but won't actually be parsing during the -verify invocation.
Now, we keep the old behavior in Debug builds as a sanity check (though
modules are a known entity), and expect all legitimate directives to come
from comments seen by the preprocessor.

This also affects the ARC migration tool, which captures diagnostics in
order to filter some out. This change adds an explicit cleanup to
CaptureDiagnosticsConsumer in order to let its sub-consumer handle the
real end of diagnostics.

This was originally split into four patches, but the tests do not run
cleanly without all four, so I've combined them into one commit.

Patches by Andy Gibbs, with slight modifications from me.

llvm-svn: 161650
2012-08-10 01:06:16 +00:00
..
Inputs [arcmt] Introduce new '-ccc-arcmt-migrate <path>' ARC migration driver option. 2011-07-09 20:00:58 +00:00
with space [arcmt] Try fixing the windows buildbot. 2011-09-07 21:50:18 +00:00
Common.h [arcmt] Use CFBridgingRetain/CFBridgingRelease instead of __bridge_retained/__bridge_transfer 2012-06-01 00:10:47 +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 Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
assign-prop-no-arc-runtime.m.result Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
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] Remove an unused -autorelease, without failing with error, for this 2012-05-23 21:50:04 +00:00
autoreleases.m.result [arcmt] Use CFBridgingRetain/CFBridgingRelease instead of __bridge_retained/__bridge_transfer 2012-06-01 00:10:47 +00:00
check-api.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
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 revert r160839 for now. 2012-07-27 21:34:23 +00:00
cxx-checking.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 [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] When checking whether the subscripting methods are declared use 2012-06-19 02:22:02 +00:00
objcmt-subscripting-literals-in-arc.m.result [objcmt] When checking whether the subscripting methods are declared use 2012-06-19 02:22:02 +00:00
objcmt-subscripting-literals.m [objcmt] Check for classes that accept 'objectForKey:' (or the other selectors 2012-07-06 00:07:09 +00:00
objcmt-subscripting-literals.m.result [objcmt] Check for classes that accept 'objectForKey:' (or the other selectors 2012-07-06 00:07:09 +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
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 Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
remove-dealloc-method.m.result arc migrator: replace "retain" attribute with "strong" 2012-01-20 19:15:02 +00:00
remove-dealloc-zerouts.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
remove-dealloc-zerouts.m.result arc migrator: replace "retain" attribute with "strong" 2012-01-20 19:15:02 +00:00
remove-statements.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
remove-statements.m.result Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
retains.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
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 Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
safe-arc-assign.m.result Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
verify.m Update VerifyDiagnosticConsumer to only get directives during parsing. 2012-08-10 01:06:16 +00:00
with-arc-mode-check.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
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 Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
with-arc-mode-modify.m.result Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00