2012-11-16 06:03:13 +08:00
|
|
|
|
// RUN: rm -rf %t
|
|
|
|
|
// RUN: mkdir %t
|
|
|
|
|
|
2013-01-30 22:44:47 +08:00
|
|
|
|
// This file contains UTF-8 sequences. Please don't "fix" them!
|
|
|
|
|
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// Check that we serialize comment source locations properly.
|
|
|
|
|
// RUN: %clang_cc1 -x c++ -std=c++11 -emit-pch -o %t/out.pch %s
|
|
|
|
|
// RUN: %clang_cc1 -x c++ -std=c++11 -include-pch %t/out.pch -fsyntax-only %s
|
|
|
|
|
|
|
|
|
|
// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng %s -std=c++11 > %t/out.c-index-direct
|
|
|
|
|
// RUN: c-index-test -test-load-tu %t/out.pch all > %t/out.c-index-pch
|
|
|
|
|
|
|
|
|
|
// RUN: FileCheck %s -check-prefix=WRONG < %t/out.c-index-direct
|
|
|
|
|
// RUN: FileCheck %s -check-prefix=WRONG < %t/out.c-index-pch
|
|
|
|
|
|
|
|
|
|
// Ensure that XML is not invalid
|
|
|
|
|
// WRONG-NOT: CommentXMLInvalid
|
|
|
|
|
|
|
|
|
|
// RUN: FileCheck %s < %t/out.c-index-direct
|
|
|
|
|
// RUN: FileCheck %s < %t/out.c-index-pch
|
|
|
|
|
|
2013-03-27 21:05:40 +08:00
|
|
|
|
// XFAIL: msan
|
2013-01-22 11:49:16 +08:00
|
|
|
|
// XFAIL: valgrind
|
|
|
|
|
|
2012-11-16 06:03:13 +08:00
|
|
|
|
#ifndef HEADER
|
|
|
|
|
#define HEADER
|
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
//===---
|
|
|
|
|
// Tests for \brief and its aliases.
|
|
|
|
|
//===---
|
|
|
|
|
|
2012-11-16 06:03:13 +08:00
|
|
|
|
/// Aaa.
|
2013-11-20 03:18:54 +08:00
|
|
|
|
void test_cmd_brief_like_1();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 03:18:54 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_brief_like_1:{{.*}} BriefComment=[Aaa.] FullCommentAsHTML=[<p class="para-brief"> Aaa.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_brief_like_1</Name><USR>c:@F@test_cmd_brief_like_1#</USR><Declaration>void test_cmd_brief_like_1()</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.])))]
|
|
|
|
|
|
|
|
|
|
/// \brief Aaa.
|
2013-11-20 03:18:54 +08:00
|
|
|
|
void test_cmd_brief_like_2();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 03:18:54 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_brief_like_2:{{.*}} BriefComment=[Aaa.] FullCommentAsHTML=[<p class="para-brief"> Aaa.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_brief_like_2</Name><USR>c:@F@test_cmd_brief_like_2#</USR><Declaration>void test_cmd_brief_like_2()</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
|
|
|
|
|
|
|
|
|
|
/// \short Aaa.
|
2013-11-20 03:18:54 +08:00
|
|
|
|
void test_cmd_brief_like_3();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 03:18:54 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_brief_like_3:{{.*}} BriefComment=[Aaa.] FullCommentAsHTML=[<p class="para-brief"> Aaa.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_brief_like_3</Name><USR>c:@F@test_cmd_brief_like_3#</USR><Declaration>void test_cmd_brief_like_3()</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[short]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
|
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
///
|
|
|
|
|
/// \brief Bbb.
|
2013-11-20 03:18:54 +08:00
|
|
|
|
void test_cmd_brief_like_4();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 03:18:54 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_brief_like_4:{{.*}} BriefComment=[Bbb.] FullCommentAsHTML=[<p class="para-brief"> Bbb.</p><p> Aaa.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_brief_like_4</Name><USR>c:@F@test_cmd_brief_like_4#</USR><Declaration>void test_cmd_brief_like_4()</Declaration><Abstract><Para> Bbb.</Para></Abstract><Discussion><Para> Aaa.</Para></Discussion></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
|
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
///
|
|
|
|
|
/// \brief Bbb.
|
|
|
|
|
///
|
|
|
|
|
/// Ccc.
|
2013-11-20 03:18:54 +08:00
|
|
|
|
void test_cmd_brief_like_5();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 03:18:54 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_brief_like_5:{{.*}} BriefComment=[Bbb.] FullCommentAsHTML=[<p class="para-brief"> Bbb.</p><p> Aaa.</p><p> Ccc.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_brief_like_5</Name><USR>c:@F@test_cmd_brief_like_5#</USR><Declaration>void test_cmd_brief_like_5()</Declaration><Abstract><Para> Bbb.</Para></Abstract><Discussion><Para> Aaa.</Para><Para> Ccc.</Para></Discussion></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.])))
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Ccc.])))]
|
|
|
|
|
|
|
|
|
|
/// \brief Aaa.
|
|
|
|
|
/// \brief Bbb.
|
2013-11-20 03:18:54 +08:00
|
|
|
|
void test_cmd_brief_like_6();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 03:18:54 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_brief_like_6:{{.*}} BriefComment=[Bbb.] FullCommentAsHTML=[<p class="para-brief"> Aaa. </p><p class="para-brief"> Bbb.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_brief_like_6</Name><USR>c:@F@test_cmd_brief_like_6#</USR><Declaration>void test_cmd_brief_like_6()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Discussion><Para> Bbb.</Para></Discussion></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
|
|
|
|
|
|
2013-11-20 03:18:54 +08:00
|
|
|
|
/// \abstract Aaa.
|
|
|
|
|
///
|
|
|
|
|
/// Bbb.
|
|
|
|
|
void test_cmd_brief_like_7();
|
2013-11-20 03:29:32 +08:00
|
|
|
|
|
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_brief_like_7:{{.*}} BriefComment=[Aaa.] FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><p> Bbb.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_brief_like_7</Name><USR>c:@F@test_cmd_brief_like_7#</USR><Declaration>void test_cmd_brief_like_7()</Declaration><Abstract><Para> Aaa.</Para></Abstract><Discussion><Para> Bbb.</Para></Discussion></Function>]
|
2013-11-20 03:18:54 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[abstract]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.])))
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.])))]
|
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
//===---
|
|
|
|
|
// Tests for \returns and its aliases.
|
|
|
|
|
//===---
|
|
|
|
|
|
2012-11-16 06:03:13 +08:00
|
|
|
|
/// Aaa.
|
|
|
|
|
///
|
|
|
|
|
/// \return Bbb.
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_cmd_returns_like_1();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_returns_like_1:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><div class="result-discussion"><p class="para-returns"><span class="word-returns">Returns</span> Bbb.</p></div>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_returns_like_1</Name><USR>c:@F@test_cmd_returns_like_1#</USR><Declaration>void test_cmd_returns_like_1()</Declaration><Abstract><Para> Aaa.</Para></Abstract><ResultDiscussion><Para> Bbb.</Para></ResultDiscussion></Function>]
|
2013-06-22 07:49:29 +08:00
|
|
|
|
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[return]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
|
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
///
|
|
|
|
|
/// \returns Bbb.
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_cmd_returns_like_2();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_returns_like_2:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><div class="result-discussion"><p class="para-returns"><span class="word-returns">Returns</span> Bbb.</p></div>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_returns_like_2</Name><USR>c:@F@test_cmd_returns_like_2#</USR><Declaration>void test_cmd_returns_like_2()</Declaration><Abstract><Para> Aaa.</Para></Abstract><ResultDiscussion><Para> Bbb.</Para></ResultDiscussion></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
|
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
///
|
|
|
|
|
/// \result Bbb.
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_cmd_returns_like_3();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_returns_like_3:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><div class="result-discussion"><p class="para-returns"><span class="word-returns">Returns</span> Bbb.</p></div>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_returns_like_3</Name><USR>c:@F@test_cmd_returns_like_3#</USR><Declaration>void test_cmd_returns_like_3()</Declaration><Abstract><Para> Aaa.</Para></Abstract><ResultDiscussion><Para> Bbb.</Para></ResultDiscussion></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[result]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
|
|
|
|
|
|
|
|
|
|
/// \returns Aaa.
|
|
|
|
|
/// \returns Bbb.
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_cmd_returns_like_4();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_returns_like_4:{{.*}} FullCommentAsHTML=[<div class="result-discussion"><p class="para-returns"><span class="word-returns">Returns</span> Aaa. </p><p class="para-returns"><span class="word-returns">Returns</span> Bbb.</p></div>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_returns_like_4</Name><USR>c:@F@test_cmd_returns_like_4#</USR><Declaration>void test_cmd_returns_like_4()</Declaration><ResultDiscussion><Para> Aaa. </Para><Para> Bbb.</Para></ResultDiscussion></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
|
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
///
|
|
|
|
|
/// Bbb.
|
|
|
|
|
///
|
|
|
|
|
/// \returns Ccc.
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_cmd_returns_like_5();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_returns_like_5:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><p> Bbb.</p><div class="result-discussion"><p class="para-returns"><span class="word-returns">Returns</span> Ccc.</p></div>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_returns_like_5</Name><USR>c:@F@test_cmd_returns_like_5#</USR><Declaration>void test_cmd_returns_like_5()</Declaration><Abstract><Para> Aaa.</Para></Abstract><ResultDiscussion><Para> Ccc.</Para></ResultDiscussion><Discussion><Para> Bbb.</Para></Discussion></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Ccc.]))))]
|
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
//===---
|
|
|
|
|
// Tests for \param.
|
|
|
|
|
//===---
|
|
|
|
|
|
2012-11-16 06:03:13 +08:00
|
|
|
|
/// \param
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_cmd_param_1(int x1);
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_param_1:{{.*}} FullCommentAsHTML=[] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_param_1</Name><USR>c:@F@test_cmd_param_1#I#</USR><Declaration>void test_cmd_param_1(int x1)</Declaration></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[] ParamIndex=Invalid
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace)))]
|
|
|
|
|
|
|
|
|
|
/// \param x1 Aaa.
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_cmd_param_2(int x1);
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_param_2:{{.*}} FullCommentAsHTML=[<dl><dt class="param-name-index-0">x1</dt><dd class="param-descr-index-0"> Aaa.</dd></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_param_2</Name><USR>c:@F@test_cmd_param_2#I#</USR><Declaration>void test_cmd_param_2(int x1)</Declaration><Parameters><Parameter><Name>x1</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Aaa.</Para></Discussion></Parameter></Parameters></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
|
|
|
|
|
|
|
|
|
|
/// \param zzz Aaa.
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_cmd_param_3(int x1);
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_param_3:{{.*}} FullCommentAsHTML=[<dl><dt class="param-name-index-invalid">zzz</dt><dd class="param-descr-index-invalid"> Aaa.</dd></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_param_3</Name><USR>c:@F@test_cmd_param_3#I#</USR><Declaration>void test_cmd_param_3(int x1)</Declaration><Parameters><Parameter><Name>zzz</Name><Direction isExplicit="0">in</Direction><Discussion><Para> Aaa.</Para></Discussion></Parameter></Parameters></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[zzz] ParamIndex=Invalid
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
|
|
|
|
|
|
|
|
|
|
/// \param x2 Bbb.
|
|
|
|
|
/// \param x1 Aaa.
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_cmd_param_4(int x1, int x2);
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_param_4:{{.*}} FullCommentAsHTML=[<dl><dt class="param-name-index-0">x1</dt><dd class="param-descr-index-0"> Aaa.</dd><dt class="param-name-index-1">x2</dt><dd class="param-descr-index-1"> Bbb. </dd></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_param_4</Name><USR>c:@F@test_cmd_param_4#I#I#</USR><Declaration>void test_cmd_param_4(int x1, int x2)</Declaration><Parameters><Parameter><Name>x1</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Aaa.</Para></Discussion></Parameter><Parameter><Name>x2</Name><Index>1</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Bbb. </Para></Discussion></Parameter></Parameters></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
|
|
|
|
|
|
|
|
|
|
/// \param x2 Bbb.
|
|
|
|
|
/// \param zzz Aaa.
|
|
|
|
|
/// \param x1 Aaa.
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_cmd_param_5(int x1, int x2);
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_param_5:{{.*}} FullCommentAsHTML=[<dl><dt class="param-name-index-0">x1</dt><dd class="param-descr-index-0"> Aaa.</dd><dt class="param-name-index-1">x2</dt><dd class="param-descr-index-1"> Bbb. </dd><dt class="param-name-index-invalid">zzz</dt><dd class="param-descr-index-invalid"> Aaa. </dd></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_param_5</Name><USR>c:@F@test_cmd_param_5#I#I#</USR><Declaration>void test_cmd_param_5(int x1, int x2)</Declaration><Parameters><Parameter><Name>x1</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Aaa.</Para></Discussion></Parameter><Parameter><Name>x2</Name><Index>1</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Bbb. </Para></Discussion></Parameter><Parameter><Name>zzz</Name><Direction isExplicit="0">in</Direction><Discussion><Para> Aaa. </Para></Discussion></Parameter></Parameters></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[zzz] ParamIndex=Invalid
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
|
|
|
|
|
|
2013-06-24 12:41:32 +08:00
|
|
|
|
/// \param x1 Aaa.
|
|
|
|
|
/// \param ... Bbb.
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_cmd_param_6(int x1, ...);
|
2013-06-24 12:41:32 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_cmd_param_6:{{.*}} FullCommentAsHTML=[<dl><dt class="param-name-index-0">x1</dt><dd class="param-descr-index-0"> Aaa. </dd><dt class="param-name-index-vararg">...</dt><dd class="param-descr-index-vararg"> Bbb.</dd></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_param_6</Name><USR>c:@F@test_cmd_param_6#I.#</USR><Declaration>void test_cmd_param_6(int x1, ...)</Declaration><Parameters><Parameter><Name>x1</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Aaa. </Para></Discussion></Parameter><Parameter><Name>...</Name><IsVarArg /><Direction isExplicit="0">in</Direction><Discussion><Para> Bbb.</Para></Discussion></Parameter></Parameters></Function>]
|
2013-06-24 12:41:32 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[...] ParamIndex=4294967295
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
2013-11-20 03:18:54 +08:00
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
|
2013-06-24 12:41:32 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
//===---
|
|
|
|
|
// Tests for \tparam.
|
|
|
|
|
//===---
|
|
|
|
|
|
2012-11-16 06:03:13 +08:00
|
|
|
|
/// \tparam
|
|
|
|
|
/// \param aaa Blah blah
|
|
|
|
|
template<typename T>
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_cmd_tparam_1(T aaa);
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=test_cmd_tparam_1:{{.*}} FullCommentAsHTML=[<dl><dt class="param-name-index-0">aaa</dt><dd class="param-descr-index-0"> Blah blah</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_tparam_1</Name><USR>c:@FT@>1#Ttest_cmd_tparam_1#t0.0#</USR><Declaration>template <typename T> void test_cmd_tparam_1(T aaa)</Declaration><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah</Para></Discussion></Parameter></Parameters></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[] ParamPosition=Invalid
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[aaa] ParamIndex=0
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Blah blah]))))]
|
|
|
|
|
|
|
|
|
|
/// \tparam T
|
|
|
|
|
/// \param aaa Blah blah
|
|
|
|
|
template<typename T>
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_cmd_tparam_2(T aaa);
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=test_cmd_tparam_2:{{.*}} FullCommentAsHTML=[<dl><dt class="param-name-index-0">aaa</dt><dd class="param-descr-index-0"> Blah blah</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_tparam_2</Name><USR>c:@FT@>1#Ttest_cmd_tparam_2#t0.0#</USR><Declaration>template <typename T> void test_cmd_tparam_2(T aaa)</Declaration><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah</Para></Discussion></Parameter></Parameters></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T] ParamPosition={0}
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[aaa] ParamIndex=0
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Blah blah]))))]
|
|
|
|
|
|
|
|
|
|
/// \tparam T2 Bbb
|
|
|
|
|
/// \tparam T1 Aaa
|
|
|
|
|
template<typename T1, typename T2>
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_cmd_tparam_3(T1 aaa, T2 bbb);
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=test_cmd_tparam_3:{{.*}} FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">T1</dt><dd class="tparam-descr-index-0"> Aaa</dd><dt class="tparam-name-index-1">T2</dt><dd class="tparam-descr-index-1"> Bbb </dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_tparam_3</Name><USR>c:@FT@>2#T#Ttest_cmd_tparam_3#t0.0#t0.1#</USR><Declaration>template <typename T1, typename T2> void test_cmd_tparam_3(T1 aaa, T2 bbb)</Declaration><TemplateParameters><Parameter><Name>T1</Name><Index>0</Index><Discussion><Para> Aaa</Para></Discussion></Parameter><Parameter><Name>T2</Name><Index>1</Index><Discussion><Para> Bbb </Para></Discussion></Parameter></TemplateParameters></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T2] ParamPosition={1}
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T1] ParamPosition={0}
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa]))))]
|
|
|
|
|
|
|
|
|
|
/// \tparam T2 Bbb
|
|
|
|
|
/// \tparam U Zzz
|
|
|
|
|
/// \tparam V Ccc
|
|
|
|
|
/// \tparam T1 Aaa
|
|
|
|
|
template<typename T1, typename T2, int V>
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_cmd_tparam_4(T1 aaa, T2 bbb);
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=test_cmd_tparam_4:{{.*}} FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">T1</dt><dd class="tparam-descr-index-0"> Aaa</dd><dt class="tparam-name-index-1">T2</dt><dd class="tparam-descr-index-1"> Bbb </dd><dt class="tparam-name-index-2">V</dt><dd class="tparam-descr-index-2"> Ccc </dd><dt class="tparam-name-index-invalid">U</dt><dd class="tparam-descr-index-invalid"> Zzz </dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_tparam_4</Name><USR>c:@FT@>3#T#T#NItest_cmd_tparam_4#t0.0#t0.1#</USR><Declaration>template <typename T1, typename T2, int V>\nvoid test_cmd_tparam_4(T1 aaa, T2 bbb)</Declaration><TemplateParameters><Parameter><Name>T1</Name><Index>0</Index><Discussion><Para> Aaa</Para></Discussion></Parameter><Parameter><Name>T2</Name><Index>1</Index><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>V</Name><Index>2</Index><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>U</Name><Discussion><Para> Zzz </Para></Discussion></Parameter></TemplateParameters></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T2] ParamPosition={1}
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[U] ParamPosition=Invalid
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Zzz] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[V] ParamPosition={2}
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Ccc] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T1] ParamPosition={0}
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa]))))]
|
|
|
|
|
|
|
|
|
|
/// \tparam TTT Ddd
|
|
|
|
|
/// \tparam C Ccc
|
|
|
|
|
/// \tparam T Aaa
|
|
|
|
|
/// \tparam TT Bbb
|
|
|
|
|
template<template<template<typename T> class TT, class C> class TTT>
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_cmd_tparam_5();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=test_cmd_tparam_5:{{.*}} FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">TTT</dt><dd class="tparam-descr-index-0"> Ddd </dd><dt class="tparam-name-index-other">C</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">T</dt><dd class="tparam-descr-index-other"> Aaa </dd><dt class="tparam-name-index-other">TT</dt><dd class="tparam-descr-index-other"> Bbb</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_cmd_tparam_5</Name><USR>c:@FT@>1#t>2#t>1#T#Ttest_cmd_tparam_5#</USR><Declaration>template <template <template <typename T> class TT, class C> class TTT>\nvoid test_cmd_tparam_5()</Declaration><TemplateParameters><Parameter><Name>TTT</Name><Index>0</Index><Discussion><Para> Ddd </Para></Discussion></Parameter><Parameter><Name>C</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>T</Name><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>TT</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[TTT] ParamPosition={0}
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Ddd] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[C] ParamPosition={0, 1}
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Ccc] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T] ParamPosition={0, 0, 0}
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[TT] ParamPosition={0, 0}
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb]))))]
|
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
//===---
|
|
|
|
|
// Tests for interaction between commands.
|
|
|
|
|
//===---
|
|
|
|
|
|
2012-11-16 06:03:13 +08:00
|
|
|
|
/// \brief Aaa.
|
|
|
|
|
///
|
|
|
|
|
/// Bbb.
|
|
|
|
|
///
|
|
|
|
|
/// \param x2 Ddd.
|
|
|
|
|
/// \param x1 Ccc.
|
|
|
|
|
/// \returns Eee.
|
2013-11-20 09:23:26 +08:00
|
|
|
|
void test_full_comment_1(int x1, int x2);
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=test_full_comment_1:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><p> Bbb.</p><dl><dt class="param-name-index-0">x1</dt><dd class="param-descr-index-0"> Ccc. </dd><dt class="param-name-index-1">x2</dt><dd class="param-descr-index-1"> Ddd. </dd></dl><div class="result-discussion"><p class="para-returns"><span class="word-returns">Returns</span> Eee.</p></div>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>test_full_comment_1</Name><USR>c:@F@test_full_comment_1#I#I#</USR><Declaration>void test_full_comment_1(int x1, int x2)</Declaration><Abstract><Para> Aaa.</Para></Abstract><Parameters><Parameter><Name>x1</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Ccc. </Para></Discussion></Parameter><Parameter><Name>x2</Name><Index>1</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Ddd. </Para></Discussion></Parameter></Parameters><ResultDiscussion><Para> Eee.</Para></ResultDiscussion><Discussion><Para> Bbb.</Para></Discussion></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.])))
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Ddd.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Ccc.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Eee.]))))]
|
|
|
|
|
|
2013-11-20 09:23:26 +08:00
|
|
|
|
//===---
|
|
|
|
|
// Misc tests.
|
|
|
|
|
//===---
|
|
|
|
|
|
2012-11-16 06:03:13 +08:00
|
|
|
|
/// <br><a href="http://example.com/">Aaa</a>
|
2013-06-24 12:41:32 +08:00
|
|
|
|
void comment_to_html_conversion_24();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2014-05-01 05:54:30 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_24:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <br><a href="http://example.com/">Aaa</a></p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_24</Name><USR>c:@F@comment_to_html_conversion_24#</USR><Declaration>void comment_to_html_conversion_24()</Declaration><Abstract><Para> <rawHTML><![CDATA[<br>]]></rawHTML><rawHTML><![CDATA[<a href="http://example.com/">]]></rawHTML>Aaa<rawHTML></a></rawHTML></Para></Abstract></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_HTMLStartTag Name=[br])
|
|
|
|
|
// CHECK-NEXT: (CXComment_HTMLStartTag Name=[a] Attrs: href=http://example.com/)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[Aaa])
|
|
|
|
|
// CHECK-NEXT: (CXComment_HTMLEndTag Name=[a])))]
|
|
|
|
|
|
|
|
|
|
/// \verbatim
|
|
|
|
|
/// <a href="http://example.com/">Aaa</a>
|
|
|
|
|
/// <a href='http://example.com/'>Aaa</a>
|
|
|
|
|
/// \endverbatim
|
2013-06-24 12:41:32 +08:00
|
|
|
|
void comment_to_html_conversion_25();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-06-24 12:41:32 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_25:{{.*}} FullCommentAsHTML=[<pre> <a href="http://example.com/">Aaa</a>\n <a href='http://example.com/'>Aaa</a></pre>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_25</Name><USR>c:@F@comment_to_html_conversion_25#</USR><Declaration>void comment_to_html_conversion_25()</Declaration><Discussion><Verbatim xml:space="preserve" kind="verbatim"> <a href="http://example.com/">Aaa</a>\n <a href='http://example.com/'>Aaa</a></Verbatim></Discussion></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_VerbatimBlockCommand CommandName=[verbatim]
|
|
|
|
|
// CHECK-NEXT: (CXComment_VerbatimBlockLine Text=[ <a href="http://example.com/">Aaa</a>])
|
|
|
|
|
// CHECK-NEXT: (CXComment_VerbatimBlockLine Text=[ <a href='http://example.com/'>Aaa</a>])))]
|
|
|
|
|
|
2013-11-09 11:50:37 +08:00
|
|
|
|
/// \def foo_def
|
|
|
|
|
/// \fn foo_fn
|
|
|
|
|
/// \namespace foo_namespace
|
|
|
|
|
/// \overload foo_overload
|
|
|
|
|
/// \property foo_property
|
|
|
|
|
/// \typedef foo_typedef
|
|
|
|
|
/// \var foo_var
|
|
|
|
|
/// \function foo_function
|
|
|
|
|
/// \class foo_class
|
|
|
|
|
/// \method foo_method
|
|
|
|
|
/// \interface foo_interface
|
2012-11-16 06:03:13 +08:00
|
|
|
|
/// Blah blah.
|
2013-06-24 12:41:32 +08:00
|
|
|
|
void comment_to_html_conversion_26();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-06-24 12:41:32 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_26:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Blah blah.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_26</Name><USR>c:@F@comment_to_html_conversion_26#</USR><Declaration>void comment_to_html_conversion_26()</Declaration><Abstract><Para> Blah blah.</Para></Abstract></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
2013-11-09 11:50:37 +08:00
|
|
|
|
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_def])
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
2013-11-09 11:50:37 +08:00
|
|
|
|
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_fn])
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
2013-11-09 11:50:37 +08:00
|
|
|
|
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_namespace])
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
2013-11-09 11:50:37 +08:00
|
|
|
|
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_overload])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_property])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_typedef])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_var])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_function])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_class])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_method])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_interface])
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Blah blah.])))]
|
|
|
|
|
|
|
|
|
|
/// \unknown
|
2013-06-24 12:41:32 +08:00
|
|
|
|
void comment_to_html_conversion_27();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-06-24 12:41:32 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_27:{{.*}} 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_27</Name><USR>c:@F@comment_to_html_conversion_27#</USR><Declaration>void comment_to_html_conversion_27()</Declaration><Abstract><Para> </Para></Abstract></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[unknown] RenderNormal)))]
|
|
|
|
|
|
|
|
|
|
/// \b Aaa
|
2013-06-24 12:41:32 +08:00
|
|
|
|
void comment_to_html_conversion_28();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-06-24 12:41:32 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_28:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <b>Aaa</b></p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_28</Name><USR>c:@F@comment_to_html_conversion_28#</USR><Declaration>void comment_to_html_conversion_28()</Declaration><Abstract><Para> <bold>Aaa</bold></Para></Abstract></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[b] RenderBold Arg[0]=Aaa)))]
|
|
|
|
|
|
|
|
|
|
/// \c Aaa \p Bbb
|
2013-06-24 12:41:32 +08:00
|
|
|
|
void comment_to_html_conversion_29();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-06-24 12:41:32 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_29:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <tt>Aaa</tt> <tt>Bbb</tt></p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_29</Name><USR>c:@F@comment_to_html_conversion_29#</USR><Declaration>void comment_to_html_conversion_29()</Declaration><Abstract><Para> <monospaced>Aaa</monospaced> <monospaced>Bbb</monospaced></Para></Abstract></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[c] RenderMonospaced Arg[0]=Aaa)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[p] RenderMonospaced Arg[0]=Bbb)))]
|
|
|
|
|
|
|
|
|
|
/// \a Aaa \e Bbb \em Ccc
|
2013-06-24 12:41:32 +08:00
|
|
|
|
void comment_to_html_conversion_30();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-06-24 12:41:32 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_30:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <em>Aaa</em> <em>Bbb</em> <em>Ccc</em></p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_30</Name><USR>c:@F@comment_to_html_conversion_30#</USR><Declaration>void comment_to_html_conversion_30()</Declaration><Abstract><Para> <emphasized>Aaa</emphasized> <emphasized>Bbb</emphasized> <emphasized>Ccc</emphasized></Para></Abstract></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[a] RenderEmphasized Arg[0]=Aaa)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[e] RenderEmphasized Arg[0]=Bbb)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[em] RenderEmphasized Arg[0]=Ccc)))]
|
|
|
|
|
|
|
|
|
|
/// \a 1<2 \e 3<4 \em 5<6 \param 7<8 aaa \tparam 9<10 bbb
|
2013-06-24 12:41:32 +08:00
|
|
|
|
void comment_to_html_conversion_31();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-06-24 12:41:32 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_31:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <em>1<2</em> <em>3<4</em> <em>5<6</em> </p><dl><dt class="tparam-name-index-invalid">9<10</dt><dd class="tparam-descr-index-invalid"> bbb</dd></dl><dl><dt class="param-name-index-invalid">7<8</dt><dd class="param-descr-index-invalid"> aaa </dd></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_31</Name><USR>c:@F@comment_to_html_conversion_31#</USR><Declaration>void comment_to_html_conversion_31()</Declaration><Abstract><Para> <emphasized>1<2</emphasized> <emphasized>3<4</emphasized> <emphasized>5<6</emphasized> </Para></Abstract><TemplateParameters><Parameter><Name>9<10</Name><Discussion><Para> bbb</Para></Discussion></Parameter></TemplateParameters><Parameters><Parameter><Name>7<8</Name><Direction isExplicit="0">in</Direction><Discussion><Para> aaa </Para></Discussion></Parameter></Parameters></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[a] RenderEmphasized Arg[0]=1<2)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[e] RenderEmphasized Arg[0]=3<4)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_InlineCommand CommandName=[em] RenderEmphasized Arg[0]=5<6)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[7<8] ParamIndex=Invalid
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ aaa ])))
|
|
|
|
|
// CHECK-NEXT: (CXComment_TParamCommand ParamName=[9<10] ParamPosition=Invalid
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ bbb]))))]
|
|
|
|
|
|
|
|
|
|
/// \\ \@ \& \$ \# \< \> \% \" \. \::
|
2013-06-24 12:41:32 +08:00
|
|
|
|
void comment_to_html_conversion_32();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-06-24 12:41:32 +08:00
|
|
|
|
// 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>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// 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=[ ] IsWhitespace)
|
|
|
|
|
// 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=[#])
|
|
|
|
|
// 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=[ ] IsWhitespace)
|
|
|
|
|
// 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=[.])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[::])))]
|
|
|
|
|
|
2013-01-20 06:04:44 +08:00
|
|
|
|
/// & < > " ' meow meow
|
2013-06-24 12:41:32 +08:00
|
|
|
|
void comment_to_html_conversion_33();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2013-06-24 12:41:32 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_33:{{.*}} FullCommentAsHTML=[<p class="para-brief"> & < > " ' meow meow</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_33</Name><USR>c:@F@comment_to_html_conversion_33#</USR><Declaration>void comment_to_html_conversion_33()</Declaration><Abstract><Para> & < > " ' meow meow</Para></Abstract></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// 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=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[>])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
2013-01-20 06:04:44 +08:00
|
|
|
|
// 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])))]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// <em>0<i</em>
|
2013-06-24 12:41:32 +08:00
|
|
|
|
void comment_to_html_conversion_34();
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
2014-05-01 05:54:30 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_34:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <em>0<i</em></p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_34</Name><USR>c:@F@comment_to_html_conversion_34#</USR><Declaration>void comment_to_html_conversion_34()</Declaration><Abstract><Para> <rawHTML><![CDATA[<em>]]></rawHTML>0<i<rawHTML></em></rawHTML></Para></Abstract></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_HTMLStartTag Name=[em])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[0])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[<])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[i])
|
|
|
|
|
// CHECK-NEXT: (CXComment_HTMLEndTag Name=[em])))]
|
|
|
|
|
|
2013-01-30 22:44:47 +08:00
|
|
|
|
// rdar://12392215
|
|
|
|
|
/// © the copyright symbol
|
|
|
|
|
/// ™ the trade mark symbol
|
|
|
|
|
/// ® the registered trade mark symbol
|
2013-12-05 12:47:09 +08:00
|
|
|
|
/// a non-breakable space.
|
2013-01-30 22:44:47 +08:00
|
|
|
|
/// Δ Greek letter Delta Δ.
|
|
|
|
|
/// Γ Greek letter Gamma Γ.
|
2013-06-24 12:41:32 +08:00
|
|
|
|
void comment_to_html_conversion_35();
|
2013-01-30 22:44:47 +08:00
|
|
|
|
|
2013-12-05 12:47:09 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_35:{{.*}} FullCommentAsHTML=[<p class="para-brief"> © the copyright symbol ™ the trade mark symbol ® the registered trade mark symbol a non-breakable space. Δ Greek letter Delta Δ. Γ Greek letter Gamma Γ.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_35</Name><USR>c:@F@comment_to_html_conversion_35#</USR><Declaration>void comment_to_html_conversion_35()</Declaration><Abstract><Para> © the copyright symbol ™ the trade mark symbol ® the registered trade mark symbol a non-breakable space. Δ Greek letter Delta Δ. Γ Greek letter Gamma Γ.</Para></Abstract></Function>]
|
2013-01-30 22:44:47 +08:00
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[©])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ the copyright symbol] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[™])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ the trade mark symbol] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[®])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ the registered trade mark symbol] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ])
|
2013-12-05 12:47:09 +08:00
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ a non-breakable space.] HasTrailingNewline)
|
2013-01-30 22:44:47 +08:00
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[Δ])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Greek letter Delta Δ.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[Γ])
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Greek letter Gamma Γ.])))]
|
|
|
|
|
|
2014-04-22 20:34:52 +08:00
|
|
|
|
/// <h1 id="]]>">Aaa</h1>
|
|
|
|
|
void comment_to_html_conversion_36();
|
|
|
|
|
|
2014-05-01 05:54:30 +08:00
|
|
|
|
// 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><![CDATA[<h1 id="]]]]><![CDATA[>">]]></rawHTML>Aaa<rawHTML></h1></rawHTML></Para></Abstract></Function>]
|
2014-04-22 20:34:52 +08:00
|
|
|
|
// 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])))]
|
|
|
|
|
|
2013-01-30 22:44:47 +08:00
|
|
|
|
|
2012-11-16 06:03:13 +08:00
|
|
|
|
/// Aaa.
|
|
|
|
|
class comment_to_xml_conversion_01 {
|
2013-01-10 21:24:24 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:7: ClassDecl=comment_to_xml_conversion_01:{{.*}} FullCommentAsXML=[<Class file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="7"><Name>comment_to_xml_conversion_01</Name><USR>c:@C@comment_to_xml_conversion_01</USR><Declaration>class comment_to_xml_conversion_01 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Class>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// \param aaa Blah blah.
|
|
|
|
|
comment_to_xml_conversion_01(int aaa);
|
|
|
|
|
|
2012-12-06 03:54:11 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:3: CXXConstructor=comment_to_xml_conversion_01:{{.*}} FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="3"><Name>comment_to_xml_conversion_01</Name><USR>c:@C@comment_to_xml_conversion_01@F@comment_to_xml_conversion_01#I#</USR><Declaration>comment_to_xml_conversion_01(int aaa)</Declaration><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah.</Para></Discussion></Parameter></Parameters></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
~comment_to_xml_conversion_01();
|
|
|
|
|
|
2014-02-26 02:49:49 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:3: CXXDestructor=~comment_to_xml_conversion_01:{{.*}} FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="3"><Name>~comment_to_xml_conversion_01</Name><USR>c:@C@comment_to_xml_conversion_01@F@~comment_to_xml_conversion_01#</USR><Declaration>~comment_to_xml_conversion_01()</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// \param aaa Blah blah.
|
|
|
|
|
int comment_to_xml_conversion_02(int aaa);
|
|
|
|
|
|
2012-11-16 06:21:42 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:7: CXXMethod=comment_to_xml_conversion_02:{{.*}} FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="7"><Name>comment_to_xml_conversion_02</Name><USR>c:@C@comment_to_xml_conversion_01@F@comment_to_xml_conversion_02#I#</USR><Declaration>int comment_to_xml_conversion_02(int aaa)</Declaration><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah.</Para></Discussion></Parameter></Parameters></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// \param aaa Blah blah.
|
|
|
|
|
static int comment_to_xml_conversion_03(int aaa);
|
|
|
|
|
|
2012-11-16 06:21:42 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:14: CXXMethod=comment_to_xml_conversion_03:{{.*}} FullCommentAsXML=[<Function isClassMethod="1" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="14"><Name>comment_to_xml_conversion_03</Name><USR>c:@C@comment_to_xml_conversion_01@F@comment_to_xml_conversion_03#I#S</USR><Declaration>static int comment_to_xml_conversion_03(int aaa)</Declaration><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah.</Para></Discussion></Parameter></Parameters></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
int comment_to_xml_conversion_04;
|
|
|
|
|
|
2012-11-16 06:21:42 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:7: FieldDecl=comment_to_xml_conversion_04:{{.*}} FullCommentAsXML=[<Variable file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="7"><Name>comment_to_xml_conversion_04</Name><USR>c:@C@comment_to_xml_conversion_01@FI@comment_to_xml_conversion_04</USR><Declaration>int comment_to_xml_conversion_04</Declaration><Abstract><Para> Aaa.</Para></Abstract></Variable>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
static int comment_to_xml_conversion_05;
|
|
|
|
|
|
2012-11-16 06:21:42 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:14: VarDecl=comment_to_xml_conversion_05:{{.*}} FullCommentAsXML=[<Variable file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="14"><Name>comment_to_xml_conversion_05</Name><USR>c:@C@comment_to_xml_conversion_01@comment_to_xml_conversion_05</USR><Declaration>static int comment_to_xml_conversion_05</Declaration><Abstract><Para> Aaa.</Para></Abstract></Variable>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// \param aaa Blah blah.
|
|
|
|
|
void operator()(int aaa);
|
|
|
|
|
|
2012-11-16 06:21:42 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:8: CXXMethod=operator():{{.*}} FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="8"><Name>operator()</Name><USR>c:@C@comment_to_xml_conversion_01@F@operator()#I#</USR><Declaration>void operator()(int aaa)</Declaration><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah.</Para></Discussion></Parameter></Parameters></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
operator bool();
|
|
|
|
|
|
2014-02-26 02:03:55 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:3: CXXConversion=operator bool:{{.*}} FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="3"><Name>operator bool</Name><USR>c:@C@comment_to_xml_conversion_01@F@operator bool#</USR><Declaration>operator bool()</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
typedef int comment_to_xml_conversion_06;
|
|
|
|
|
|
|
|
|
|
// USR is line-dependent here, so filter it with a regexp.
|
2012-11-16 06:21:42 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-3]]:15: TypedefDecl=comment_to_xml_conversion_06:{{.*}} FullCommentAsXML=[<Typedef file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-3]]" column="15"><Name>comment_to_xml_conversion_06</Name><USR>{{[^<]+}}</USR><Declaration>typedef int comment_to_xml_conversion_06</Declaration><Abstract><Para> Aaa.</Para></Abstract></Typedef>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
using comment_to_xml_conversion_07 = int;
|
|
|
|
|
|
2012-11-16 06:21:42 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:9: TypeAliasDecl=comment_to_xml_conversion_07:{{.*}} FullCommentAsXML=[<Typedef file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="9"><Name>comment_to_xml_conversion_07</Name><USR>c:@C@comment_to_xml_conversion_01@comment_to_xml_conversion_07</USR><Declaration>using comment_to_xml_conversion_07 = int</Declaration><Abstract><Para> Aaa.</Para></Abstract></Typedef>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
template<typename T, typename U>
|
|
|
|
|
class comment_to_xml_conversion_08 { };
|
|
|
|
|
|
2013-01-10 21:24:24 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:9: ClassTemplate=comment_to_xml_conversion_08:{{.*}} FullCommentAsXML=[<Class templateKind="template" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="9"><Name>comment_to_xml_conversion_08</Name><USR>c:@C@comment_to_xml_conversion_01@CT>2#T#T@comment_to_xml_conversion_08</USR><Declaration>template <typename T, typename U> class comment_to_xml_conversion_08 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Class>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
template<typename T>
|
|
|
|
|
using comment_to_xml_conversion_09 = comment_to_xml_conversion_08<T, int>;
|
|
|
|
|
|
2013-01-05 07:34:14 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:3: UnexposedDecl=comment_to_xml_conversion_09:{{.*}} FullCommentAsXML=[<Typedef file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="3"><Name>comment_to_xml_conversion_09</Name><USR>c:@C@comment_to_xml_conversion_01@comment_to_xml_conversion_09</USR><Declaration>template <typename T>\nusing comment_to_xml_conversion_09 = comment_to_xml_conversion_08<T, int></Declaration><Abstract><Para> Aaa.</Para></Abstract></Typedef>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
template<typename T, typename U>
|
|
|
|
|
void comment_to_xml_conversion_10(T aaa, U bbb);
|
|
|
|
|
|
2013-01-08 02:45:48 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=comment_to_xml_conversion_10:{{.*}} FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_xml_conversion_10</Name><USR>c:@FT@>2#T#Tcomment_to_xml_conversion_10#t0.0#t0.1#</USR><Declaration>template <typename T, typename U>\nvoid comment_to_xml_conversion_10(T aaa, U bbb)</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
template<>
|
|
|
|
|
void comment_to_xml_conversion_10(int aaa, int bbb);
|
|
|
|
|
|
2012-11-16 06:21:42 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_xml_conversion_10:{{.*}} FullCommentAsXML=[<Function templateKind="specialization" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_xml_conversion_10</Name><USR>c:@F@comment_to_xml_conversion_10<#I#I>#I#I#</USR><Declaration>void comment_to_xml_conversion_10(int aaa, int bbb)</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
template<typename T, typename U>
|
|
|
|
|
class comment_to_xml_conversion_11 { };
|
|
|
|
|
|
2013-01-10 21:24:24 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:7: ClassTemplate=comment_to_xml_conversion_11:{{.*}} FullCommentAsXML=[<Class templateKind="template" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="7"><Name>comment_to_xml_conversion_11</Name><USR>c:@CT>2#T#T@comment_to_xml_conversion_11</USR><Declaration>template <typename T, typename U> class comment_to_xml_conversion_11 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Class>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
template<typename T>
|
|
|
|
|
class comment_to_xml_conversion_11<T, int> { };
|
|
|
|
|
|
2013-01-10 21:24:24 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:7: ClassTemplatePartialSpecialization=comment_to_xml_conversion_11:{{.*}} FullCommentAsXML=[<Class templateKind="partialSpecialization" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="7"><Name>comment_to_xml_conversion_11</Name><USR>c:@CP>1#T@comment_to_xml_conversion_11>#t0.0#I</USR><Declaration>class comment_to_xml_conversion_11 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Class>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
template<>
|
|
|
|
|
class comment_to_xml_conversion_11<int, int> { };
|
|
|
|
|
|
2013-01-10 21:24:24 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:7: ClassDecl=comment_to_xml_conversion_11:{{.*}} FullCommentAsXML=[<Class templateKind="specialization" file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="7"><Name>comment_to_xml_conversion_11</Name><USR>c:@C@comment_to_xml_conversion_11>#I#I</USR><Declaration>class comment_to_xml_conversion_11 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Class>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
int comment_to_xml_conversion_12;
|
|
|
|
|
|
2012-11-16 06:21:42 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:5: VarDecl=comment_to_xml_conversion_12:{{.*}} FullCommentAsXML=[<Variable file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="5"><Name>comment_to_xml_conversion_12</Name><USR>c:@comment_to_xml_conversion_12</USR><Declaration>int comment_to_xml_conversion_12</Declaration><Abstract><Para> Aaa.</Para></Abstract></Variable>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
namespace comment_to_xml_conversion_13 {
|
2013-05-31 23:15:41 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:11: Namespace=comment_to_xml_conversion_13:{{.*}} FullCommentAsXML=[<Namespace file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="11"><Name>comment_to_xml_conversion_13</Name><USR>c:@N@comment_to_xml_conversion_13</USR><Declaration>namespace comment_to_xml_conversion_13 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Namespace>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
namespace comment_to_xml_conversion_14 {
|
2013-05-31 23:15:41 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:13: Namespace=comment_to_xml_conversion_14:{{.*}} FullCommentAsXML=[<Namespace file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="13"><Name>comment_to_xml_conversion_14</Name><USR>c:@N@comment_to_xml_conversion_13@N@comment_to_xml_conversion_14</USR><Declaration>namespace comment_to_xml_conversion_14 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Namespace>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
enum comment_to_xml_conversion_15 {
|
2013-01-22 00:42:44 +08:00
|
|
|
|
// 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>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
comment_to_xml_conversion_16
|
2012-11-16 06:21:42 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:3: EnumConstantDecl=comment_to_xml_conversion_16:{{.*}} FullCommentAsXML=[<Variable file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="3"><Name>comment_to_xml_conversion_16</Name><USR>c:@E@comment_to_xml_conversion_15@comment_to_xml_conversion_16</USR><Declaration>comment_to_xml_conversion_16</Declaration><Abstract><Para> Aaa.</Para></Abstract></Variable>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
enum class comment_to_xml_conversion_17 {
|
2013-01-22 00:42:44 +08:00
|
|
|
|
// 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>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
comment_to_xml_conversion_18
|
2012-11-16 06:21:42 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:3: EnumConstantDecl=comment_to_xml_conversion_18:{{.*}} FullCommentAsXML=[<Variable file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="3"><Name>comment_to_xml_conversion_18</Name><USR>c:@E@comment_to_xml_conversion_17@comment_to_xml_conversion_18</USR><Declaration>comment_to_xml_conversion_18</Declaration><Abstract><Para> Aaa.</Para></Abstract></Variable>]
|
2012-11-16 06:03:13 +08:00
|
|
|
|
};
|
|
|
|
|
|
2014-04-22 18:59:13 +08:00
|
|
|
|
/// <a href="http://example.org/">
|
|
|
|
|
void comment_to_xml_conversion_unsafe_html_01();
|
2014-05-01 05:54:30 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_unsafe_html_01:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_unsafe_html_01</Name><USR>c:@F@comment_to_xml_conversion_unsafe_html_01#</USR><Declaration>void comment_to_xml_conversion_unsafe_html_01()</Declaration><Abstract><Para> <rawHTML isMalformed="1"><![CDATA[<a href="http://example.org/">]]></rawHTML></Para></Abstract></Function>]
|
2014-04-22 18:59:13 +08:00
|
|
|
|
|
|
|
|
|
/// <a href="http://example.org/"><em>Aaa</em>
|
|
|
|
|
void comment_to_xml_conversion_unsafe_html_02();
|
2014-05-01 05:54:30 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_unsafe_html_02:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_unsafe_html_02</Name><USR>c:@F@comment_to_xml_conversion_unsafe_html_02#</USR><Declaration>void comment_to_xml_conversion_unsafe_html_02()</Declaration><Abstract><Para> <rawHTML isMalformed="1"><![CDATA[<a href="http://example.org/">]]></rawHTML><rawHTML><![CDATA[<em>]]></rawHTML>Aaa<rawHTML></em></rawHTML></Para></Abstract></Function>]
|
2014-04-22 18:59:13 +08:00
|
|
|
|
|
|
|
|
|
/// <em>Aaa
|
|
|
|
|
void comment_to_xml_conversion_unsafe_html_03();
|
2014-05-01 05:54:30 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_unsafe_html_03:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_unsafe_html_03</Name><USR>c:@F@comment_to_xml_conversion_unsafe_html_03#</USR><Declaration>void comment_to_xml_conversion_unsafe_html_03()</Declaration><Abstract><Para> <rawHTML isMalformed="1"><![CDATA[<em>]]></rawHTML>Aaa</Para></Abstract></Function>]
|
2014-04-22 18:59:13 +08:00
|
|
|
|
|
|
|
|
|
/// <em>Aaa</b></em>
|
|
|
|
|
void comment_to_xml_conversion_unsafe_html_04();
|
2014-05-01 05:54:30 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_unsafe_html_04:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_unsafe_html_04</Name><USR>c:@F@comment_to_xml_conversion_unsafe_html_04#</USR><Declaration>void comment_to_xml_conversion_unsafe_html_04()</Declaration><Abstract><Para> <rawHTML><![CDATA[<em>]]></rawHTML>Aaa<rawHTML isMalformed="1"></b></rawHTML><rawHTML></em></rawHTML></Para></Abstract></Function>]
|
2014-04-22 18:59:13 +08:00
|
|
|
|
|
|
|
|
|
/// <em>Aaa</em></b>
|
|
|
|
|
void comment_to_xml_conversion_unsafe_html_05();
|
2014-05-01 05:54:30 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_unsafe_html_05:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_unsafe_html_05</Name><USR>c:@F@comment_to_xml_conversion_unsafe_html_05#</USR><Declaration>void comment_to_xml_conversion_unsafe_html_05()</Declaration><Abstract><Para> <rawHTML><![CDATA[<em>]]></rawHTML>Aaa<rawHTML></em></rawHTML><rawHTML isMalformed="1"></b></rawHTML></Para></Abstract></Function>]
|
2014-04-22 18:59:13 +08:00
|
|
|
|
|
|
|
|
|
/// </table>
|
|
|
|
|
void comment_to_xml_conversion_unsafe_html_06();
|
2014-05-01 05:54:30 +08:00
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_unsafe_html_06:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_unsafe_html_06</Name><USR>c:@F@comment_to_xml_conversion_unsafe_html_06#</USR><Declaration>void comment_to_xml_conversion_unsafe_html_06()</Declaration><Abstract><Para> <rawHTML isMalformed="1"></table></rawHTML></Para></Abstract></Function>]
|
2014-04-22 18:59:13 +08:00
|
|
|
|
|
|
|
|
|
/// <div onclick="alert('meow');">Aaa</div>
|
|
|
|
|
void comment_to_xml_conversion_unsafe_html_07();
|
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_unsafe_html_07:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_unsafe_html_07</Name><USR>c:@F@comment_to_xml_conversion_unsafe_html_07#</USR><Declaration>void comment_to_xml_conversion_unsafe_html_07()</Declaration><Abstract><Para> <rawHTML><![CDATA[<div onclick="alert('meow');">]]></rawHTML>Aaa<rawHTML></div></rawHTML></Para></Abstract></Function>]
|
|
|
|
|
|
2013-08-19 15:13:02 +08:00
|
|
|
|
//===---
|
|
|
|
|
// Check that we attach comments from the base class to derived classes if they don't have a comment.
|
|
|
|
|
// rdar://13647476
|
|
|
|
|
//===---
|
|
|
|
|
|
|
|
|
|
/// BaseToSuper1_Base
|
|
|
|
|
class BaseToSuper1_Base {};
|
|
|
|
|
|
|
|
|
|
class BaseToSuper1_Derived : public BaseToSuper1_Base {};
|
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:7: ClassDecl=BaseToSuper1_Derived:{{.*}} FullCommentAsXML=[<Class file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="7"><Name>BaseToSuper1_Base</Name><USR>c:@C@BaseToSuper1_Base</USR><Declaration>class BaseToSuper1_Derived : public BaseToSuper1_Base {}</Declaration><Abstract><Para> BaseToSuper1_Base</Para></Abstract></Class>]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// BaseToSuper2_Base
|
|
|
|
|
class BaseToSuper2_Base {};
|
|
|
|
|
|
|
|
|
|
/// BaseToSuper2_Derived
|
|
|
|
|
class BaseToSuper2_Derived : public BaseToSuper2_Base {};
|
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:7: ClassDecl=BaseToSuper2_Derived:{{.*}} FullCommentAsXML=[<Class file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="7"><Name>BaseToSuper2_Derived</Name><USR>c:@C@BaseToSuper2_Derived</USR><Declaration>class BaseToSuper2_Derived : public BaseToSuper2_Base {}</Declaration><Abstract><Para> BaseToSuper2_Derived</Para></Abstract></Class>]
|
|
|
|
|
|
|
|
|
|
class BaseToSuper2_MoreDerived : public BaseToSuper2_Derived {};
|
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:7: ClassDecl=BaseToSuper2_MoreDerived:{{.*}} FullCommentAsXML=[<Class file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="7"><Name>BaseToSuper2_Derived</Name><USR>c:@C@BaseToSuper2_Derived</USR><Declaration>class BaseToSuper2_MoreDerived : public BaseToSuper2_Derived {}</Declaration><Abstract><Para> BaseToSuper2_Derived</Para></Abstract></Class>]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// BaseToSuper3_Base
|
|
|
|
|
class BaseToSuper3_Base {};
|
|
|
|
|
|
|
|
|
|
class BaseToSuper3_DerivedA : public virtual BaseToSuper3_Base {};
|
|
|
|
|
|
|
|
|
|
class BaseToSuper3_DerivedB : public virtual BaseToSuper3_Base {};
|
|
|
|
|
|
|
|
|
|
class BaseToSuper3_MoreDerived : public BaseToSuper3_DerivedA, public BaseToSuper3_DerivedB {};
|
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:7: ClassDecl=BaseToSuper3_MoreDerived:{{.*}} FullCommentAsXML=[<Class file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="7"><Name>BaseToSuper3_Base</Name><USR>c:@C@BaseToSuper3_Base</USR><Declaration>class BaseToSuper3_MoreDerived : public BaseToSuper3_DerivedA,\n public BaseToSuper3_DerivedB {}</Declaration><Abstract><Para> BaseToSuper3_Base</Para></Abstract></Class>]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Check that we propagate comments only through public inheritance.
|
|
|
|
|
|
|
|
|
|
/// BaseToSuper4_Base
|
|
|
|
|
class BaseToSuper4_Base {};
|
|
|
|
|
|
|
|
|
|
/// BaseToSuper4_DerivedA
|
|
|
|
|
class BaseToSuper4_DerivedA : virtual BaseToSuper4_Base {};
|
|
|
|
|
|
|
|
|
|
class BaseToSuper4_DerivedB : public virtual BaseToSuper4_Base {};
|
|
|
|
|
|
|
|
|
|
class BaseToSuper4_MoreDerived : BaseToSuper4_DerivedA, public BaseToSuper4_DerivedB {};
|
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:7: ClassDecl=BaseToSuper4_MoreDerived:{{.*}} FullCommentAsXML=[<Class file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="7"><Name>BaseToSuper4_Base</Name><USR>c:@C@BaseToSuper4_Base</USR><Declaration>class BaseToSuper4_MoreDerived : BaseToSuper4_DerivedA,\n public BaseToSuper4_DerivedB {}</Declaration><Abstract><Para> BaseToSuper4_Base</Para></Abstract></Class>]
|
|
|
|
|
|
|
|
|
|
//===---
|
|
|
|
|
// Check the representation of \todo in XML.
|
|
|
|
|
//===---
|
|
|
|
|
|
2013-02-02 04:23:57 +08:00
|
|
|
|
/// 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=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_todo_1</Name><USR>c:@F@comment_to_xml_conversion_todo_1#</USR><Declaration>void comment_to_xml_conversion_todo_1()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Discussion><Para kind="todo"> Bbb.</Para></Discussion></Function>]
|
|
|
|
|
|
|
|
|
|
/// 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=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_todo_2</Name><USR>c:@F@comment_to_xml_conversion_todo_2#</USR><Declaration>void comment_to_xml_conversion_todo_2()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Discussion><Para kind="todo"> Bbb.</Para><Para> Ccc.</Para></Discussion></Function>]
|
|
|
|
|
|
|
|
|
|
/// 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=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_todo_3</Name><USR>c:@F@comment_to_xml_conversion_todo_3#</USR><Declaration>void comment_to_xml_conversion_todo_3()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Discussion><Para kind="todo"> Bbb.</Para><Para> Ccc. </Para><Para kind="todo"> Ddd.</Para></Discussion></Function>]
|
|
|
|
|
|
|
|
|
|
/// 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=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_todo_4</Name><USR>c:@F@comment_to_xml_conversion_todo_4#</USR><Declaration>void comment_to_xml_conversion_todo_4()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Discussion><Para kind="todo"> Bbb. </Para><Para kind="todo"> Ccc.</Para></Discussion></Function>]
|
|
|
|
|
|
2013-11-13 06:16:08 +08:00
|
|
|
|
|
|
|
|
|
//===---
|
|
|
|
|
// Test the representation of exception specifications in AST and XML.
|
|
|
|
|
//===---
|
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
/// \throws Bbb.
|
|
|
|
|
void comment_to_xml_conversion_exceptions_1();
|
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_exceptions_1:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_exceptions_1</Name><USR>c:@F@comment_to_xml_conversion_exceptions_1#</USR><Declaration>void comment_to_xml_conversion_exceptions_1()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Exceptions><Para> Bbb.</Para></Exceptions></Function>]
|
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throws]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
|
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
/// \throw Bbb.
|
|
|
|
|
void comment_to_xml_conversion_exceptions_2();
|
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_exceptions_2:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_exceptions_2</Name><USR>c:@F@comment_to_xml_conversion_exceptions_2#</USR><Declaration>void comment_to_xml_conversion_exceptions_2()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Exceptions><Para> Bbb.</Para></Exceptions></Function>]
|
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throw]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
|
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
/// \exception Bbb.
|
|
|
|
|
void comment_to_xml_conversion_exceptions_3();
|
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_exceptions_3:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_exceptions_3</Name><USR>c:@F@comment_to_xml_conversion_exceptions_3#</USR><Declaration>void comment_to_xml_conversion_exceptions_3()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Exceptions><Para> Bbb.</Para></Exceptions></Function>]
|
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[exception]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
|
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
/// \throws Bbb.
|
|
|
|
|
/// \throws Ccc.
|
|
|
|
|
/// \throws Ddd.
|
|
|
|
|
void comment_to_xml_conversion_exceptions_4();
|
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_exceptions_4:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_exceptions_4</Name><USR>c:@F@comment_to_xml_conversion_exceptions_4#</USR><Declaration>void comment_to_xml_conversion_exceptions_4()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Exceptions><Para> Bbb. </Para><Para> Ccc. </Para><Para> Ddd.</Para></Exceptions></Function>]
|
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throws]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throws]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Ccc.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throws]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Ddd.]))))]
|
|
|
|
|
|
|
|
|
|
/// Aaa.
|
|
|
|
|
/// \throws Bbb.
|
|
|
|
|
/// \throw Ccc.
|
|
|
|
|
void comment_to_xml_conversion_exceptions_5();
|
|
|
|
|
// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=comment_to_xml_conversion_exceptions_5:{{.*}} FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-1]]" column="6"><Name>comment_to_xml_conversion_exceptions_5</Name><USR>c:@F@comment_to_xml_conversion_exceptions_5#</USR><Declaration>void comment_to_xml_conversion_exceptions_5()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Exceptions><Para> Bbb. </Para><Para> Ccc.</Para></Exceptions></Function>]
|
|
|
|
|
// CHECK-NEXT: CommentAST=[
|
|
|
|
|
// CHECK-NEXT: (CXComment_FullComment
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throws]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
|
|
|
|
|
// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throw]
|
|
|
|
|
// CHECK-NEXT: (CXComment_Paragraph
|
|
|
|
|
// CHECK-NEXT: (CXComment_Text Text=[ Ccc.]))))]
|
|
|
|
|
|
2012-11-16 06:03:13 +08:00
|
|
|
|
#endif
|
|
|
|
|
|