]> granicus.if.org Git - clang/commit
Make wording for certain invalid unary expressions more consistent.
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 9 Oct 2013 00:22:23 +0000 (00:22 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 9 Oct 2013 00:22:23 +0000 (00:22 +0000)
commiteeac7a4bb4bf6b2bf423ec84eabcf179b9d7e4ea
tree1cf3896cbafcce1d9a3a8ffb07100e8d7c21e2ac
parentae2394718290b05128c5682d41dae59d20569c06
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192258 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticParseKinds.td
lib/Parse/ParseExpr.cpp
test/CXX/dcl.dcl/dcl.attr/dcl.align/p7.cpp
test/CXX/expr/expr.unary/expr.sizeof/p1.cpp
test/Parser/expressions.c