summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseExpr.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2013-10-09 00:22:23 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2013-10-09 00:22:23 +0000
commit767c1f84283acd1256ff3391b7e40da6289301f2 (patch)
tree2f4814676123c01db4e6f9e33aaa55c706915412 /clang/lib/Parse/ParseExpr.cpp
parente4e12d045583adbf1d4c1a11c21747066ba46f15 (diff)
downloadbcm5719-llvm-767c1f84283acd1256ff3391b7e40da6289301f2.tar.gz
bcm5719-llvm-767c1f84283acd1256ff3391b7e40da6289301f2.zip
Make wording for certain invalid unary expressions more consistent.
An invalid decltype expression like 'decltype int' gives: error: expected '(' after 'decltype' This makes it so 'sizeof int' gives a similar one: error: expected parentheses around type name in sizeof expression llvm-svn: 192258
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
-rw-r--r--clang/lib/Parse/ParseExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp
index 35c2aeffc28..c9a718b5278 100644
--- a/clang/lib/Parse/ParseExpr.cpp
+++ b/clang/lib/Parse/ParseExpr.cpp
@@ -1602,7 +1602,7 @@ Parser::ParseExprAfterUnaryExprOrTypeTrait(const Token &OpTok,
SourceLocation LParenLoc = PP.getLocForEndOfToken(OpTok.getLocation());
SourceLocation RParenLoc = PP.getLocForEndOfToken(PrevTokLocation);
- Diag(LParenLoc, diag::err_missed_parentheses_around_typename)
+ Diag(LParenLoc, diag::err_expected_parentheses_around_typename)
<< OpTok.getName()
<< FixItHint::CreateInsertion(LParenLoc, "(")
<< FixItHint::CreateInsertion(RParenLoc, ")");
OpenPOWER on IntegriCloud