Skip to content

Commit 2b772c1

Browse files
committedJun 22, 2018
[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 llvm-svn: 335338
1 parent c9c0ccc commit 2b772c1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

Diff for: ‎clang/unittests/Format/FormatTestObjC.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,15 @@ TEST_F(FormatTestObjC, AlwaysBreakBeforeMultilineStrings) {
12271227
" @\"cccc\");");
12281228
verifyFormat("aaaa(qqq, @\"bbbb\"\n"
12291229
" @\"cccc\");");
1230+
verifyFormat("[aaaa qqqq:@\"bbbb\"\n"
1231+
" @\"cccc\"];");
1232+
verifyFormat("aaaa = [aaaa qqqq:@\"bbbb\"\n"
1233+
" @\"cccc\"];");
1234+
verifyFormat("[aaaa qqqq:@\"bbbb\"\n"
1235+
" @\"cccc\"\n"
1236+
" rr:42\n"
1237+
" ssssss:@\"ee\"\n"
1238+
" @\"fffff\"];");
12301239
}
12311240

12321241
} // end namespace

0 commit comments

Comments
 (0)