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 | 9b72b0c7d5818d4686f2390bfb0bb7fe6233c179 (patch) | |
tree | a47d4f016dfb6910be42d8dbb009b441ab318184 /clang | |
parent | 5e3ef09f204a9f4332a012619f40074e5300e5f4 (diff) | |
download | bcm5719-llvm-9b72b0c7d5818d4686f2390bfb0bb7fe6233c179.tar.gz bcm5719-llvm-9b72b0c7d5818d4686f2390bfb0bb7fe6233c179.zip |
Move OBJC_PR_NumBits out of PropertyAttributeKind enum, to its own NumPropertyAttrsBits.
No functionality change.
llvm-svn: 134965
Diffstat (limited to 'clang')
-rw-r--r-- | clang/include/clang/AST/DeclObjC.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/clang/include/clang/AST/DeclObjC.h b/clang/include/clang/AST/DeclObjC.h index 91126f10547..d318fc27a8b 100644 --- a/clang/include/clang/AST/DeclObjC.h +++ b/clang/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; |