Lines Matching refs:verifyFormat

70 #define verifyFormat(...) _verifyFormat(__FILE__, __LINE__, __VA_ARGS__)  macro
192 verifyFormat("@try {\n" in TEST_F()
199 verifyFormat("DEBUG({\n" in TEST_F()
207 verifyFormat("@autoreleasepool {\n" in TEST_F()
215 verifyFormat("@autoreleasepool\n" in TEST_F()
227 verifyFormat("int aaaaaaaaaaaaaaaa(\n" in TEST_F()
230 verifyFormat("int aaaaaaaaaaaaaaaa(\n" in TEST_F()
237 verifyFormat("@synchronized(self) {\n" in TEST_F()
245 verifyFormat("@synchronized(self)\n" in TEST_F()
256 verifyFormat("@interface Foo : NSObject <NSSomeDelegate> {\n" in TEST_F()
269 verifyFormat("@interface /* wait for it */ Foo\n" in TEST_F()
275 verifyFormat("@interface Foo\n" in TEST_F()
280 verifyFormat("@interface Foo : Bar\n" in TEST_F()
285 verifyFormat("FOUNDATION_EXPORT NS_AVAILABLE_IOS(10.0) @interface Foo : Bar\n" in TEST_F()
290 verifyFormat("@interface Foo : /**/ Bar /**/ <Baz, /**/ Quux>\n" in TEST_F()
294 verifyFormat("@interface Foo (HackStuff)\n" in TEST_F()
298 verifyFormat("@interface Foo ()\n" in TEST_F()
302 verifyFormat("@interface Foo (HackStuff) <MyProtocol>\n" in TEST_F()
306 verifyFormat("@interface Foo {\n" in TEST_F()
312 verifyFormat("@interface Foo : Bar {\n" in TEST_F()
318 verifyFormat("@interface Foo : Bar <Baz, Quux> {\n" in TEST_F()
324 verifyFormat("@interface Foo<Baz : Blech> : Bar <Baz, Quux> {\n" in TEST_F()
330 verifyFormat("@interface Foo<Bar : Baz <Blech>> : Xyzzy <Corge> {\n" in TEST_F()
336 verifyFormat("@interface Foo<Bar : Baz <Blech>> : Xyzzy <Corge> <Quux> {\n" in TEST_F()
342 verifyFormat("@interface Foo : Bar <Baz> <Blech>\n" in TEST_F()
345 verifyFormat("@interface Foo : Bar <Baz> <Blech, Xyzzy, Corge>\n" in TEST_F()
348 verifyFormat("@interface Foo (HackStuff) {\n" in TEST_F()
354 verifyFormat("@interface Foo () {\n" in TEST_F()
360 verifyFormat("@interface Foo (HackStuff) <MyProtocol> {\n" in TEST_F()
365 verifyFormat("@interface Foo\n" in TEST_F()
374 verifyFormat("@interface ccccccccccccc () <\n" in TEST_F()
378 verifyFormat("@interface ccccccccccccc (ccccccccccc) <\n" in TEST_F()
382 verifyFormat("@interface ddddddddddddd () <\n" in TEST_F()
391 verifyFormat("@interface eeeeeeeeeeeee () <\n" in TEST_F()
398 verifyFormat("@interface fffffffffffff () <\n" in TEST_F()
404 verifyFormat("@interface Foo : NSObject <NSSomeDelegate> {\n" in TEST_F()
416 verifyFormat("@interface Foo : Bar <Baz, Quux>\n" in TEST_F()
419 verifyFormat("@interface Foo (HackStuff) <MyProtocol>\n" in TEST_F()
424 verifyFormat("void eeeeeeee(int eeeee, int eeeee,\n" in TEST_F()
427 verifyFormat("@interface fffffffffffff () <\n" in TEST_F()
433 verifyFormat("@interface ggggggggggggg\n" in TEST_F()
440 verifyFormat("@implementation Foo : NSObject {\n" in TEST_F()
453 verifyFormat("@implementation Foo\n" in TEST_F()
467 verifyFormat("@implementation Foo\n" in TEST_F()
481 verifyFormat("@implementation Foo {\n" in TEST_F()
487 verifyFormat("@implementation Foo : Bar {\n" in TEST_F()
493 verifyFormat("@implementation Foo (HackStuff)\n" in TEST_F()
496 verifyFormat("@implementation ObjcClass\n" in TEST_F()
502 verifyFormat("@implementation Foo : NSObject {\n" in TEST_F()
517 verifyFormat("@protocol Foo\n" in TEST_F()
522 verifyFormat("@protocol MyProtocol <NSObject>\n" in TEST_F()
526 verifyFormat("@protocol Foo;\n" in TEST_F()
529 verifyFormat("@protocol Foo\n" in TEST_F()
534 verifyFormat("FOUNDATION_EXPORT NS_AVAILABLE_IOS(10.0) @protocol Foo\n" in TEST_F()
538 verifyFormat("@protocol myProtocol\n" in TEST_F()
548 verifyFormat("@property(nonatomic, assign, readonly)\n" in TEST_F()
553 verifyFormat("@implementation PR18406\n" in TEST_F()
558 verifyFormat("@protocol MyProtocol <NSObject>\n" in TEST_F()
564 verifyFormat("- (void)doSomethingWith:(GTMFoo *)theFoo\n" in TEST_F()
568 verifyFormat("- (void)shortf:(GTMFoo *)theFoo\n" in TEST_F()
573 verifyFormat("- (void)shortf:(GTMFoo *)theFoo\n" in TEST_F()
578 verifyFormat("+ (instancetype)new;\n"); in TEST_F()
580 verifyFormat("- (instancetype)initXxxxxx:(id<x>)x\n" in TEST_F()
583 verifyFormat("- (void)drawRectOn:(id)surface\n" in TEST_F()
588 verifyFormat("- (aaaaaaaaaaaaaaaaaaaaaaaaaaaaa)\n" in TEST_F()
590 verifyFormat("- (aaaaaaaaaaaaaaaaaaaaaaaaaaaaa)\n" in TEST_F()
592 verifyFormat("- (aaaaaaaaaaaaaaaaaaaaaaaaaaaaa)\n" in TEST_F()
595 verifyFormat("- (aaaaaaaaaaaaaaaaaaaaaaaaaaaaa)\n" in TEST_F()
598 verifyFormat("- (aaaaaaaaaaaaaaaaaaaaaaaaaaaaa)\n" in TEST_F()
606 verifyFormat("- (void)shortf:(GTMFoo *)theFoo\n" in TEST_F()
611 verifyFormat("- (void)shortf:(GTMFoo *)theFoo\n" in TEST_F()
617 verifyFormat("- (void)drawRectOn:(id)surface\n" in TEST_F()
624 verifyFormat("- (void)drawRectOn:(id)surface ofSize:(aaa)height:(bbb)width;"); in TEST_F()
630 verifyFormat("@implementation Foo\n" in TEST_F()
638 verifyFormat("[foo bar:baz];"); in TEST_F()
639 verifyFormat("[foo bar]->baz;"); in TEST_F()
640 verifyFormat("return [foo bar:baz];"); in TEST_F()
641 verifyFormat("return (a)[foo bar:baz];"); in TEST_F()
642 verifyFormat("f([foo bar:baz]);"); in TEST_F()
643 verifyFormat("f(2, [foo bar:baz]);"); in TEST_F()
644 verifyFormat("f(2, a ? b : c);"); in TEST_F()
645 verifyFormat("[[self initWithInt:4] bar:[baz quux:arrrr]];"); in TEST_F()
648 verifyFormat("int a = +[foo bar:baz];"); in TEST_F()
649 verifyFormat("int a = -[foo bar:baz];"); in TEST_F()
650 verifyFormat("int a = ![foo bar:baz];"); in TEST_F()
651 verifyFormat("int a = ~[foo bar:baz];"); in TEST_F()
652 verifyFormat("int a = ++[foo bar:baz];"); in TEST_F()
653 verifyFormat("int a = --[foo bar:baz];"); in TEST_F()
654 verifyFormat("int a = sizeof [foo bar:baz];"); in TEST_F()
655 verifyFormat("int a = alignof [foo bar:baz];"); in TEST_F()
656 verifyFormat("int a = &[foo bar:baz];"); in TEST_F()
657 verifyFormat("int a = *[foo bar:baz];"); in TEST_F()
662 verifyFormat("return (MyType *)[self.tableView cellForRowAtIndexPath:cell];"); in TEST_F()
665 verifyFormat("[foo bar:baz], [foo bar:baz];"); in TEST_F()
666 verifyFormat("[foo bar:baz] = [foo bar:baz];"); in TEST_F()
667 verifyFormat("[foo bar:baz] *= [foo bar:baz];"); in TEST_F()
668 verifyFormat("[foo bar:baz] /= [foo bar:baz];"); in TEST_F()
669 verifyFormat("[foo bar:baz] %= [foo bar:baz];"); in TEST_F()
670 verifyFormat("[foo bar:baz] += [foo bar:baz];"); in TEST_F()
671 verifyFormat("[foo bar:baz] -= [foo bar:baz];"); in TEST_F()
672 verifyFormat("[foo bar:baz] <<= [foo bar:baz];"); in TEST_F()
673 verifyFormat("[foo bar:baz] >>= [foo bar:baz];"); in TEST_F()
674 verifyFormat("[foo bar:baz] &= [foo bar:baz];"); in TEST_F()
675 verifyFormat("[foo bar:baz] ^= [foo bar:baz];"); in TEST_F()
676 verifyFormat("[foo bar:baz] |= [foo bar:baz];"); in TEST_F()
677 verifyFormat("[foo bar:baz] ? [foo bar:baz] : [foo bar:baz];"); in TEST_F()
678 verifyFormat("[foo bar:baz] || [foo bar:baz];"); in TEST_F()
679 verifyFormat("[foo bar:baz] && [foo bar:baz];"); in TEST_F()
680 verifyFormat("[foo bar:baz] | [foo bar:baz];"); in TEST_F()
681 verifyFormat("[foo bar:baz] ^ [foo bar:baz];"); in TEST_F()
682 verifyFormat("[foo bar:baz] & [foo bar:baz];"); in TEST_F()
683 verifyFormat("[foo bar:baz] == [foo bar:baz];"); in TEST_F()
684 verifyFormat("[foo bar:baz] != [foo bar:baz];"); in TEST_F()
685 verifyFormat("[foo bar:baz] >= [foo bar:baz];"); in TEST_F()
686 verifyFormat("[foo bar:baz] <= [foo bar:baz];"); in TEST_F()
687 verifyFormat("[foo bar:baz] > [foo bar:baz];"); in TEST_F()
688 verifyFormat("[foo bar:baz] < [foo bar:baz];"); in TEST_F()
689 verifyFormat("[foo bar:baz] >> [foo bar:baz];"); in TEST_F()
690 verifyFormat("[foo bar:baz] << [foo bar:baz];"); in TEST_F()
691 verifyFormat("[foo bar:baz] - [foo bar:baz];"); in TEST_F()
692 verifyFormat("[foo bar:baz] + [foo bar:baz];"); in TEST_F()
693 verifyFormat("[foo bar:baz] * [foo bar:baz];"); in TEST_F()
694 verifyFormat("[foo bar:baz] / [foo bar:baz];"); in TEST_F()
695 verifyFormat("[foo bar:baz] % [foo bar:baz];"); in TEST_F()
698 verifyFormat("return in[42];"); in TEST_F()
699 verifyFormat("for (auto v : in[1]) {\n}"); in TEST_F()
700 verifyFormat("for (int i = 0; i < in[a]; ++i) {\n}"); in TEST_F()
701 verifyFormat("for (int i = 0; in[a] < i; ++i) {\n}"); in TEST_F()
702 verifyFormat("for (int i = 0; i < n; ++i, ++in[a]) {\n}"); in TEST_F()
703 verifyFormat("for (int i = 0; i < n; ++i, in[a]++) {\n}"); in TEST_F()
704 verifyFormat("for (int i = 0; i < f(in[a]); ++i, in[a]++) {\n}"); in TEST_F()
705 verifyFormat("for (id foo in [self getStuffFor:bla]) {\n" in TEST_F()
707 verifyFormat("[self aaaaa:MACRO(a, b:, c:)];"); in TEST_F()
708 verifyFormat("[self aaaaa:MACRO(a, b:c:, d:e:)];"); in TEST_F()
709 verifyFormat("[self aaaaa:MACRO(a, b:c:d:, e:f:g:)];"); in TEST_F()
710 verifyFormat("int XYMyFoo(int a, int b) NS_SWIFT_NAME(foo(self:scale:));"); in TEST_F()
711 verifyFormat("[self aaaaa:(1 + 2) bbbbb:3];"); in TEST_F()
712 verifyFormat("[self aaaaa:(Type)a bbbbb:3];"); in TEST_F()
714 verifyFormat("[self stuffWithInt:(4 + 2) float:4.5];"); in TEST_F()
715 verifyFormat("[self stuffWithInt:a ? b : c float:4.5];"); in TEST_F()
716 verifyFormat("[self stuffWithInt:a ? [self foo:bar] : c];"); in TEST_F()
717 verifyFormat("[self stuffWithInt:a ? (e ? f : g) : c];"); in TEST_F()
718 verifyFormat("[cond ? obj1 : obj2 methodWithParam:param]"); in TEST_F()
719 verifyFormat("[button setAction:@selector(zoomOut:)];"); in TEST_F()
720 verifyFormat("[color getRed:&r green:&g blue:&b alpha:&a];"); in TEST_F()
722 verifyFormat("arr[[self indexForFoo:a]];"); in TEST_F()
723 verifyFormat("throw [self errorFor:a];"); in TEST_F()
724 verifyFormat("@throw [self errorFor:a];"); in TEST_F()
726 verifyFormat("[(id)foo bar:(id)baz quux:(id)snorf];"); in TEST_F()
727 verifyFormat("[(id)foo bar:(id) ? baz : quux];"); in TEST_F()
728 verifyFormat("4 > 4 ? (id)a : (id)baz;"); in TEST_F()
736 verifyFormat("bool a = ([object a:42] == 0 ||\n" in TEST_F()
739 verifyFormat("bool a = ([aaaaaaaa aaaaa] == aaaaaaaaaaaaaaaaa ||\n" in TEST_F()
744 verifyFormat( in TEST_F()
751 verifyFormat( in TEST_F()
755 verifyFormat("[myObj short:arg1 // Force line break\n" in TEST_F()
759 verifyFormat( in TEST_F()
768 verifyFormat("[contentsContainer replaceSubview:[subviews objectAtIndex:0]\n" in TEST_F()
771 verifyFormat( in TEST_F()
775 verifyFormat( in TEST_F()
779 verifyFormat("[defaultCenter addObserver:self\n" in TEST_F()
783 verifyFormat("[image_rep drawInRect:drawRect\n" in TEST_F()
789 verifyFormat("[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n" in TEST_F()
791 verifyFormat("[aaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaa)\n" in TEST_F()
793 verifyFormat("[aaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaa[aaaaaaaaaaaaaaaaaaaaa]\n" in TEST_F()
796 verifyFormat( in TEST_F()
800 verifyFormat("[self aaaaaa:bbbbbbbbbbbbb\n" in TEST_F()
804 verifyFormat("[self param:function( //\n" in TEST_F()
806 verifyFormat( in TEST_F()
812 verifyFormat( in TEST_F()
814 verifyFormat( in TEST_F()
819 verifyFormat("[self // break\n" in TEST_F()
824 verifyFormat("[I drawRectOn:surface ofSize:aa:bbb atOrigin:cc:dd];"); in TEST_F()
825 verifyFormat("[I drawRectOn:surface //\n" in TEST_F()
830 verifyFormat("[object justBlock:^{\n" in TEST_F()
833 verifyFormat("[object\n" in TEST_F()
839 verifyFormat("[object\n" in TEST_F()
846 verifyFormat("[object\n" in TEST_F()
853 verifyFormat("[object\n" in TEST_F()
863 verifyFormat("[((Foo *)foo) bar];"); in TEST_F()
864 verifyFormat("[((Foo *)foo) bar:1 blech:2];"); in TEST_F()
867 verifyFormat("aaaaa = [a aa:aa\n" in TEST_F()
869 verifyFormat("aaaaaa = [aa aa:aa\n" in TEST_F()
874 verifyFormat("[[object block:^{\n" in TEST_F()
878 verifyFormat("[[object block:^{\n" in TEST_F()
882 verifyFormat("[[object block:^{\n" in TEST_F()
888 verifyFormat("[[obj a:42\n" in TEST_F()
895 verifyFormat("[[obj a:42] a:42\n" in TEST_F()
897 verifyFormat("[[obj a:42] a:42\n" in TEST_F()
900 verifyFormat("[[obj aaaaaa:42\n" in TEST_F()
907 verifyFormat("fooooooo =\n" in TEST_F()
910 verifyFormat("[[[obj foo] bar] aa:42\n" in TEST_F()
916 verifyFormat("if (a012345678901234567890123 &&\n" in TEST_F()
919 verifyFormat("if (a012345678901234567890123 &&\n" in TEST_F()
922 verifyFormat("if (a012345678901234567890123 &&\n" in TEST_F()
927 verifyFormat( in TEST_F()
938 verifyFormat("[call aaaaaaaa.aaaaaa.aaaaaaaa.aaaaaaaa.aaaaaaaa.aaaaaaaa\n" in TEST_F()
941 verifyFormat( in TEST_F()
948 verifyFormat( in TEST_F()
963 verifyFormat("[self performSelectorOnMainThread:@selector(loadAccessories)\n" in TEST_F()
966 verifyFormat("[self performSelector:@selector(loadAccessories)\n" in TEST_F()
969 verifyFormat( in TEST_F()
974 verifyFormat( in TEST_F()
982 verifyFormat( in TEST_F()
995 verifyFormat("@autoreleasepool"); in TEST_F()
996 verifyFormat("@catch"); in TEST_F()
997 verifyFormat("@class"); in TEST_F()
998 verifyFormat("@compatibility_alias"); in TEST_F()
999 verifyFormat("@defs"); in TEST_F()
1000 verifyFormat("@dynamic"); in TEST_F()
1001 verifyFormat("@encode"); in TEST_F()
1002 verifyFormat("@end"); in TEST_F()
1003 verifyFormat("@finally"); in TEST_F()
1004 verifyFormat("@implementation"); in TEST_F()
1005 verifyFormat("@import"); in TEST_F()
1006 verifyFormat("@interface"); in TEST_F()
1007 verifyFormat("@optional"); in TEST_F()
1008 verifyFormat("@package"); in TEST_F()
1009 verifyFormat("@private"); in TEST_F()
1010 verifyFormat("@property"); in TEST_F()
1011 verifyFormat("@protected"); in TEST_F()
1012 verifyFormat("@protocol"); in TEST_F()
1013 verifyFormat("@public"); in TEST_F()
1014 verifyFormat("@required"); in TEST_F()
1015 verifyFormat("@selector"); in TEST_F()
1016 verifyFormat("@synchronized"); in TEST_F()
1017 verifyFormat("@synthesize"); in TEST_F()
1018 verifyFormat("@throw"); in TEST_F()
1019 verifyFormat("@try"); in TEST_F()
1025 verifyFormat("@ /*foo*/ interface"); in TEST_F()
1029 verifyFormat("void DoStuffWithBlockType(int (^)(char));"); in TEST_F()
1030 verifyFormat("int (^foo)(char, float);"); in TEST_F()
1031 verifyFormat("int (^foo[10])(char, float);"); in TEST_F()
1032 verifyFormat("int (^foo[kNumEntries])(char, float);"); in TEST_F()
1033 verifyFormat("int (^foo[kNumEntries + 10])(char, float);"); in TEST_F()
1034 verifyFormat("int (^foo[(kNumEntries + 10)])(char, float);"); in TEST_F()
1038 verifyFormat("@autoreleasepool {\n" in TEST_F()
1041 verifyFormat("@class Foo, Bar;"); in TEST_F()
1042 verifyFormat("@compatibility_alias AliasName ExistingClass;"); in TEST_F()
1043 verifyFormat("@dynamic textColor;"); in TEST_F()
1044 verifyFormat("char *buf1 = @encode(int *);"); in TEST_F()
1045 verifyFormat("char *buf1 = @encode(typeof(4 * 5));"); in TEST_F()
1046 verifyFormat("char *buf1 = @encode(int **);"); in TEST_F()
1047 verifyFormat("Protocol *proto = @protocol(p1);"); in TEST_F()
1048 verifyFormat("SEL s = @selector(foo:);"); in TEST_F()
1049 verifyFormat("@synchronized(self) {\n" in TEST_F()
1053 verifyFormat("@import foo.bar;\n" in TEST_F()
1056 verifyFormat("@synthesize dropArrowPosition = dropArrowPosition_;"); in TEST_F()
1058 verifyFormat("@property(assign, nonatomic) CGFloat hoverAlpha;"); in TEST_F()
1059 verifyFormat("@property(assign, getter=isEditable) BOOL editable;"); in TEST_F()
1061 verifyFormat("extern UIWindow *MainWindow(void) " in TEST_F()
1064 verifyFormat("extern UIWindow *MainWindow(void) " in TEST_F()
1068 verifyFormat("@interface Foo\n" in TEST_F()
1076 verifyFormat("@property (assign, getter=isEditable) BOOL editable;"); in TEST_F()
1077 verifyFormat("@property BOOL editable;"); in TEST_F()
1080 verifyFormat("@property (assign, getter=isEditable) BOOL editable;"); in TEST_F()
1081 verifyFormat("@property BOOL editable;"); in TEST_F()
1084 verifyFormat("@synthesize dropArrowPosition = dropArrowPosition_;"); in TEST_F()
1085 verifyFormat("@property(assign, getter=isEditable) BOOL editable;"); in TEST_F()
1089 verifyFormat("- (void)test {\n" in TEST_F()
1094 verifyFormat("- (void)test {\n" in TEST_F()
1099 verifyFormat("for (Foo *x in bar) {\n}"); in TEST_F()
1100 verifyFormat("for (Foo *x in [bar baz]) {\n}"); in TEST_F()
1101 verifyFormat("for (Foo *x in [bar baz:blech]) {\n}"); in TEST_F()
1102 verifyFormat("for (Foo *x in [bar baz:blech, 1, 2, 3, 0]) {\n}"); in TEST_F()
1103 verifyFormat("for (Foo *x in [bar baz:^{\n" in TEST_F()
1109 verifyFormat("+ (instancetype)new {\n" in TEST_F()
1112 verifyFormat("+ (instancetype)myNew {\n" in TEST_F()
1115 verifyFormat("SEL NewSelector(void) { return @selector(new); }\n"); in TEST_F()
1116 verifyFormat("SEL MacroSelector(void) { return MACRO(new); }\n"); in TEST_F()
1117 verifyFormat("+ (instancetype)delete {\n" in TEST_F()
1120 verifyFormat("+ (instancetype)myDelete {\n" in TEST_F()
1123 verifyFormat("SEL DeleteSelector(void) { return @selector(delete); }\n"); in TEST_F()
1124 verifyFormat("SEL MacroSelector(void) { return MACRO(delete); }\n"); in TEST_F()
1125 verifyFormat("MACRO(new:)\n"); in TEST_F()
1126 verifyFormat("MACRO(delete:)\n"); in TEST_F()
1127 verifyFormat("foo = @{MACRO(new:) : MACRO(delete:)}\n"); in TEST_F()
1128 verifyFormat("@implementation Foo\n" in TEST_F()
1135 verifyFormat("@implementation Foo\n" in TEST_F()
1141 verifyFormat("@implementation Foo\n" in TEST_F()
1147 verifyFormat("@implementation Foo\n" in TEST_F()
1153 verifyFormat("@implementation Foo\n" in TEST_F()
1160 verifyFormat("@interface Foo\n" in TEST_F()
1165 verifyFormat("@interface Foo\n" in TEST_F()
1169 verifyFormat("@interface Foo\n" in TEST_F()
1173 verifyFormat("@interface Foo\n" in TEST_F()
1177 verifyFormat("@interface Foo\n" in TEST_F()
1184 verifyFormat("@\"String\""); in TEST_F()
1185 verifyFormat("@1"); in TEST_F()
1186 verifyFormat("@+4.8"); in TEST_F()
1187 verifyFormat("@-4"); in TEST_F()
1188 verifyFormat("@1LL"); in TEST_F()
1189 verifyFormat("@.5"); in TEST_F()
1190 verifyFormat("@'c'"); in TEST_F()
1191 verifyFormat("@true"); in TEST_F()
1193 verifyFormat("NSNumber *smallestInt = @(-INT_MAX - 1);"); in TEST_F()
1194 verifyFormat("NSNumber *piOverTwo = @(M_PI / 2);"); in TEST_F()
1195 verifyFormat("NSNumber *favoriteColor = @(Green);"); in TEST_F()
1196 verifyFormat("NSString *path = @(getenv(\"PATH\"));"); in TEST_F()
1198 verifyFormat("[dictionary setObject:@(1) forKey:@\"number\"];"); in TEST_F()
1202 verifyFormat("@{"); in TEST_F()
1203 verifyFormat("@{}"); in TEST_F()
1204 verifyFormat("@{@\"one\" : @1}"); in TEST_F()
1205 verifyFormat("return @{@\"one\" : @1;"); in TEST_F()
1206 verifyFormat("@{@\"one\" : @1}"); in TEST_F()
1208 verifyFormat("@{@\"one\" : @{@2 : @1}}"); in TEST_F()
1209 verifyFormat("@{\n" in TEST_F()
1213 verifyFormat("@{1 > 2 ? @\"one\" : @\"two\" : 1 > 2 ? @1 : @2}"); in TEST_F()
1216 verifyFormat("NSLog(@\"%@\", @{@1 : @2, @2 : @3}[@1]);"); in TEST_F()
1217 verifyFormat( in TEST_F()
1219 verifyFormat( in TEST_F()
1222 verifyFormat("NSDictionary *d = @{\n" in TEST_F()
1227 verifyFormat( in TEST_F()
1232 verifyFormat( in TEST_F()
1239 verifyFormat("NSDictionary *d = {\n" in TEST_F()
1244 verifyFormat("NSMutableDictionary *dictionary =\n" in TEST_F()
1252 verifyFormat( in TEST_F()
1258 verifyFormat("int Foo() {\n" in TEST_F()
1261 verifyFormat("int Foo() {\n" in TEST_F()
1264 verifyFormat("int Foo() {\n" in TEST_F()
1267 verifyFormat("int Foo() {\n" in TEST_F()
1270 verifyFormat("int Foo() {\n" in TEST_F()
1274 verifyFormat("int Foo() {\n" in TEST_F()
1277 verifyFormat("int Foo() {\n" in TEST_F()
1283 verifyFormat( in TEST_F()
1292 verifyFormat("@[]"); in TEST_F()
1293 verifyFormat( in TEST_F()
1295 verifyFormat("return @[ @3, @[], @[ @4, @5 ] ];"); in TEST_F()
1296 verifyFormat("NSArray *array = @[ [foo description] ];"); in TEST_F()
1298 verifyFormat( in TEST_F()
1305 verifyFormat( in TEST_F()
1310 verifyFormat("NSArray *some_variable = @[\n" in TEST_F()
1316 verifyFormat("NSArray *array = @[\n" in TEST_F()
1322 verifyFormat("NSArray *some_variable = [\n" in TEST_F()
1328 verifyFormat( in TEST_F()
1333 verifyFormat("[someFunction someLooooooooooooongParameter:@[\n" in TEST_F()
1337 verifyFormat("int Foo() {\n" in TEST_F()
1340 verifyFormat("int Foo() {\n" in TEST_F()
1344 verifyFormat("int Foo() {\n" in TEST_F()
1347 verifyFormat("int Foo() {\n" in TEST_F()
1354 verifyFormat("NSArray *foo = @[\n" in TEST_F()
1363 verifyFormat("int f(int a) {\n" in TEST_F()
1373 verifyFormat("aaaa = @\"bbbb\"\n" in TEST_F()
1375 verifyFormat("aaaa(@\"bbbb\"\n" in TEST_F()
1377 verifyFormat("aaaa(qqq, @\"bbbb\"\n" in TEST_F()
1379 verifyFormat("[aaaa qqqq:@\"bbbb\"\n" in TEST_F()
1381 verifyFormat("aaaa = [aaaa qqqq:@\"bbbb\"\n" in TEST_F()
1383 verifyFormat("[aaaa qqqq:@\"bbbb\"\n" in TEST_F()
1391 verifyFormat("x = ([a foo:bar] && b->c == 'd');"); in TEST_F()
1392 verifyFormat("x = ([a foo:bar] + b->c == 'd');"); in TEST_F()
1393 verifyFormat("x = ([a foo:bar] + !b->c == 'd');"); in TEST_F()
1394 verifyFormat("x = ([a foo:bar] + ~b->c == 'd');"); in TEST_F()
1395 verifyFormat("x = ([a foo:bar] - b->c == 'd');"); in TEST_F()
1396 verifyFormat("x = ([a foo:bar] / b->c == 'd');"); in TEST_F()
1397 verifyFormat("x = ([a foo:bar] % b->c == 'd');"); in TEST_F()
1398 verifyFormat("x = ([a foo:bar] | b->c == 'd');"); in TEST_F()
1399 verifyFormat("x = ([a foo:bar] || b->c == 'd');"); in TEST_F()
1400 verifyFormat("x = ([a foo:bar] && b->c == 'd');"); in TEST_F()
1401 verifyFormat("x = ([a foo:bar] == b->c == 'd');"); in TEST_F()
1402 verifyFormat("x = ([a foo:bar] != b->c == 'd');"); in TEST_F()
1403 verifyFormat("x = ([a foo:bar] <= b->c == 'd');"); in TEST_F()
1404 verifyFormat("x = ([a foo:bar] >= b->c == 'd');"); in TEST_F()
1405 verifyFormat("x = ([a foo:bar] << b->c == 'd');"); in TEST_F()
1406 verifyFormat("x = ([a foo:bar] ? b->c == 'd' : 'e');"); in TEST_F()
1419 verifyFormat("int f() {\n" in TEST_F()
1423 verifyFormat("int f() {\n" in TEST_F()
1427 verifyFormat("int f() {\n" in TEST_F()
1431 verifyFormat("int f() {\n" in TEST_F()
1435 verifyFormat( in TEST_F()
1447 verifyFormat("[self.test1 t:self callback:^(typeof(self) self, NSNumber *u, " in TEST_F()
1452 verifyFormat("[self.test1 t:self w:self callback:^(typeof(self) self, " in TEST_F()
1457 verifyFormat("[self.test1 t:self w:self callback:^(typeof(self) self, " in TEST_F()
1464 verifyFormat("[self.test1 t:self w:self callback:^(typeof(self) self, " in TEST_F()
1470 verifyFormat( in TEST_F()
1476 verifyFormat("[self block:^(void) {\n" in TEST_F()
1488 verifyFormat("[[SessionService sharedService] " in TEST_F()
1496 verifyFormat("[controller test:^{\n" in TEST_F()
1501 verifyFormat( in TEST_F()
1513 verifyFormat("if (argc < 5) [obj func:arg];"); in TEST_F()
1514 verifyFormat("if (argc < 5) [[obj1 method1:arg1] method2:arg2];"); in TEST_F()
1515 verifyFormat("if (argc < 5) [[foo bar] baz:i[0]];"); in TEST_F()
1516 verifyFormat("if (argc < 5) [[foo bar] baz:i[0]][1];"); in TEST_F()
1518 verifyFormat("if (argc < 5)\n" in TEST_F()
1523 verifyFormat("if (argc < 5) [[unlikely]]\n" in TEST_F()
1530 verifyFormat("__attribute__((objc_subclassing_restricted))\n" in TEST_F()
1533 verifyFormat("__attribute__((objc_subclassing_restricted))\n" in TEST_F()
1536 verifyFormat("__attribute__((objc_subclassing_restricted))\n" in TEST_F()