diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-05-09 20:55:26 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-05-09 20:55:26 +0000 |
commit | a971d2410fabb093954c4119d2287ac24208ea8d (patch) | |
tree | 61c2c8b0c5447ea968a8ed3fa7ac76e446cf6e38 /include/clang/Parse/Parser.h | |
parent | f63eee78a3ed50a974d0963623a06888ecd4ef6b (diff) |
Push the knowledge that we are parsing a type-id/type-name further into the
parser, and use it to emit better diagnostics in cases where an identifer
can't be looked up as a type name.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156508 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Parse/Parser.h')
-rw-r--r-- | include/clang/Parse/Parser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h index e1d5b53dec..0ea592fd7e 100644 --- a/include/clang/Parse/Parser.h +++ b/include/clang/Parse/Parser.h @@ -1531,7 +1531,7 @@ private: enum DeclSpecContext { DSC_normal, // normal context DSC_class, // class context, enables 'friend' - DSC_type_specifier, // C++ type-specifier-seq + DSC_type_specifier, // C++ type-specifier-seq or C specifier-qualifier-list DSC_trailing, // C++11 trailing-type-specifier in a trailing return type DSC_top_level // top-level/namespace declaration context }; |