llvm-project/clang/test/ARCMT
Ted Kremenek b79ee57080 Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'.
Fixes <rdar://problem/15584219> and <rdar://problem/12241361>.

This change looks large, but all it does is reuse and consolidate
the delayed diagnostic logic for deprecation warnings with unavailability
warnings.  By doing so, it showed various inconsistencies between the
diagnostics, which were close, but not consistent.  It also revealed
some missing "note:"'s in the deprecated diagnostics that were showing
up in the unavailable diagnostics, etc.

This change also changes the wording of the core deprecation diagnostics.
Instead of saying "function has been explicitly marked deprecated"
we now saw "'X' has been been explicitly marked deprecated".  It
turns out providing a bit more context is useful, and often we
got the actual term wrong or it was not very precise
 (e.g., "function" instead of "destructor").  By just saying the name
of the thing that is deprecated/deleted/unavailable we define
this issue away.  This diagnostic can likely be further wordsmithed
to be shorter.

llvm-svn: 197627
2013-12-18 23:30:06 +00:00
..
Inputs [arcmt] Don't try to handle files that are already ARC'ified, this is not possible currently. 2013-09-17 19:14:29 +00:00
designated-init-in-header Re-apply r197076 and r197086; the build was fixed by chapuni in r197114. 2013-12-12 02:24:20 +00:00
whitelisted [objcmt] When whitelisting the headers we want to modify, allow changing the 2013-12-11 21:39:00 +00:00
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 Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
GC-check.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
GC-no-arc-runtime.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
GC-no-arc-runtime.m.result Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
GC-no-finalize-removal.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
GC-no-finalize-removal.m.result Remove all DISABLE lines from tests 2013-12-08 21:12:19 +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 Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
GC.m.result Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
api.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
api.m.result Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
assign-prop-no-arc-runtime.m
assign-prop-no-arc-runtime.m.result
assign-prop-with-arc-runtime.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
assign-prop-with-arc-runtime.m.result Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
atautorelease-2.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
atautorelease-2.m.result Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
atautorelease-3.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
atautorelease-3.m.result Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
atautorelease-check.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
atautorelease.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
atautorelease.m.result Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
autoreleases.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
autoreleases.m.result Remove all DISABLE lines from tests 2013-12-08 21:12:19 +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-pch.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
check-with-serialized-diag.m Point diagnostics that complain about a use of a selector in an objc message, to the selector location. 2013-05-01 00:24:09 +00:00
checking-in-arc.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
checking.m Implemented delayed processing of 'unavailable' checking, just like with 'deprecated'. 2013-12-18 23:30:06 +00:00
cxx-checking.mm Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
cxx-rewrite.mm Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
cxx-rewrite.mm.result Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
dealloc.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
dealloc.m.result Remove all DISABLE lines from tests 2013-12-08 21:12:19 +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 [arcmt/driver] For the -ccc-arcmt-* flags, claim them when -fno-objc-arc is passed to avoid the 2013-06-24 19:01:18 +00:00
init.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
init.m.result Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
lit.local.cfg Make the information about disabled ARCMT/Rewriter/StaticAnalyzer available 2013-08-27 19:27:35 +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 Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
migrate-space-in-path.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
migrate-with-pch.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
migrate.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
no-canceling-bridge-to-bridge-cast.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
nonobjc-to-objc-cast-2.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
nonobjc-to-objc-cast.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
nonobjc-to-objc-cast.m.result Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
objcmt-arc-cf-annotations.m Fix a tranche of comment, test and doc typos 2013-12-05 16:25:25 +00:00
objcmt-arc-cf-annotations.m.result Fix a tranche of comment, test and doc typos 2013-12-05 16:25:25 +00:00
objcmt-atomic-property.m ObjectiveC migrator. Introduce a new objcmt-atomic-property option 2013-10-09 19:06:08 +00:00
objcmt-atomic-property.m.result Objective-C migrator: when inferring 'readonly' property of an 2013-12-12 01:02:00 +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-designated-initializer.m [objcmt] Add a modernization option to infer and suggest designated initializers. 2013-12-10 18:36:49 +00:00
objcmt-designated-initializer.m.result [objcmt] Add a modernization option to infer and suggest designated initializers. 2013-12-10 18:36:49 +00:00
objcmt-instancetype-2.m ObjectiveC migrator: For 'default' and 'shared' family of 2013-10-10 18:23:13 +00:00
objcmt-instancetype-2.m.result ObjectiveC migrator. Do not migrate categories with 2013-11-19 18:17:31 +00:00
objcmt-instancetype.m ObjectiveC migrator. More testing of instancetype migration in 2013-11-11 18:54:23 +00:00
objcmt-instancetype.m.result ObjectiveC migrator. More testing of instancetype migration in 2013-11-11 18:54:23 +00:00
objcmt-migrate-all.m ObjectiveC migrator. Fixes an obscure bug where 2013-11-08 01:15:17 +00:00
objcmt-migrate-all.m.result ObjectiveC migrator. Fixes an obscure bug where 2013-11-08 01:15:17 +00:00
objcmt-ns-macros.m ObjectiveC migrator. In infering NS_ENUM/NS_OPTIONS 2013-10-17 22:23:32 +00:00
objcmt-ns-macros.m.result ObjectiveC migrator. In infering NS_ENUM/NS_OPTIONS 2013-10-17 22:23:32 +00:00
objcmt-ns-nonatomic-iosonly.m ObjectiveC migrator. Place use of NS_NONATOMIC_IOSONLY 2013-11-13 00:08:36 +00:00
objcmt-ns-nonatomic-iosonly.m.result Objective-C migrator: when inferring 'readonly' property of an 2013-12-12 01:02:00 +00:00
objcmt-ns-returns-inner-pointer.m ObjectiveC migrator. Please annotation of properties with 2013-11-05 22:28:30 +00:00
objcmt-ns-returns-inner-pointer.m.result ObjectiveC migrator. Please annotation of properties with 2013-11-05 22:28:30 +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-property-availability.m ObjectiveC migrator. When inferring readwrite property, 2013-11-01 00:26:48 +00:00
objcmt-property-availability.m.result ObjectiveC migrator. use strong instead of 2013-11-21 00:58:17 +00:00
objcmt-property.m ObjectiveC migrator. delegate property must be 2013-11-21 17:49:34 +00:00
objcmt-property.m.result Objective-C migrator: when inferring 'readonly' property of an 2013-12-12 01:02:00 +00:00
objcmt-protocol-conformance.m ObjectiveC migrator. Fixes a bug when protocol 2013-12-17 01:01:33 +00:00
objcmt-protocol-conformance.m.result ObjectiveC migrator. Fixes a bug when protocol 2013-12-17 01:01:33 +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] Fix a mishandled conversion to objc directory literal. 2013-04-06 01:13:17 +00:00
objcmt-subscripting-literals.m.result [objcmt] Fix a mishandled conversion to objc directory literal. 2013-04-06 01:13:17 +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
objcmt-with-pch.m [arcmt] Make sure the objc migrators work fine when used with a PCH. 2013-02-05 16:37:00 +00:00
objcmt-with-pch.m.result [arcmt] Make sure the objc migrators work fine when used with a PCH. 2013-02-05 16:37:00 +00:00
protected-scope.m Remove all DISABLE lines from tests 2013-12-08 21:12:19 +00:00
protected-scope.m.result Remove all DISABLE lines from tests 2013-12-08 21:12:19 +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 Add 'not' to commands that are expected to fail. 2013-07-04 16:16:58 +00:00
with-arc-mode-modify.m
with-arc-mode-modify.m.result