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 | 409bf7d03af649b06e9f085ba5d8c3a2229d4f97 (patch) | |
| tree | d499ee05ce798b5db6bc545189f951003b18a4a1 /clang/lib/Parse/ParseDecl.cpp | |
| parent | 8ec2a4a96c3818e0e7dded5f8bfd1a20a2f88a50 (diff) | |
| download | bcm5719-llvm-409bf7d03af649b06e9f085ba5d8c3a2229d4f97.tar.gz bcm5719-llvm-409bf7d03af649b06e9f085ba5d8c3a2229d4f97.zip | |
Remove an implemented fixme, only treat < as a type specifier
when ObjC is turned on.
llvm-svn: 57787
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 7e83c5b014f..9dffa7730d2 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/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: |

