Skip to content

Commit ed0289f

Browse files
committed
one last test
1 parent 0952882 commit ed0289f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

clang/unittests/Format/FormatTest.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11431,6 +11431,16 @@ TEST_F(FormatTest, BreakBeforeTemplateCloser) {
1143111431
" Foo, Foo>();\n"
1143211432
"}",
1143311433
Style);
11434+
// Even a single type in the middle is enough to force it to block indent
11435+
// style:
11436+
verifyFormat("void foo() {\n"
11437+
" myFunc<\n"
11438+
" Foo, Foo, Foo,\n"
11439+
" Foooooooooooooooooooooooooooooo,\n"
11440+
" Foo, Foo, Foo, Foo\n"
11441+
" >();\n"
11442+
"}",
11443+
Style);
1143411444
}
1143511445

1143611446
TEST_F(FormatTest, WrapsTemplateParameters) {

0 commit comments

Comments
 (0)