[cfe-commits] r164677 -

Andy Gibbs andyg1001 at hotmail.co.uk
Tue Oct 2 08:32:38 PDT 2012


All,

Attached is a patch that adds an 'expected-no-diagnostics' directive 
to -verify.  This can then be used, as discussed, to flag files that are not 
expected to produce any diagnostics at all.  -verify has then been changed 
to generate an error if no expected-* directives are found (for example, if 
the RUN line doesn't specify the source file!).  I've also made it so that 
the user cannot put 'expected-no-diagnostics' in with other expected-* 
directives (to avoid mistakes!).

The complete patch is rather large, but I've grouped the changes to 
VerifyDiagnosticConsumer to the top of the file along with the additional 
test-case.  The rest of the patch makes the necessary changes to fix 580 
test-cases which now (in almost all cases) need to have the 
'expected-no-diagnostics' directive.

Comments / questions welcome!

Andy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: verify.diff
Type: application/octet-stream
Size: 278446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121002/824367ac/attachment.obj>


More information about the cfe-commits mailing list