diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-07-12 04:52:08 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-07-12 04:52:08 +0000 |
commit | 9f3480bab8fcb6547978f8ad9e2b8f468e3658ee (patch) | |
tree | 60b729e595ffe72e60a1f85d5abe40731fe8024d | |
parent | 48c86b27e3bec52e16b6b4a1c9735ee4e9f56bb7 (diff) |
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
-rw-r--r-- | include/clang/AST/DeclObjC.h | 11 |
1 files 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; |