]> granicus.if.org Git - clang/commit
PR5066: If a declarator cannot have an identifier, and cannot possibly be
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 11 Jul 2013 05:10:21 +0000 (05:10 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 11 Jul 2013 05:10:21 +0000 (05:10 +0000)
commita38253c3e7dbd2b5aadb0556845dc3848168b904
tree9fdfb1c04fc481dc7880068b6ffed070d102ad33
parentfd5c726ab3db60d3e1be8348f6f03bb3e04ffdde
PR5066: If a declarator cannot have an identifier, and cannot possibly be
followed by an identifier, then diagnose an identifier as being a bogus part of
the declarator instead of tripping over it. Improves diagnostics for cases like

  std::vector<const int *p> my_vec;

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186061 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticParseKinds.td
include/clang/Sema/DeclSpec.h
lib/Parse/ParseDecl.cpp
test/FixIt/fixit.cpp
test/Parser/cxx-decl.cpp
test/Parser/cxx-template-argument.cpp
test/Parser/cxx0x-decl.cpp