hanchenye-llvm-project/clang/test/ARCMT
Richard Trieu 553b2b2e5d Modify how the -verify flag works. Currently, the verification string and
diagnostic message are compared.  If either is a substring of the other, then
no error is given.  This gives rise to an unexpected case:

  // expect-error{{candidate function has different number of parameters}}

will match the following error messages from Clang:

  candidate function has different number of parameters (expected 1 but has 2)
  candidate function has different number of parameters

It will also match these other error messages:

  candidate function
  function has different number of parameters
  number of parameters

This patch will change so that the verification string must be a substring of
the diagnostic message before accepting.  Also, all the failing tests from this
change have been corrected.  Some stats from this cleanup:

87 - removed extra spaces around verification strings
70 - wording updates to diagnostics
40 - extra leading or trailing characters (typos, unmatched parens or quotes)
35 - diagnostic level was included (error:, warning:, or note:)
18 - flag name put in the warning (-Wprotocol)

llvm-svn: 146619
2011-12-15 00:38:15 +00:00
..
Inputs
with space [arcmt] Try fixing the windows buildbot. 2011-09-07 21:50:18 +00:00
Common.h [arcmt] In GC, transform NSMakeCollectable to CFBridgingRelease. 2011-11-04 15:58:08 +00:00
GC-check.m [arcmt] In GC, error for __strong/__weak on non-objc pointers. 2011-11-06 18:58:23 +00:00
GC-no-arc-runtime.m [arcmt] Integrate GC __weak into property attributes even when we don't have 2011-11-28 02:04:36 +00:00
GC-no-arc-runtime.m.result [arcmt] Integrate GC __weak into property attributes even when we don't have 2011-11-28 02:04:36 +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] Don't add __weak if there is already a GC __weak and make sure to clear 2011-11-28 00:23:12 +00:00
GC.m.result [arcmt] Don't add __weak if there is already a GC __weak and make sure to clear 2011-11-28 00:23:12 +00:00
api.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
api.m.result 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 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] Take into account that all properties are strong-by-default now and fix the test. 2011-11-08 23:09:34 +00:00
assign-prop-with-arc-runtime.m.result [arcmt] Take into account that all properties are strong-by-default now and fix the test. 2011-11-08 23:09:34 +00:00
atautorelease-2.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
atautorelease-2.m.result Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
atautorelease-3.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
atautorelease-3.m.result Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
atautorelease-check.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
atautorelease.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
atautorelease.m.result Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
autoreleases.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
autoreleases.m.result Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +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 Make changes to SDiagsWriter to make it work in combination with the ARC migrator: 2011-12-07 05:52:12 +00:00
checking.m [arcmt] Un-XFAIL a test. 2011-12-09 00:17:47 +00:00
cxx-checking.mm Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
cxx-rewrite.mm Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
cxx-rewrite.mm.result Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
dealloc.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
dealloc.m.result Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
driver-migrate.m Try fixing windows bots. 2011-10-08 00:54:49 +00:00
init.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
init.m.result Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
migrate-emit-errors.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
migrate-plist-output.m Further refine the diagnostic categories for ARC diagnostics. Addresses <rdar://problem/10245086>. 2011-10-20 05:07:47 +00:00
migrate-space-in-path.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
migrate.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
nonobjc-to-objc-cast-2.m Modify how the -verify flag works. Currently, the verification string and 2011-12-15 00:38:15 +00:00
nonobjc-to-objc-cast.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
nonobjc-to-objc-cast.m.result Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
releases-driver.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
releases-driver.m.result [arcmt] In ARC default for properties is 'strong' so just remove a 'retain' if possible, 2011-10-17 23:14:16 +00:00
releases.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
releases.m.result [arcmt] In ARC default for properties is 'strong' so just remove a 'retain' if possible, 2011-10-17 23:14:16 +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 [arcmt] In ARC default for properties is 'strong' so just remove a 'retain' if possible, 2011-10-17 23:14:16 +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 [arcmt] In ARC default for properties is 'strong' so just remove a 'retain' if possible, 2011-10-17 23:14:16 +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 [arcmt] In ARC default for properties is 'strong' so just remove a 'retain' if possible, 2011-10-17 23:14:16 +00:00
rewrite-block-var.m Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
rewrite-block-var.m.result Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +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
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 Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +00:00
with-arc-mode-migrate.m.result Make -fobjc-nonfragile-abi the -cc1 default, since it's the 2011-10-02 01:16:38 +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