]> granicus.if.org Git - clang/commitdiff
Formatter/Objc: Add a test that checks that @import is formatted correctly.
authorNico Weber <nicolasweber@gmx.de>
Tue, 25 Jun 2013 00:25:40 +0000 (00:25 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 25 Jun 2013 00:25:40 +0000 (00:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184796 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Format/FormatTest.cpp

index 5f78e08af95d54a0fe1840e922905f719815d973..839d9ec0be38be6aa5f1f30378e34d85fa7afef2 100644 (file)
@@ -4419,6 +4419,9 @@ TEST_F(FormatTest, ObjCSnippets) {
   verifyFormat("@property(assign, nonatomic) CGFloat hoverAlpha;");
   verifyFormat("@property(assign, getter=isEditable) BOOL editable;");
   verifyGoogleFormat("@property(assign, getter=isEditable) BOOL editable;");
+
+  verifyFormat("@import foo.bar;\n"
+               "@import baz;");
 }
 
 TEST_F(FormatTest, ObjCLiterals) {