From 298c3403d2286eea19d5c5f7b0a283856443f98a Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Fri, 22 Nov 2013 07:48:15 +0000 Subject: clang-format: Fix bug in alignment of complex template parameters. Before: template class cccccccccccccccccccccc, typename ddddddddddddd> class C {}; After: template class cccccccccccccccccccccc, typename ddddddddddddd> class C {}; llvm-svn: 195418 --- clang/unittests/Format/FormatTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/unittests/Format/FormatTest.cpp') diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index b0b1c0f5615..5ddcc3f1316 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -3882,6 +3882,10 @@ TEST_F(FormatTest, WrapsTemplateDeclarations) { "template \n" "void f();"); + verifyFormat("template class cccccccccccccccccccccc,\n" + " typename ddddddddddddd>\n" + "class C {};"); verifyFormat( "aaaaaaaaaaaaaaaaaaaaaaaa(\n" " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);"); -- cgit v1.2.3