[cfe-commits] r42756 - in /cfe/trunk: clang.xcodeproj/project.pbxproj include/clang/AST/DeclObjC.h

Fariborz Jahanian fjahanian at apple.com
Mon Oct 8 10:35:11 PDT 2007


Author: fjahanian
Date: Mon Oct  8 12:35:11 2007
New Revision: 42756

URL: http://llvm.org/viewvc/llvm-project?rev=42756&view=rev
Log:
Removed unnecessary base class from some of objective-c classes:
ObjcProtocolDecl is now derived from ScopedDecl. ObjcForwardProtocolDecl from Decl.
ObjcImplementationDecl fom NamedDecl.


Modified:
    cfe/trunk/clang.xcodeproj/project.pbxproj
    cfe/trunk/include/clang/AST/DeclObjC.h

Modified: cfe/trunk/clang.xcodeproj/project.pbxproj
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/clang.xcodeproj/project.pbxproj?rev=42756&r1=42755&r2=42756&view=diff

==============================================================================
--- cfe/trunk/clang.xcodeproj/project.pbxproj (original)
+++ cfe/trunk/clang.xcodeproj/project.pbxproj Mon Oct  8 12:35:11 2007
@@ -739,6 +739,7 @@
 		08FB7793FE84155DC02AAC07 /* Project object */ = {
 			isa = PBXProject;
 			buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "clang" */;
+			compatibilityVersion = "Xcode 2.4";
 			hasScannedForEncodings = 1;
 			mainGroup = 08FB7794FE84155DC02AAC07 /* clang */;
 			projectDirPath = "";

Modified: cfe/trunk/include/clang/AST/DeclObjC.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclObjC.h?rev=42756&r1=42755&r2=42756&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/DeclObjC.h (original)
+++ cfe/trunk/include/clang/AST/DeclObjC.h Mon Oct  8 12:35:11 2007
@@ -283,7 +283,7 @@
 ///
 /// id <NSDraggingInfo> anyObjectThatImplementsNSDraggingInfo;
 ///
-class ObjcProtocolDecl : public TypeDecl {
+class ObjcProtocolDecl : public ScopedDecl {
   /// referenced protocols
   ObjcProtocolDecl **ReferencedProtocols;  // Null if none
   int NumReferencedProtocols;  // -1 if none
@@ -300,7 +300,7 @@
 public:
   ObjcProtocolDecl(SourceLocation L, unsigned numRefProtos,
                    IdentifierInfo *Id, bool FD = false)
-    : TypeDecl(ObjcProtocol, L, Id, 0), 
+    : ScopedDecl(ObjcProtocol, L, Id, 0), 
       ReferencedProtocols(0), NumReferencedProtocols(-1),
       InstanceMethods(0), NumInstanceMethods(-1), 
       ClassMethods(0), NumClassMethods(-1),
@@ -376,13 +376,13 @@
 /// 
 /// @protocol NSTextInput, NSChangeSpelling, NSDraggingInfo;
 /// 
-class ObjcForwardProtocolDecl : public TypeDecl {
+class ObjcForwardProtocolDecl : public Decl {
   ObjcProtocolDecl **ReferencedProtocols;
   unsigned NumReferencedProtocols;
 public:
   ObjcForwardProtocolDecl(SourceLocation L, 
                           ObjcProtocolDecl **Elts, unsigned nElts)
-  : TypeDecl(ObjcForwardProtocol, L, 0, 0) { 
+  : Decl(ObjcForwardProtocol, L) { 
     NumReferencedProtocols = nElts;
     if (nElts) {
       ReferencedProtocols = new ObjcProtocolDecl*[nElts];
@@ -555,7 +555,7 @@
 /// the legacy semantics and allow developers to move private ivar declarations
 /// from the class interface to the class implementation (but I digress:-)
 ///
-class ObjcImplementationDecl : public TypeDecl {
+class ObjcImplementationDecl : public NamedDecl {
     
   /// Implementation Class's super class.
   ObjcInterfaceDecl *SuperClass;
@@ -575,7 +575,7 @@
 public:
   ObjcImplementationDecl(SourceLocation L, IdentifierInfo *Id,
                          ObjcInterfaceDecl* superDecl)
-    : TypeDecl(ObjcImplementation, L, Id, 0),
+    : NamedDecl(ObjcImplementation, L, Id),
       SuperClass(superDecl),
       Ivars(0), NumIvars(-1),
       InstanceMethods(0), NumInstanceMethods(-1), 





More information about the cfe-commits mailing list