From: Chris Lattner Date: Tue, 9 Oct 2007 18:18:24 +0000 (+0000) Subject: Update DeclKind enums to reflect ObjcProtocolDecl's inheritance change. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4de884d3fba3250b3f2e7b54145f1e878ce7c3c3;p=clang Update DeclKind enums to reflect ObjcProtocolDecl's inheritance change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42802 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Sema/Sema.h b/Sema/Sema.h index a442503b5b..e2ec394901 100644 --- a/Sema/Sema.h +++ b/Sema/Sema.h @@ -89,7 +89,7 @@ class Sema : public Action { /// ObjcProtocols - Keep track of all protocol declarations declared /// with @protocol keyword, so that we can emit errors on duplicates and - /// find the declarations when needded. + /// find the declarations when needed. llvm::DenseMap ObjcProtocols; // Enum values used by KnownFunctionIDs (see below). diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 92be893f5a..4688361fc5 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -42,8 +42,8 @@ public: ObjcCategory, ObjcCategoryImpl, ObjcImplementation, + ObjcProtocol, // ScopedDecl - ObjcProtocol, // TypeDecl ObjcInterface, Typedef, @@ -68,7 +68,7 @@ public: // of the class, to allow efficient classof. NamedFirst = Field, NamedLast = ParmVar, FieldFirst = Field, FieldLast = ObjcIvar, - ScopedFirst = ObjcProtocol, ScopedLast = ParmVar, + ScopedFirst = ObjcInterface, ScopedLast = ParmVar, TypeFirst = ObjcInterface, TypeLast = Class, TagFirst = Enum , TagLast = Class, RecordFirst = Struct , RecordLast = Class,