r184796 - Formatter/Objc: Add a test that checks that @import is formatted correctly.
Nico Weber
nicolasweber at gmx.de
Mon Jun 24 17:25:41 PDT 2013
Author: nico
Date: Mon Jun 24 19:25:40 2013
New Revision: 184796
URL: http://llvm.org/viewvc/llvm-project?rev=184796&view=rev
Log:
Formatter/Objc: Add a test that checks that @import is formatted correctly.
Modified:
cfe/trunk/unittests/Format/FormatTest.cpp
Modified: cfe/trunk/unittests/Format/FormatTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/FormatTest.cpp?rev=184796&r1=184795&r2=184796&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Mon Jun 24 19:25:40 2013
@@ -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) {
More information about the cfe-commits
mailing list