summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/comment-cplus-template-decls.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-01-10 13:24:24 +0000
committerManuel Klimek <klimek@google.com>2013-01-10 13:24:24 +0000
commite7d10a1f5058fab3b0cca5453dfb4838922edd37 (patch)
tree6278cff69b1f77472f1b135163918deb6770395c /clang/test/Index/comment-cplus-template-decls.cpp
parent494394d817b89050619c50bc58b282813e7a63bc (diff)
downloadbcm5719-llvm-e7d10a1f5058fab3b0cca5453dfb4838922edd37.tar.gz
bcm5719-llvm-e7d10a1f5058fab3b0cca5453dfb4838922edd37.zip
Do not add newline in empty blocks.
void f() {} now gets formatted in one line. llvm-svn: 172067
Diffstat (limited to 'clang/test/Index/comment-cplus-template-decls.cpp')
-rw-r--r--clang/test/Index/comment-cplus-template-decls.cpp8
1 files changed, 4 insertions, 4 deletions
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<typename T> struct A {
*/
void f() { }
};
-// CHECK: <Declaration>template &lt;typename T&gt; struct A {\n}</Declaration>
+// CHECK: <Declaration>template &lt;typename T&gt; struct A {}</Declaration>
// CHECK: <Declaration>A&lt;T&gt;()</Declaration>
// CHECK: <Declaration>void ~A&lt;T&gt;()</Declaration>
@@ -40,7 +40,7 @@ template <typename T> struct D : A<T> {
void f();
};
-// CHECK: <Declaration>template &lt;typename T&gt; struct D : A&lt;T&gt; {\n}</Declaration>
+// CHECK: <Declaration>template &lt;typename T&gt; struct D : A&lt;T&gt; {}</Declaration>
// CHECK: <Declaration>using A&lt;T&gt;::f</Declaration>
struct Base {
@@ -55,7 +55,7 @@ template<typename T> struct E : Base {
*/
using Base::foo;
};
-// CHECK: <Declaration>template &lt;typename T&gt; struct E : Base {\n}</Declaration>
+// CHECK: <Declaration>template &lt;typename T&gt; 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 &lt;template &lt;template &lt;typename CCC&gt; class DDD, class BBB&gt; class AAA&gt; void func_template_2()</Declaration>
+// FIXME: There is not Declaration field in the generated output.
OpenPOWER on IntegriCloud