[cfe-commits] r171883 - /cfe/trunk/unittests/Format/FormatTest.cpp

Nico Weber nicolasweber at gmx.de
Tue Jan 8 11:15:24 PST 2013


Author: nico
Date: Tue Jan  8 13:15:23 2013
New Revision: 171883

URL: http://llvm.org/viewvc/llvm-project?rev=171883&view=rev
Log:
Formatter: More ObjC tests.

Modified:
    cfe/trunk/unittests/Format/FormatTest.cpp

Modified: cfe/trunk/unittests/Format/FormatTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/FormatTest.cpp?rev=171883&r1=171882&r2=171883&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Tue Jan  8 13:15:23 2013
@@ -1144,10 +1144,17 @@
   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;");





More information about the cfe-commits mailing list