From adba2aadf29228a501988cccc67e8aeeab025087 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Mon, 18 May 2015 12:52:00 +0000 Subject: clang-format: Allow braced initializers in template arguments of class specializations. Before: template struct S < std::is_arithmetic { } > {}; After: template struct S{}> {}; llvm-svn: 237565 --- clang/unittests/Format/FormatTest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/unittests/Format/FormatTest.cpp') diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 5e69e05d4a4..f41928fe725 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -5257,6 +5257,7 @@ TEST_F(FormatTest, UnderstandsTemplateParameters) { verifyFormat("struct A::type>;"); verifyFormat("struct A::type>;"); + verifyFormat("template struct S{}> {};"); // Not template parameters. verifyFormat("return a < b && c > d;"); -- cgit v1.2.3