From e7d10a1f5058fab3b0cca5453dfb4838922edd37 Mon Sep 17 00:00:00 2001 From: Manuel Klimek Date: Thu, 10 Jan 2013 13:24:24 +0000 Subject: Do not add newline in empty blocks. void f() {} now gets formatted in one line. llvm-svn: 172067 --- clang/test/Index/comment-cplus-template-decls.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'clang/test/Index/comment-cplus-template-decls.cpp') diff --git a/clang/test/Index/comment-cplus-template-decls.cpp b/clang/test/Index/comment-cplus-template-decls.cpp index f0900bbdeec..039f092a628 100644 --- a/clang/test/Index/comment-cplus-template-decls.cpp +++ b/clang/test/Index/comment-cplus-template-decls.cpp @@ -25,7 +25,7 @@ template struct A { */ void f() { } }; -// CHECK: template <typename T> struct A {\n} +// CHECK: template <typename T> struct A {} // CHECK: A<T>() // CHECK: void ~A<T>() @@ -40,7 +40,7 @@ template struct D : A { void f(); }; -// CHECK: template <typename T> struct D : A<T> {\n} +// CHECK: template <typename T> struct D : A<T> {} // CHECK: using A<T>::f struct Base { @@ -55,7 +55,7 @@ template struct E : Base { */ using Base::foo; }; -// CHECK: template <typename T> struct E : Base {\n} +// CHECK: template <typename T> struct E : Base {} // CHECK: using Base::foo /// \tparam @@ -66,4 +66,4 @@ void func_template_1(T AAA); template class DDD, class BBB> class AAA> void func_template_2(); -template <template <template <typename CCC> class DDD, class BBB> class AAA> void func_template_2() +// FIXME: There is not Declaration field in the generated output. -- cgit v1.2.3