From 9f3480bab8fcb6547978f8ad9e2b8f468e3658ee Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 12 Jul 2011 04:52:08 +0000 Subject: [PATCH] Move OBJC_PR_NumBits out of PropertyAttributeKind enum, to its own NumPropertyAttrsBits. 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 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/clang/AST/DeclObjC.h b/include/clang/AST/DeclObjC.h index 91126f1054..d318fc27a8 100644 --- a/include/clang/AST/DeclObjC.h +++ b/include/clang/AST/DeclObjC.h @@ -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; -- 2.40.0