diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-20 00:25:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-20 00:25:30 +0000 |
commit | 7c186be76786e6b744b29b0eeda52cf74db865ab (patch) | |
tree | 6dbdb94eaf78b889fed0a737a3154a946d29a6aa /lib/Parse/ParseDecl.cpp | |
parent | 509447e7cb9c24a9f2bd149fe95030050b088622 (diff) |
Remove an implemented fixme, only treat < as a type specifier
when ObjC is turned on.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 7e83c5b014..9dffa7730d 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -277,7 +277,6 @@ ParseInitDeclaratorListAfterFirstDeclarator(Declarator &D) { D.AddAttributes(ParseAttributes()); // Inform the current actions module that we just parsed this declarator. - // FIXME: pass asm & attributes. LastDeclInGroup = Actions.ActOnDeclarator(CurScope, D, LastDeclInGroup); // Parse declarator '=' initializer. @@ -952,8 +951,6 @@ bool Parser::isTypeSpecifierQualifier() const { case tok::kw___attribute: // GNU typeof support. case tok::kw_typeof: - // GNU bizarre protocol extension. FIXME: make an extension? - case tok::less: // type-specifiers case tok::kw_short: @@ -986,6 +983,10 @@ bool Parser::isTypeSpecifierQualifier() const { case tok::kw_volatile: case tok::kw_restrict: return true; + + // GNU ObjC bizarre protocol extension: <proto1,proto2> with implicit 'id'. + case tok::less: + return getLang().ObjC1; // typedef-name case tok::identifier: |