r335338 - [clang-format] Add AlwaysBreakBeforeMultilineString tests
Jacek Olesiak via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 22 04:57:55 PDT 2018
Author: jolesiak
Date: Fri Jun 22 04:57:55 2018
New Revision: 335338
URL: http://llvm.org/viewvc/llvm-project?rev=335338&view=rev
Log:
[clang-format] Add AlwaysBreakBeforeMultilineString tests
Summary: Followup to D47393.
Reviewers: stephanemoore
Reviewed By: stephanemoore
Subscribers: benhamilton, cfe-commits
Differential Revision: https://reviews.llvm.org/D48432
Modified:
cfe/trunk/unittests/Format/FormatTestObjC.cpp
Modified: cfe/trunk/unittests/Format/FormatTestObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/FormatTestObjC.cpp?rev=335338&r1=335337&r2=335338&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTestObjC.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTestObjC.cpp Fri Jun 22 04:57:55 2018
@@ -1227,6 +1227,15 @@ TEST_F(FormatTestObjC, AlwaysBreakBefore
" @\"cccc\");");
verifyFormat("aaaa(qqq, @\"bbbb\"\n"
" @\"cccc\");");
+ verifyFormat("[aaaa qqqq:@\"bbbb\"\n"
+ " @\"cccc\"];");
+ verifyFormat("aaaa = [aaaa qqqq:@\"bbbb\"\n"
+ " @\"cccc\"];");
+ verifyFormat("[aaaa qqqq:@\"bbbb\"\n"
+ " @\"cccc\"\n"
+ " rr:42\n"
+ " ssssss:@\"ee\"\n"
+ " @\"fffff\"];");
}
} // end namespace
More information about the cfe-commits
mailing list