diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2007-09-17 21:07:36 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2007-09-17 21:07:36 +0000 |
commit | 25e077d59a8e8e43b65882b69610a3d5e2aaf53c (patch) | |
tree | 0df875e3aba8837463cd7987c6a24ae675f48117 /include/clang/Parse/Parser.h | |
parent | 708391a0e6cf848acc5277a1b9eaa919912944f5 (diff) |
Patch to add objective-c's @protocl type declaration.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Parse/Parser.h')
-rw-r--r-- | include/clang/Parse/Parser.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h index 7d5cd1a637..89fd68eebd 100644 --- a/include/clang/Parse/Parser.h +++ b/include/clang/Parse/Parser.h @@ -260,7 +260,8 @@ private: AttributeList *prefixAttrs = 0); void ParseObjCClassInstanceVariables(DeclTy *interfaceDecl); bool ParseObjCProtocolReferences(llvm::SmallVectorImpl<IdentifierInfo*> &); - void ParseObjCInterfaceDeclList(DeclTy *interfaceDecl); + void ParseObjCInterfaceDeclList(DeclTy *interfaceDecl, + tok::ObjCKeywordKind contextKey); DeclTy *ParseObjCAtProtocolDeclaration(SourceLocation atLoc); DeclTy *ObjcImpDecl; @@ -288,8 +289,11 @@ private: TypeTy *ParseObjCTypeName(); void ParseObjCMethodRequirement(); - DeclTy *ParseObjCMethodPrototype(DeclTy *classOrCat); - DeclTy *ParseObjCMethodDecl(tok::TokenKind mType, SourceLocation mLoc); + DeclTy *ParseObjCMethodPrototype(DeclTy *classOrCat, + tok::ObjCKeywordKind& pi); + DeclTy *ParseObjCMethodDecl(DeclTy *CDecl, tok::ObjCKeywordKind& pi, + tok::TokenKind mType, + SourceLocation mLoc); void ParseObjCPropertyAttribute(DeclTy *interfaceDecl); void ParseObjCPropertyDecl(DeclTy *interfaceDecl); |