]> granicus.if.org Git - clang/commit
Make the implicit-int handling error recovery stuff handle C++
authorChris Lattner <sabre@nondot.org>
Tue, 14 Apr 2009 22:17:06 +0000 (22:17 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 14 Apr 2009 22:17:06 +0000 (22:17 +0000)
commitf4382f50b7ab9f445c3f5b3ddaa59e6da25ea3bb
treec40a54645a3b931b525d2f33f0a8ff0903b4f014
parent17fc223395d51be582fc666bb6ea21bd1dff26dc
Make the implicit-int handling error recovery stuff handle C++
nested name specifiers.  Now we emit stuff like:

t.cpp:8:13: error: unknown type name 'X'
static foo::X  P;
       ~~~~ ^

instead of:

t.cpp:8:16: error: invalid token after top level declarator
static foo::X  P;
               ^

This is inspired by a really awful error message I got from
g++ when I misspelt diag::kind as diag::Kind.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69086 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParseDecl.cpp
test/SemaCXX/namespace.cpp
test/SemaCXX/nested-name-spec.cpp
test/SemaTemplate/instantiate-typedef.cpp
test/SemaTemplate/nested-name-spec-template.cpp
test/SemaTemplate/typename-specifier.cpp