aboutsummaryrefslogtreecommitdiff
path: root/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-01-08 19:15:23 +0000
committerNico Weber <nicolasweber@gmx.de>2013-01-08 19:15:23 +0000
commitc31689a4aa1e1a534482349fabaebedaae2ea17d (patch)
treeae4a209fc4116fe20e83f8eff1d59ef005b57ace /unittests/Format/FormatTest.cpp
parentd1d9df688baf384f1ca1220e51104c3b30d6a81a (diff)
Formatter: More ObjC tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r--unittests/Format/FormatTest.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp
index a16e449361..2bd094bb83 100644
--- a/unittests/Format/FormatTest.cpp
+++ b/unittests/Format/FormatTest.cpp
@@ -1144,10 +1144,17 @@ TEST_F(FormatTest, ObjCAt) {
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;");