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

unittests/Format/FormatTest.cpp

index 339be71530d084e13bf6882c4c19df113b292088..d280f1dc6cb7d284739b3e81a3a0deeba673c1d1 100644 (file)
@@ -1170,7 +1170,11 @@ TEST_F(FormatTest, ObjCSnippets) {
   verifyFormat("@compatibility_alias AliasName ExistingClass;");
   verifyFormat("@dynamic textColor;");
   //verifyFormat("char *buf1 = @encode(int **);");
+  verifyFormat("Protocol *proto = @protocol(p1);");
   //verifyFormat("SEL s = @selector(foo:);");
+  verifyFormat("@synchronized(self) {\n"
+               "  f();\n"
+               "}");
   verifyFormat("@synthesize dropArrowPosition = dropArrowPosition_;");
 
   // FIXME: "getter=bar" should not be surround by spaces in @property.