]> granicus.if.org Git - clang/commitdiff
Move OBJC_PR_NumBits out of PropertyAttributeKind enum, to its own NumPropertyAttrsBits.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 12 Jul 2011 04:52:08 +0000 (04:52 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 12 Jul 2011 04:52:08 +0000 (04:52 +0000)
No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134965 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclObjC.h

index 91126f10547bd1c51c295ec93afbc23fd84b1a03..d318fc27a8ba1b66ed017031dcbff6d48916baae 100644 (file)
@@ -1414,10 +1414,13 @@ public:
     OBJC_PR_atomic    = 0x100,
     OBJC_PR_weak      = 0x200,
     OBJC_PR_strong    = 0x400,
-    OBJC_PR_unsafe_unretained = 0x800,
+    OBJC_PR_unsafe_unretained = 0x800
+    // Adding a property should change NumPropertyAttrsBits
+  };
 
+  enum {
     /// \brief Number of bits fitting all the property attributes.
-    OBJC_PR_NumBits = 12
+    NumPropertyAttrsBits = 12
   };
 
   enum SetterKind { Assign, Retain, Copy };
@@ -1425,8 +1428,8 @@ public:
 private:
   SourceLocation AtLoc;   // location of @property
   TypeSourceInfo *DeclType;
-  unsigned PropertyAttributes : OBJC_PR_NumBits;
-  unsigned PropertyAttributesAsWritten : OBJC_PR_NumBits;
+  unsigned PropertyAttributes : NumPropertyAttrsBits;
+  unsigned PropertyAttributesAsWritten : NumPropertyAttrsBits;
   // @required/@optional
   unsigned PropertyImplementation : 2;