diff options
author | Steve Naroff <snaroff@apple.com> | 2007-09-05 23:30:30 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-09-05 23:30:30 +0000 |
commit | f28b264437053fb0deacc9ba02b18a0966f7290a (patch) | |
tree | 193d56c03b296ccdc9ca22991f980f57c5b17255 /Parse/ParseDecl.cpp | |
parent | a65ff6c81f5b278000839988bb532114fd8c6797 (diff) |
Start implementing Actions interface for ObjC classes, instance variables, and methods.
Lot's of small changes to the parser.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Parse/ParseDecl.cpp')
-rw-r--r-- | Parse/ParseDecl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Parse/ParseDecl.cpp b/Parse/ParseDecl.cpp index 1db426a93f..dc9edc332c 100644 --- a/Parse/ParseDecl.cpp +++ b/Parse/ParseDecl.cpp @@ -406,8 +406,10 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS) { else { // FIXME: restrict this to "id" and ObjC classnames. DS.Range.setEnd(Tok.getLocation()); ConsumeToken(); // The identifier - if (Tok.getKind() == tok::less) - ParseObjCProtocolReferences(); + if (Tok.getKind() == tok::less) { + llvm::SmallVector<IdentifierInfo *, 8> ProtocolRefs; + ParseObjCProtocolReferences(ProtocolRefs); + } continue; } } |