From: Nico Weber Date: Tue, 8 Jan 2013 20:16:23 +0000 (+0000) Subject: Formatter: More tests for already-passing ObjC bits. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a2673e2e93376da249fae8b4aa805a6118ddd4e;p=clang Formatter: More tests for already-passing ObjC bits. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171892 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 339be71530..d280f1dc6c 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -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.