diff options
author | Chris Lattner <sabre@nondot.org> | 2008-07-26 03:38:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-07-26 03:38:44 +0000 |
commit | f3948c41ca339da6b8dfd6006b68e5e305a8cee1 (patch) | |
tree | b1ec753b3873e456e685c51d1b7768d8dc526b25 /lib/Parse/ParseDecl.cpp | |
parent | fc416a4e0ddc74b358b83d60891a7689ba22d520 (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.cpp | 5 |
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: |