]> granicus.if.org Git - clang/commitdiff
Formatter: More ObjC tests.
authorNico Weber <nicolasweber@gmx.de>
Tue, 8 Jan 2013 19:15:23 +0000 (19:15 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 8 Jan 2013 19:15:23 +0000 (19:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171883 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Format/FormatTest.cpp

index a16e4493615bdbfb1bf8bf78039fdc2ab7e3a340..2bd094bb83cedbdc97ad1817983c72a42f1c88b1 100644 (file)
@@ -1144,10 +1144,17 @@ TEST_F(FormatTest, ObjCAt) {
   verifyFormat("@ /*foo*/ interface");
 }
 
-TEST_F(FormatTest, ObjCOneLiners) {
+TEST_F(FormatTest, ObjCSnippets) {
+  // FIXME: Make the uncommented lines below pass.
+  verifyFormat("@autoreleasepool {\n"
+               "  foo();\n"
+               "}");
   verifyFormat("@class Foo, Bar;");
-  verifyFormat("@synthesize dropArrowPosition = dropArrowPosition_;");
+  verifyFormat("@compatibility_alias AliasName ExistingClass;");
   verifyFormat("@dynamic textColor;");
+  //verifyFormat("char *buf1 = @encode(int **);");
+  //verifyFormat("SEL s = @selector(foo:);");
+  verifyFormat("@synthesize dropArrowPosition = dropArrowPosition_;");
 
   // FIXME: "getter=bar" should not be surround by spaces in @property.
   verifyFormat("@property(assign, nonatomic) CGFloat hoverAlpha;");