[cfe-commits] r134965 - /cfe/trunk/include/clang/AST/DeclObjC.h
Argyrios Kyrtzidis
akyrtzi at gmail.com
Mon Jul 11 21:52:08 PDT 2011
Author: akirtzidis
Date: Mon Jul 11 23:52:08 2011
New Revision: 134965
URL: http://llvm.org/viewvc/llvm-project?rev=134965&view=rev
Log:
Move OBJC_PR_NumBits out of PropertyAttributeKind enum, to its own NumPropertyAttrsBits.
No functionality change.
Modified:
cfe/trunk/include/clang/AST/DeclObjC.h
Modified: cfe/trunk/include/clang/AST/DeclObjC.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclObjC.h?rev=134965&r1=134964&r2=134965&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclObjC.h (original)
+++ cfe/trunk/include/clang/AST/DeclObjC.h Mon Jul 11 23:52:08 2011
@@ -1414,10 +1414,13 @@
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 @@
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;
More information about the cfe-commits
mailing list