aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Index/comment-to-html-xml-conversion.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-01-21 16:42:44 +0000
committerManuel Klimek <klimek@google.com>2013-01-21 16:42:44 +0000
commita4fe1c13c0043f6ff5019c5f04b4e8db85178d28 (patch)
tree508db1eacd5426598c180c1f9850a77d49e7dcdd /clang/test/Index/comment-to-html-xml-conversion.cpp
parentfe732d538fdca72728b809d8c943d1e411d81405 (diff)
downloadllvm-a4fe1c13c0043f6ff5019c5f04b4e8db85178d28.zip
llvm-a4fe1c13c0043f6ff5019c5f04b4e8db85178d28.tar.gz
llvm-a4fe1c13c0043f6ff5019c5f04b4e8db85178d28.tar.bz2
Fixes formatting of empty blocks.
We now only put empty blocks into a single line, if all of: - all tokens of the structural element fit into a single line - we're not in a control flow statement Note that we usually don't put record definitions into a single line, as there's usually at least one more token (the semicolon) after the closing brace. This doesn't hold when we are in a context where there is no semicolon, like "enum E {}". There were some missing tests around joining lines around the corner cases of the allowed number of columns, so this patch adds some. llvm-svn: 173055
Diffstat (limited to 'clang/test/Index/comment-to-html-xml-conversion.cpp')
-rw-r--r--clang/test/Index/comment-to-html-xml-conversion.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Index/comment-to-html-xml-conversion.cpp b/clang/test/Index/comment-to-html-xml-conversion.cpp
index c1ec08e..0577eb0 100644
--- a/clang/test/Index/comment-to-html-xml-conversion.cpp
+++ b/clang/test/Index/comment-to-html-xml-conversion.cpp
@@ -713,7 +713,7 @@ namespace comment_to_xml_conversion_13 {
/// Aaa.
enum comment_to_xml_conversion_15 {
-// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: EnumDecl=comment_to_xml_conversion_15:{{.*}} FullCommentAsXML=[<Enum file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_15</Name><USR>c:@E@comment_to_xml_conversion_15</USR><Declaration>enum comment_to_xml_conversion_15{{( : int)?}} {\n}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Enum>]
+// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: EnumDecl=comment_to_xml_conversion_15:{{.*}} FullCommentAsXML=[<Enum file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_15</Name><USR>c:@E@comment_to_xml_conversion_15</USR><Declaration>enum comment_to_xml_conversion_15{{( : int)?}} {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Enum>]
/// Aaa.
comment_to_xml_conversion_16
@@ -722,7 +722,7 @@ enum comment_to_xml_conversion_15 {
/// Aaa.
enum class comment_to_xml_conversion_17 {
-// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:12: EnumDecl=comment_to_xml_conversion_17:{{.*}} FullCommentAsXML=[<Enum file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="12"><Name>comment_to_xml_conversion_17</Name><USR>c:@E@comment_to_xml_conversion_17</USR><Declaration>enum class comment_to_xml_conversion_17 : int {\n}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Enum>]
+// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:12: EnumDecl=comment_to_xml_conversion_17:{{.*}} FullCommentAsXML=[<Enum file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="12"><Name>comment_to_xml_conversion_17</Name><USR>c:@E@comment_to_xml_conversion_17</USR><Declaration>enum class comment_to_xml_conversion_17 : int {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Enum>]
/// Aaa.
comment_to_xml_conversion_18