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

Nico Weber nicolasweber at gmx.de
Mon Jan 7 08:07:07 PST 2013


Author: nico
Date: Mon Jan  7 10:07:07 2013
New Revision: 171752

URL: http://llvm.org/viewvc/llvm-project?rev=171752&view=rev
Log:
Test all @keywords. Turns out some of them are not formatted correctly yet.

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=171752&r1=171751&r2=171752&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Mon Jan  7 10:07:07 2013
@@ -1022,8 +1022,33 @@
 }
 
 TEST_F(FormatTest, ObjCAt) {
-  verifyFormat("@interface");
+  // FIXME: Make the uncommented lines pass.
+  verifyFormat("@autoreleasepool");
+  //verifyFormat("@catch");
+  //verifyFormat("@class");
+  verifyFormat("@compatibility_alias");
+  verifyFormat("@defs");
   verifyFormat("@dynamic");
+  verifyFormat("@encode");
+  verifyFormat("@end");
+  verifyFormat("@finally");
+  verifyFormat("@implementation");
+  verifyFormat("@import");
+  verifyFormat("@interface");
+  verifyFormat("@optional");
+  verifyFormat("@package");
+  //verifyFormat("@private");
+  verifyFormat("@property");
+  //verifyFormat("@protected");
+  verifyFormat("@protocol");
+  //verifyFormat("@public");
+  verifyFormat("@required");
+  verifyFormat("@selector");
+  verifyFormat("@synchronized");
+  verifyFormat("@synthesize");
+  //verifyFormat("@throw");
+  //verifyFormat("@try");
+
   EXPECT_EQ("@interface", format("@ interface"));
 
   // The precise formatting of this doesn't matter, nobody writes code like





More information about the cfe-commits mailing list