]> granicus.if.org Git - clang/commit
Change a couple of the Parser::Diag methods to return DiagnosticInfo
authorChris Lattner <sabre@nondot.org>
Tue, 18 Nov 2008 07:48:38 +0000 (07:48 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 18 Nov 2008 07:48:38 +0000 (07:48 +0000)
commit1ab3b96de160e4fbffec2a776e284a48a3bb543d
tree9ab728aaab0602c9e14a93602a50d62932a74f5e
parentd3b64655fa81ff1e1d5f944198239e4908035d79
Change a couple of the Parser::Diag methods to return DiagnosticInfo
and let the clients push whatever they want into the DiagnosticInfo
instead of hard coding a few forms.  Also switch various clients to
use Diag(Tok, ...) instead of Diag(Tok.getLocation(), ...) as the
canonical form to simplify the code a bit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59509 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParseDecl.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Parse/ParseExpr.cpp
lib/Parse/ParseExprCXX.cpp
lib/Parse/ParseObjc.cpp
lib/Parse/ParseStmt.cpp
lib/Parse/Parser.cpp