From: Nico Weber Date: Tue, 25 Jun 2013 00:25:40 +0000 (+0000) Subject: Formatter/Objc: Add a test that checks that @import is formatted correctly. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10fc2c66ca3a383dfec903c39ba88c16e04f3c87;p=clang Formatter/Objc: Add a test that checks that @import is formatted correctly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184796 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 5f78e08af9..839d9ec0be 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -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) {