aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-26 03:38:44 +0000
committerChris Lattner <sabre@nondot.org>2008-07-26 03:38:44 +0000
commitf3948c41ca339da6b8dfd6006b68e5e305a8cee1 (patch)
treeb1ec753b3873e456e685c51d1b7768d8dc526b25 /lib/Parse/ParseDecl.cpp
parentfc416a4e0ddc74b358b83d60891a7689ba22d520 (diff)
< only starts a declspec in objc mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54089 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r--lib/Parse/ParseDecl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp
index 51230fc88f..e7b73cf619 100644
--- a/lib/Parse/ParseDecl.cpp
+++ b/lib/Parse/ParseDecl.cpp
@@ -1024,10 +1024,11 @@ bool Parser::isDeclarationSpecifier() const {
// GNU attributes.
case tok::kw___attribute:
+ return true;
- // GNU bizarre protocol extension. FIXME: make an extension?
+ // GNU ObjC bizarre protocol extension: <proto1,proto2> with implicit 'id'.
case tok::less:
- return true;
+ return getLang().ObjC1;
// typedef-name
case tok::identifier: