diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-19 22:04:44 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-19 22:04:44 +0000 |
commit | c137ec8b7057f57f3d22208a8a00cff551c83b88 (patch) | |
tree | 2b2ed6c57030580480c7ed62a9918428215cdec2 /clang/test/Index/comment-to-html-xml-conversion.cpp | |
parent | e7b154bcf8e68567fba1c8360ac536b11c777fed (diff) | |
download | llvm-c137ec8b7057f57f3d22208a8a00cff551c83b88.zip llvm-c137ec8b7057f57f3d22208a8a00cff551c83b88.tar.gz llvm-c137ec8b7057f57f3d22208a8a00cff551c83b88.tar.bz2 |
Comment parsing: add more tests for html character references
llvm-svn: 172923
Diffstat (limited to 'clang/test/Index/comment-to-html-xml-conversion.cpp')
-rw-r--r-- | clang/test/Index/comment-to-html-xml-conversion.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/clang/test/Index/comment-to-html-xml-conversion.cpp b/clang/test/Index/comment-to-html-xml-conversion.cpp index c90470a..f2313a4 100644 --- a/clang/test/Index/comment-to-html-xml-conversion.cpp +++ b/clang/test/Index/comment-to-html-xml-conversion.cpp @@ -556,10 +556,10 @@ void comment_to_html_conversion_31(); // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace) // CHECK-NEXT: (CXComment_Text Text=[::])))] -/// & < > " +/// & < > " ' meow meow void comment_to_html_conversion_32(); -// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_32:{{.*}} FullCommentAsHTML=[<p class="para-brief"> & < > "</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_32</Name><USR>c:@F@comment_to_html_conversion_32#</USR><Declaration>void comment_to_html_conversion_32()</Declaration><Abstract><Para> & < > "</Para></Abstract></Function>] +// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_32:{{.*}} FullCommentAsHTML=[<p class="para-brief"> & < > "</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_32</Name><USR>c:@F@comment_to_html_conversion_32#</USR><Declaration>void comment_to_html_conversion_32()</Declaration><Abstract><Para> & < > " ' meow meow</Para></Abstract></Function>] // CHECK-NEXT: CommentAST=[ // CHECK-NEXT: (CXComment_FullComment // CHECK-NEXT: (CXComment_Paragraph @@ -570,7 +570,19 @@ void comment_to_html_conversion_32(); // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace) // CHECK-NEXT: (CXComment_Text Text=[>]) // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace) -// CHECK-NEXT: (CXComment_Text Text=["])))] +// CHECK-NEXT: (CXComment_Text Text=["]) +// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace) +// CHECK-NEXT: (CXComment_Text Text=[']) +// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace) +// CHECK-NEXT: (CXComment_Text Text=[m]) +// CHECK-NEXT: (CXComment_Text Text=[e]) +// CHECK-NEXT: (CXComment_Text Text=[o]) +// CHECK-NEXT: (CXComment_Text Text=[w]) +// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace) +// CHECK-NEXT: (CXComment_Text Text=[m]) +// CHECK-NEXT: (CXComment_Text Text=[e]) +// CHECK-NEXT: (CXComment_Text Text=[o]) +// CHECK-NEXT: (CXComment_Text Text=[w])))] /// <em>0<i</em> void comment_to_html_conversion_33(); |