summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-01-08 20:16:23 +0000
committerNico Weber <nicolasweber@gmx.de>2013-01-08 20:16:23 +0000
commit4cc9874ff93b3da7236e16803ab4a1c628f23f7b (patch)
treed62f8fdad567e2ca38c016f1dfc9bcbf655720ae
parentefe76bc821e7314c5a725e936ba76d95d7450916 (diff)
downloadbcm5719-llvm-4cc9874ff93b3da7236e16803ab4a1c628f23f7b.tar.gz
bcm5719-llvm-4cc9874ff93b3da7236e16803ab4a1c628f23f7b.zip
Formatter: More tests for already-passing ObjC bits.
llvm-svn: 171892
-rw-r--r--clang/unittests/Format/FormatTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 339be71530d..d280f1dc6cb 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud