diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-23 21:45:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-23 21:45:46 +0000 |
commit | e3d20d954503fef1256b50977f7e2c9507452c1e (patch) | |
tree | 8473d3824da844a9fcc3808aa798a1bdcf5b2b16 /clang/lib/Parse/ParseExpr.cpp | |
parent | f7e69d5a77b21fd98e29df84411506527faa62b3 (diff) | |
download | bcm5719-llvm-e3d20d954503fef1256b50977f7e2c9507452c1e.tar.gz bcm5719-llvm-e3d20d954503fef1256b50977f7e2c9507452c1e.zip |
Convert IdentifierInfo's to be printed the same as DeclarationNames
with implicit quotes around them. This has a bunch of follow-on
effects and requires tweaking to a whole lot of code. This causes
a regression in two tests (xfailed) by causing it to emit things like:
Line 10: duplicate interface declaration for category 'MyClass1' ('Category1')
instead of:
Line 10: duplicate interface declaration for category 'MyClass1(Category1)'
I will fix this in a follow-up commit.
As part of this, I had to start switching stuff to use ->getDeclName() instead
of Decl::getName() for consistency. This is good, but I was planning to do this
as an independent patch. There will be several follow-on patches
to clean up some of the mess, but this patch is already too big.
llvm-svn: 59917
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
-rw-r--r-- | clang/lib/Parse/ParseExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp index 9f9b306c45f..21b3dac038f 100644 --- a/clang/lib/Parse/ParseExpr.cpp +++ b/clang/lib/Parse/ParseExpr.cpp @@ -829,7 +829,7 @@ Parser::ExprResult Parser::ParseBuiltinPrimaryExpression() { // All of these start with an open paren. if (Tok.isNot(tok::l_paren)) { - Diag(Tok, diag::err_expected_lparen_after) << BuiltinII; + Diag(Tok, diag::err_expected_lparen_after_id) << BuiltinII; return ExprResult(true); } |