summaryrefslogtreecommitdiffstats
path: root/clang/test/ARCMT/objcmt-ns-macros.m
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-07-22 18:53:45 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-07-22 18:53:45 +0000
commitd0f6f79f4e4fee9fcd7b9f60a6e8e69d0607ede6 (patch)
treeba9ccd97f4614b647dda1f9c6f533d3410846b6a /clang/test/ARCMT/objcmt-ns-macros.m
parent44ff81d4e3e0f75d9969a22aec7ac57641464aeb (diff)
downloadbcm5719-llvm-d0f6f79f4e4fee9fcd7b9f60a6e8e69d0607ede6.tar.gz
bcm5719-llvm-d0f6f79f4e4fee9fcd7b9f60a6e8e69d0607ede6.zip
Objective-C migration: Use NS_OPTIONS when enumerators
have shift/bitwise operators or are power of 2. llvm-svn: 186856
Diffstat (limited to 'clang/test/ARCMT/objcmt-ns-macros.m')
-rw-r--r--clang/test/ARCMT/objcmt-ns-macros.m38
1 files changed, 31 insertions, 7 deletions
diff --git a/clang/test/ARCMT/objcmt-ns-macros.m b/clang/test/ARCMT/objcmt-ns-macros.m
index 42d7d2cd8f6..2ca85699fb9 100644
--- a/clang/test/ARCMT/objcmt-ns-macros.m
+++ b/clang/test/ARCMT/objcmt-ns-macros.m
@@ -17,14 +17,13 @@ typedef NSInteger wibble;
enum {
UIViewAutoresizingNone = 0,
- UIViewAutoresizingFlexibleLeftMargin = 1 << 0,
- UIViewAutoresizingFlexibleWidth = 1 << 1,
- UIViewAutoresizingFlexibleRightMargin = 1 << 2,
- UIViewAutoresizingFlexibleTopMargin = 1 << 3,
- UIViewAutoresizingFlexibleHeight = 1 << 4,
- UIViewAutoresizingFlexibleBottomMargin = 1 << 5
+ UIViewAutoresizingFlexibleLeftMargin,
+ UIViewAutoresizingFlexibleWidth,
+ UIViewAutoresizingFlexibleRightMargin,
+ UIViewAutoresizingFlexibleTopMargin,
+ UIViewAutoresizingFlexibleHeight,
+ UIViewAutoresizingFlexibleBottomMargin
};
-
typedef NSUInteger UITableViewCellStyle;
typedef enum {
@@ -35,6 +34,31 @@ typedef enum {
UIViewAnimationTransitionCurlDown,
} UIViewAnimationTransition;
+typedef enum {
+ UIViewOne = 0,
+ UIViewTwo = 1 << 0,
+ UIViewThree = 1 << 1,
+ UIViewFour = 1 << 2,
+ UIViewFive = 1 << 3,
+ UIViewSix = 1 << 4,
+ UIViewSeven = 1 << 5
+} UITableView;
+
+enum {
+ UIOne = 0,
+ UITwo = 0x1,
+ UIthree = 0x8,
+ UIFour = 0x100
+};
+typedef NSInteger UI;
+
+typedef enum {
+ UIP2One = 0,
+ UIP2Two = 0x1,
+ UIP2three = 0x8,
+ UIP2Four = 0x100
+} UIPOWER2;
+
enum {
UNOne,
UNTwo
OpenPOWER on IntegriCloud