summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/VerifyDiagnosticsClient.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Switch the VerifyDiagnosticsClient to use PresumedLocs now that theyChandler Carruth2011-02-231-4/+4
| | | | | | | exist. Cheat and do this by adding some wrappers around the PresumedLoc machinery that directly return the line and column number. llvm-svn: 126281
* Remove the hack where, to get the return status, we had special case for ↵Argyrios Kyrtzidis2010-11-181-9/+1
| | | | | | | | VerifyDiagnosticsClient and just check the number of errors from the DiagnosticClient. llvm-svn: 119736
* StringRefize.Benjamin Kramer2010-09-011-6/+5
| | | | llvm-svn: 112718
* Simplify the ownership model for DiagnosticClients, which was reallyDouglas Gregor2010-08-181-1/+2
| | | | | | | convoluted and a bit leaky. Now, the Diagnostic object owns its DiagnosticClient. llvm-svn: 111437
* Remove ATTRIBUTE_UNUSED from the common pattern of disallowing copying.Argyrios Kyrtzidis2010-08-151-3/+2
| | | | llvm-svn: 111101
* Add ATTRIBUTE_UNUSED to methods not supposed to be used.Argyrios Kyrtzidis2010-08-151-2/+3
| | | | llvm-svn: 111087
* add regex support for -verify mode. You can now do things likeChris Lattner2010-04-281-144/+319
| | | | | | | | expected-error-re {{someregex}} Patch by mike-m! llvm-svn: 102516
* Fix PR5633 by making the preprocessor handle the case where we canChris Lattner2009-11-301-3/+5
| | | | | | | | | | stat a file but where mmaping it fails. In this case, we emit an error like: t.c:1:10: fatal error: error opening file '../../foo.h' instead of "cannot find file". llvm-svn: 90110
* Shuffle VerifyDiagnosticsClient API to be less fragile.Daniel Dunbar2009-11-141-28/+32
| | | | llvm-svn: 88765
* Add VerifyDiagnosticsClient, to replace old -verify.Daniel Dunbar2009-11-141-0/+340
- This reimplements -verify as just another DiagnosticClient, which buffers the diagnostics and checks them when the source file is complete. There are some hacks to make this work, but they are all internal, and this exposes a better external interface. - This also tweaks a few things: o Errors are now just regular diagnostics. o Frontend diagnostics are now caught (for example, errors in command line arguments), although there isn't yet a way to specify that they are expected. That would be nice though. - Not yet used. llvm-svn: 88748
OpenPOWER on IntegriCloud