]> granicus.if.org Git - clang/commit
ParseCXXSimpleTypeSpecifier can only be called on things that are
authorChris Lattner <sabre@nondot.org>
Mon, 5 Jan 2009 00:13:00 +0000 (00:13 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 5 Jan 2009 00:13:00 +0000 (00:13 +0000)
commit55a7cefc846765ac7d142a63f773747a20518d71
tree91959d218c8c29b3a09448b825973155430597fe
parent5e02c47a7085831586344a9728763cb50540c7f7
ParseCXXSimpleTypeSpecifier can only be called on things that are
verified to be simple type specifiers, so there is no need for it
to call TryAnnotateTypeOrScopeToken.

Make MaybeParseCXXScopeSpecifier reject ::new and ::delete with a
hard error now that it may never be transitively called in a
context where these are legal.  This allows me to start
disentangling things more.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61659 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticKinds.def
lib/Parse/ParseExprCXX.cpp
lib/Parse/Parser.cpp