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 | 8b2ec166b84c71b9af8307dec1b9e2f2bc6b48e1 (patch) | |
| tree | 479d4c4ce682254a1181a6a5c0e39a15adac3838 /clang/lib/Parse/ParseDecl.cpp | |
| parent | 12fd035d6f25ef4e5b019457156d373a5fd6a248 (diff) | |
| download | bcm5719-llvm-8b2ec166b84c71b9af8307dec1b9e2f2bc6b48e1.tar.gz bcm5719-llvm-8b2ec166b84c71b9af8307dec1b9e2f2bc6b48e1.zip | |
< only starts a declspec in objc mode.
llvm-svn: 54089
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 51230fc88f0..e7b73cf6197 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/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: | 

