From 2e72dd4a43c2f9d88e8210eb2ce9dbe7c8519c72 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Fri, 1 Feb 2013 20:23:57 +0000 Subject: Comment parsing: improve the fidelity of XML output for many block commands This change introduces a 'kind' attribute for the tag, that captures the kind of the parent block command. For example: \todo Meow. used to be just Meow., but now it is Meow. llvm-svn: 174216 --- .../test/Index/comment-to-html-xml-conversion.cpp | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'clang/test/Index/comment-to-html-xml-conversion.cpp') diff --git a/clang/test/Index/comment-to-html-xml-conversion.cpp b/clang/test/Index/comment-to-html-xml-conversion.cpp index da225ba..b33fa4a 100644 --- a/clang/test/Index/comment-to-html-xml-conversion.cpp +++ b/clang/test/Index/comment-to-html-xml-conversion.cpp @@ -766,5 +766,31 @@ enum class comment_to_xml_conversion_17 { // CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:3: EnumConstantDecl=comment_to_xml_conversion_18:{{.*}} FullCommentAsXML=[comment_to_xml_conversion_18c:@E@comment_to_xml_conversion_17@comment_to_xml_conversion_18comment_to_xml_conversion_18 Aaa.] }; +/// Aaa. +/// \todo Bbb. +void comment_to_xml_conversion_todo_1(); +// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_todo_1:{{.*}} FullCommentAsXML=[comment_to_xml_conversion_todo_1c:@F@comment_to_xml_conversion_todo_1#void comment_to_xml_conversion_todo_1() Aaa. Bbb.] + +/// Aaa. +/// \todo Bbb. +/// +/// Ccc. +void comment_to_xml_conversion_todo_2(); +// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_todo_2:{{.*}} FullCommentAsXML=[comment_to_xml_conversion_todo_2c:@F@comment_to_xml_conversion_todo_2#void comment_to_xml_conversion_todo_2() Aaa. Bbb. Ccc.] + +/// Aaa. +/// \todo Bbb. +/// +/// Ccc. +/// \todo Ddd. +void comment_to_xml_conversion_todo_3(); +// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_todo_3:{{.*}} FullCommentAsXML=[comment_to_xml_conversion_todo_3c:@F@comment_to_xml_conversion_todo_3#void comment_to_xml_conversion_todo_3() Aaa. Bbb. Ccc. Ddd.] + +/// Aaa. +/// \todo Bbb. +/// \todo Ccc. +void comment_to_xml_conversion_todo_4(); +// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_todo_4:{{.*}} FullCommentAsXML=[comment_to_xml_conversion_todo_4c:@F@comment_to_xml_conversion_todo_4#void comment_to_xml_conversion_todo_4() Aaa. Bbb. Ccc.] + #endif -- cgit v1.1