diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2014-04-22 12:34:52 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2014-04-22 12:34:52 +0000 |
commit | 6db07e2ab71ea1d15ce2f5338da6ccc4b29293c4 (patch) | |
tree | 05053213c4197cf955998993aa98dd1d4ce6de97 /clang/test/Index/comment-to-html-xml-conversion.cpp | |
parent | 64f6ebb8a957d14b6113843968f9541bab826f18 (diff) | |
download | bcm5719-llvm-6db07e2ab71ea1d15ce2f5338da6ccc4b29293c4.tar.gz bcm5719-llvm-6db07e2ab71ea1d15ce2f5338da6ccc4b29293c4.zip |
Comment parsing: close a hole in CDATA escaping in XML output
llvm-svn: 206886
Diffstat (limited to 'clang/test/Index/comment-to-html-xml-conversion.cpp')
-rw-r--r-- | clang/test/Index/comment-to-html-xml-conversion.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Index/comment-to-html-xml-conversion.cpp b/clang/test/Index/comment-to-html-xml-conversion.cpp index 590e1871974..f93126b1e55 100644 --- a/clang/test/Index/comment-to-html-xml-conversion.cpp +++ b/clang/test/Index/comment-to-html-xml-conversion.cpp @@ -721,6 +721,18 @@ void comment_to_html_conversion_35(); // CHECK-NEXT: (CXComment_Text Text=[Γ]) // CHECK-NEXT: (CXComment_Text Text=[ Greek letter Gamma Γ.])))] +/// <h1 id="]]>">Aaa</h1> +void comment_to_html_conversion_36(); + +// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_36:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <h1 id="]]>">Aaa</h1></p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_36</Name><USR>c:@F@comment_to_html_conversion_36#</USR><Declaration>void comment_to_html_conversion_36()</Declaration><Abstract><Para> <rawHTML isSafeToPassThrough="1"><![CDATA[<h1 id="]]]]><![CDATA[>">]]></rawHTML>Aaa<rawHTML isSafeToPassThrough="1"></h1></rawHTML></Para></Abstract></Function>] +// CHECK-NEXT: CommentAST=[ +// CHECK-NEXT: (CXComment_FullComment +// CHECK-NEXT: (CXComment_Paragraph +// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace) +// CHECK-NEXT: (CXComment_HTMLStartTag Name=[h1] Attrs: id=]]>) +// CHECK-NEXT: (CXComment_Text Text=[Aaa]) +// CHECK-NEXT: (CXComment_HTMLEndTag Name=[h1])))] + /// Aaa. class comment_to_xml_conversion_01 { |