From a7900adf41f4fefefb71fa475e9728b3bd7a779d Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Sun, 8 May 2016 18:12:22 +0000 Subject: clang-format: Support enum type template arguments. Before: template class A { public : E *f(); }; After: template class A { public: E *f(); }; llvm-svn: 268878 --- 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 0f785705d9e..470e989262c 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -5381,6 +5381,10 @@ TEST_F(FormatTest, WrapsTemplateDeclarations) { verifyFormat("template // T can be A, B or C.\n" "struct C {};", AlwaysBreak); + verifyFormat("template class A {\n" + "public:\n" + " E *f();\n" + "};"); } TEST_F(FormatTest, WrapsAtNestedNameSpecifiers) { -- cgit v1.2.3