diff options
author | Manuel Klimek <klimek@google.com> | 2013-01-10 13:24:24 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-01-10 13:24:24 +0000 |
commit | 36fab8d70eee342d66e03c9b09c029f126196103 (patch) | |
tree | 9a24e011325a032e70cce92707687997af9c147f /test/Index/comment-cplus-template-decls.cpp | |
parent | 46ef852618b18bc79e403b37a12c9b692e76126b (diff) |
Do not add newline in empty blocks.
void f() {}
now gets formatted in one line.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172067 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/comment-cplus-template-decls.cpp')
-rw-r--r-- | test/Index/comment-cplus-template-decls.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Index/comment-cplus-template-decls.cpp b/test/Index/comment-cplus-template-decls.cpp index f0900bbdee..039f092a62 100644 --- a/test/Index/comment-cplus-template-decls.cpp +++ b/test/Index/comment-cplus-template-decls.cpp @@ -25,7 +25,7 @@ template<typename T> struct A { */ void f() { } }; -// CHECK: <Declaration>template <typename T> struct A {\n}</Declaration> +// CHECK: <Declaration>template <typename T> struct A {}</Declaration> // CHECK: <Declaration>A<T>()</Declaration> // CHECK: <Declaration>void ~A<T>()</Declaration> @@ -40,7 +40,7 @@ template <typename T> struct D : A<T> { void f(); }; -// CHECK: <Declaration>template <typename T> struct D : A<T> {\n}</Declaration> +// CHECK: <Declaration>template <typename T> struct D : A<T> {}</Declaration> // CHECK: <Declaration>using A<T>::f</Declaration> struct Base { @@ -55,7 +55,7 @@ template<typename T> struct E : Base { */ using Base::foo; }; -// CHECK: <Declaration>template <typename T> struct E : Base {\n}</Declaration> +// CHECK: <Declaration>template <typename T> struct E : Base {}</Declaration> // CHECK: <Declaration>using Base::foo</Declaration> /// \tparam @@ -66,4 +66,4 @@ void func_template_1(T AAA); template<template<template<typename CCC> class DDD, class BBB> class AAA> void func_template_2(); -<Declaration>template <template <template <typename CCC> class DDD, class BBB> class AAA> void func_template_2()</Declaration> +// FIXME: There is not Declaration field in the generated output. |