blob: 95e11c3bc348ff6c9ea6995706dd9636d73d79e7 [file] [log] [blame]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +00001// RUN: rm -rf %t
2// RUN: mkdir %t
3
Dmitri Gribenkof494e482013-01-30 14:44:47 +00004// This file contains UTF-8 sequences. Please don't "fix" them!
5
Dmitri Gribenko61322bc2012-11-15 22:03:13 +00006// Check that we serialize comment source locations properly.
7// RUN: %clang_cc1 -x c++ -std=c++11 -emit-pch -o %t/out.pch %s
8// RUN: %clang_cc1 -x c++ -std=c++11 -include-pch %t/out.pch -fsyntax-only %s
9
10// 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
11// RUN: c-index-test -test-load-tu %t/out.pch all > %t/out.c-index-pch
12
13// RUN: FileCheck %s -check-prefix=WRONG < %t/out.c-index-direct
14// RUN: FileCheck %s -check-prefix=WRONG < %t/out.c-index-pch
15
16// Ensure that XML is not invalid
17// WRONG-NOT: CommentXMLInvalid
18
19// RUN: FileCheck %s < %t/out.c-index-direct
20// RUN: FileCheck %s < %t/out.c-index-pch
21
Evgeniy Stepanovc528aa22013-03-27 13:05:40 +000022// XFAIL: msan
NAKAMURA Takumi614323c2013-01-22 03:49:16 +000023// XFAIL: valgrind
24
Dmitri Gribenko61322bc2012-11-15 22:03:13 +000025#ifndef HEADER
26#define HEADER
27
Stephen Hines651f13c2014-04-23 16:59:28 -070028//===---
29// Tests for \brief and its aliases.
30//===---
Dmitri Gribenko61322bc2012-11-15 22:03:13 +000031
Stephen Hines651f13c2014-04-23 16:59:28 -070032/// Aaa.
33void test_cmd_brief_like_1();
34
35// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +000036// CHECK-NEXT: CommentAST=[
37// CHECK-NEXT: (CXComment_FullComment
38// CHECK-NEXT: (CXComment_Paragraph
39// CHECK-NEXT: (CXComment_Text Text=[ Aaa.])))]
40
41/// \brief Aaa.
Stephen Hines651f13c2014-04-23 16:59:28 -070042void test_cmd_brief_like_2();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +000043
Stephen Hines651f13c2014-04-23 16:59:28 -070044// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +000045// CHECK-NEXT: CommentAST=[
46// CHECK-NEXT: (CXComment_FullComment
47// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
48// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
49// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
50// CHECK-NEXT: (CXComment_Paragraph
51// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
52
53/// \short Aaa.
Stephen Hines651f13c2014-04-23 16:59:28 -070054void test_cmd_brief_like_3();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +000055
Stephen Hines651f13c2014-04-23 16:59:28 -070056// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +000057// CHECK-NEXT: CommentAST=[
58// CHECK-NEXT: (CXComment_FullComment
59// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
60// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
61// CHECK-NEXT: (CXComment_BlockCommand CommandName=[short]
62// CHECK-NEXT: (CXComment_Paragraph
63// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
64
65/// Aaa.
66///
67/// \brief Bbb.
Stephen Hines651f13c2014-04-23 16:59:28 -070068void test_cmd_brief_like_4();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +000069
Stephen Hines651f13c2014-04-23 16:59:28 -070070// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +000071// CHECK-NEXT: CommentAST=[
72// CHECK-NEXT: (CXComment_FullComment
73// CHECK-NEXT: (CXComment_Paragraph
74// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
75// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
76// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
77// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
78// CHECK-NEXT: (CXComment_Paragraph
79// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
80
81/// Aaa.
82///
83/// \brief Bbb.
84///
85/// Ccc.
Stephen Hines651f13c2014-04-23 16:59:28 -070086void test_cmd_brief_like_5();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +000087
Stephen Hines651f13c2014-04-23 16:59:28 -070088// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +000089// CHECK-NEXT: CommentAST=[
90// CHECK-NEXT: (CXComment_FullComment
91// CHECK-NEXT: (CXComment_Paragraph
92// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
93// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
94// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
95// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
96// CHECK-NEXT: (CXComment_Paragraph
97// CHECK-NEXT: (CXComment_Text Text=[ Bbb.])))
98// CHECK-NEXT: (CXComment_Paragraph
99// CHECK-NEXT: (CXComment_Text Text=[ Ccc.])))]
100
101/// \brief Aaa.
102/// \brief Bbb.
Stephen Hines651f13c2014-04-23 16:59:28 -0700103void test_cmd_brief_like_6();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000104
Stephen Hines651f13c2014-04-23 16:59:28 -0700105// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000106// CHECK-NEXT: CommentAST=[
107// CHECK-NEXT: (CXComment_FullComment
108// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
109// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
110// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
111// CHECK-NEXT: (CXComment_Paragraph
112// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
113// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
114// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
115// CHECK-NEXT: (CXComment_Paragraph
116// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
117
Stephen Hines651f13c2014-04-23 16:59:28 -0700118/// \abstract Aaa.
119///
120/// Bbb.
121void test_cmd_brief_like_7();
122
123// 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>]
124// CHECK-NEXT: CommentAST=[
125// CHECK-NEXT: (CXComment_FullComment
126// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
127// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
128// CHECK-NEXT: (CXComment_BlockCommand CommandName=[abstract]
129// CHECK-NEXT: (CXComment_Paragraph
130// CHECK-NEXT: (CXComment_Text Text=[ Aaa.])))
131// CHECK-NEXT: (CXComment_Paragraph
132// CHECK-NEXT: (CXComment_Text Text=[ Bbb.])))]
133
134//===---
135// Tests for \returns and its aliases.
136//===---
137
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000138/// Aaa.
139///
140/// \return Bbb.
Stephen Hines651f13c2014-04-23 16:59:28 -0700141void test_cmd_returns_like_1();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000142
Stephen Hines651f13c2014-04-23 16:59:28 -0700143// 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>]
Fariborz Jahaniand52b20c2013-06-21 23:49:29 +0000144
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000145// CHECK-NEXT: CommentAST=[
146// CHECK-NEXT: (CXComment_FullComment
147// CHECK-NEXT: (CXComment_Paragraph
148// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
149// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
150// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
151// CHECK-NEXT: (CXComment_BlockCommand CommandName=[return]
152// CHECK-NEXT: (CXComment_Paragraph
153// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
154
155/// Aaa.
156///
157/// \returns Bbb.
Stephen Hines651f13c2014-04-23 16:59:28 -0700158void test_cmd_returns_like_2();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000159
Stephen Hines651f13c2014-04-23 16:59:28 -0700160// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000161// CHECK-NEXT: CommentAST=[
162// CHECK-NEXT: (CXComment_FullComment
163// CHECK-NEXT: (CXComment_Paragraph
164// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
165// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
166// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
167// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
168// CHECK-NEXT: (CXComment_Paragraph
169// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
170
171/// Aaa.
172///
173/// \result Bbb.
Stephen Hines651f13c2014-04-23 16:59:28 -0700174void test_cmd_returns_like_3();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000175
Stephen Hines651f13c2014-04-23 16:59:28 -0700176// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000177// CHECK-NEXT: CommentAST=[
178// CHECK-NEXT: (CXComment_FullComment
179// CHECK-NEXT: (CXComment_Paragraph
180// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
181// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
182// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
183// CHECK-NEXT: (CXComment_BlockCommand CommandName=[result]
184// CHECK-NEXT: (CXComment_Paragraph
185// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
186
187/// \returns Aaa.
188/// \returns Bbb.
Stephen Hines651f13c2014-04-23 16:59:28 -0700189void test_cmd_returns_like_4();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000190
Stephen Hines651f13c2014-04-23 16:59:28 -0700191// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000192// CHECK-NEXT: CommentAST=[
193// CHECK-NEXT: (CXComment_FullComment
194// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
195// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
196// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
197// CHECK-NEXT: (CXComment_Paragraph
198// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
199// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
200// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
201// CHECK-NEXT: (CXComment_Paragraph
202// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
203
204/// Aaa.
205///
206/// Bbb.
207///
208/// \returns Ccc.
Stephen Hines651f13c2014-04-23 16:59:28 -0700209void test_cmd_returns_like_5();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000210
Stephen Hines651f13c2014-04-23 16:59:28 -0700211// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000212// CHECK-NEXT: CommentAST=[
213// CHECK-NEXT: (CXComment_FullComment
214// CHECK-NEXT: (CXComment_Paragraph
215// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
216// CHECK-NEXT: (CXComment_Paragraph
217// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))
218// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
219// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
220// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
221// CHECK-NEXT: (CXComment_Paragraph
222// CHECK-NEXT: (CXComment_Text Text=[ Ccc.]))))]
223
Stephen Hines651f13c2014-04-23 16:59:28 -0700224//===---
225// Tests for \param.
226//===---
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000227
Stephen Hines651f13c2014-04-23 16:59:28 -0700228/// \param
229void test_cmd_param_1(int x1);
230
231// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000232// CHECK-NEXT: CommentAST=[
233// CHECK-NEXT: (CXComment_FullComment
234// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
235// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
236// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[] ParamIndex=Invalid
237// CHECK-NEXT: (CXComment_Paragraph IsWhitespace)))]
238
239/// \param x1 Aaa.
Stephen Hines651f13c2014-04-23 16:59:28 -0700240void test_cmd_param_2(int x1);
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000241
Stephen Hines651f13c2014-04-23 16:59:28 -0700242// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000243// CHECK-NEXT: CommentAST=[
244// CHECK-NEXT: (CXComment_FullComment
245// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
246// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
247// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
248// CHECK-NEXT: (CXComment_Paragraph
249// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
250
251/// \param zzz Aaa.
Stephen Hines651f13c2014-04-23 16:59:28 -0700252void test_cmd_param_3(int x1);
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000253
Stephen Hines651f13c2014-04-23 16:59:28 -0700254// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000255// CHECK-NEXT: CommentAST=[
256// CHECK-NEXT: (CXComment_FullComment
257// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
258// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
259// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[zzz] ParamIndex=Invalid
260// CHECK-NEXT: (CXComment_Paragraph
261// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
262
263/// \param x2 Bbb.
264/// \param x1 Aaa.
Stephen Hines651f13c2014-04-23 16:59:28 -0700265void test_cmd_param_4(int x1, int x2);
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000266
Stephen Hines651f13c2014-04-23 16:59:28 -0700267// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000268// CHECK-NEXT: CommentAST=[
269// CHECK-NEXT: (CXComment_FullComment
270// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
271// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
272// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
273// CHECK-NEXT: (CXComment_Paragraph
274// CHECK-NEXT: (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
275// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
276// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
277// CHECK-NEXT: (CXComment_Paragraph
278// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
279
280/// \param x2 Bbb.
281/// \param zzz Aaa.
282/// \param x1 Aaa.
Stephen Hines651f13c2014-04-23 16:59:28 -0700283void test_cmd_param_5(int x1, int x2);
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000284
Stephen Hines651f13c2014-04-23 16:59:28 -0700285// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000286// CHECK-NEXT: CommentAST=[
287// CHECK-NEXT: (CXComment_FullComment
288// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
289// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
290// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
291// CHECK-NEXT: (CXComment_Paragraph
292// CHECK-NEXT: (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
293// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
294// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[zzz] ParamIndex=Invalid
295// CHECK-NEXT: (CXComment_Paragraph
296// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
297// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
298// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
299// CHECK-NEXT: (CXComment_Paragraph
300// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
301
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000302/// \param x1 Aaa.
303/// \param ... Bbb.
Stephen Hines651f13c2014-04-23 16:59:28 -0700304void test_cmd_param_6(int x1, ...);
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000305
Stephen Hines651f13c2014-04-23 16:59:28 -0700306// 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>]
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000307// CHECK-NEXT: CommentAST=[
308// CHECK-NEXT: (CXComment_FullComment
309// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
310// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
311// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
312// CHECK-NEXT: (CXComment_Paragraph
313// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
314// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
315// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[...] ParamIndex=4294967295
316// CHECK-NEXT: (CXComment_Paragraph
Stephen Hines651f13c2014-04-23 16:59:28 -0700317// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
318
319//===---
320// Tests for \tparam.
321//===---
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000322
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000323/// \tparam
324/// \param aaa Blah blah
325template<typename T>
Stephen Hines651f13c2014-04-23 16:59:28 -0700326void test_cmd_tparam_1(T aaa);
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000327
Stephen Hines651f13c2014-04-23 16:59:28 -0700328// 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@&gt;1#Ttest_cmd_tparam_1#t0.0#</USR><Declaration>template &lt;typename T&gt; 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000329// CHECK-NEXT: CommentAST=[
330// CHECK-NEXT: (CXComment_FullComment
331// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
332// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
333// CHECK-NEXT: (CXComment_TParamCommand ParamName=[] ParamPosition=Invalid
334// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
335// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
336// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[aaa] ParamIndex=0
337// CHECK-NEXT: (CXComment_Paragraph
338// CHECK-NEXT: (CXComment_Text Text=[ Blah blah]))))]
339
340/// \tparam T
341/// \param aaa Blah blah
342template<typename T>
Stephen Hines651f13c2014-04-23 16:59:28 -0700343void test_cmd_tparam_2(T aaa);
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000344
Stephen Hines651f13c2014-04-23 16:59:28 -0700345// 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@&gt;1#Ttest_cmd_tparam_2#t0.0#</USR><Declaration>template &lt;typename T&gt; 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000346// CHECK-NEXT: CommentAST=[
347// CHECK-NEXT: (CXComment_FullComment
348// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
349// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
350// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T] ParamPosition={0}
351// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
352// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
353// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[aaa] ParamIndex=0
354// CHECK-NEXT: (CXComment_Paragraph
355// CHECK-NEXT: (CXComment_Text Text=[ Blah blah]))))]
356
357/// \tparam T2 Bbb
358/// \tparam T1 Aaa
359template<typename T1, typename T2>
Stephen Hines651f13c2014-04-23 16:59:28 -0700360void test_cmd_tparam_3(T1 aaa, T2 bbb);
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000361
Stephen Hines651f13c2014-04-23 16:59:28 -0700362// 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@&gt;2#T#Ttest_cmd_tparam_3#t0.0#t0.1#</USR><Declaration>template &lt;typename T1, typename T2&gt; 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000363// CHECK-NEXT: CommentAST=[
364// CHECK-NEXT: (CXComment_FullComment
365// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
366// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
367// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T2] ParamPosition={1}
368// CHECK-NEXT: (CXComment_Paragraph
369// CHECK-NEXT: (CXComment_Text Text=[ Bbb] HasTrailingNewline)
370// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
371// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T1] ParamPosition={0}
372// CHECK-NEXT: (CXComment_Paragraph
373// CHECK-NEXT: (CXComment_Text Text=[ Aaa]))))]
374
375/// \tparam T2 Bbb
376/// \tparam U Zzz
377/// \tparam V Ccc
378/// \tparam T1 Aaa
379template<typename T1, typename T2, int V>
Stephen Hines651f13c2014-04-23 16:59:28 -0700380void test_cmd_tparam_4(T1 aaa, T2 bbb);
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000381
Stephen Hines651f13c2014-04-23 16:59:28 -0700382// 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@&gt;3#T#T#NItest_cmd_tparam_4#t0.0#t0.1#</USR><Declaration>template &lt;typename T1, typename T2, int V&gt;\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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000383// CHECK-NEXT: CommentAST=[
384// CHECK-NEXT: (CXComment_FullComment
385// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
386// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
387// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T2] ParamPosition={1}
388// CHECK-NEXT: (CXComment_Paragraph
389// CHECK-NEXT: (CXComment_Text Text=[ Bbb] HasTrailingNewline)
390// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
391// CHECK-NEXT: (CXComment_TParamCommand ParamName=[U] ParamPosition=Invalid
392// CHECK-NEXT: (CXComment_Paragraph
393// CHECK-NEXT: (CXComment_Text Text=[ Zzz] HasTrailingNewline)
394// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
395// CHECK-NEXT: (CXComment_TParamCommand ParamName=[V] ParamPosition={2}
396// CHECK-NEXT: (CXComment_Paragraph
397// CHECK-NEXT: (CXComment_Text Text=[ Ccc] HasTrailingNewline)
398// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
399// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T1] ParamPosition={0}
400// CHECK-NEXT: (CXComment_Paragraph
401// CHECK-NEXT: (CXComment_Text Text=[ Aaa]))))]
402
403/// \tparam TTT Ddd
404/// \tparam C Ccc
405/// \tparam T Aaa
406/// \tparam TT Bbb
407template<template<template<typename T> class TT, class C> class TTT>
Stephen Hines651f13c2014-04-23 16:59:28 -0700408void test_cmd_tparam_5();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000409
Stephen Hines651f13c2014-04-23 16:59:28 -0700410// 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@&gt;1#t&gt;2#t&gt;1#T#Ttest_cmd_tparam_5#</USR><Declaration>template &lt;template &lt;template &lt;typename T&gt; class TT, class C&gt; class TTT&gt;\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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000411// CHECK-NEXT: CommentAST=[
412// CHECK-NEXT: (CXComment_FullComment
413// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
414// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
415// CHECK-NEXT: (CXComment_TParamCommand ParamName=[TTT] ParamPosition={0}
416// CHECK-NEXT: (CXComment_Paragraph
417// CHECK-NEXT: (CXComment_Text Text=[ Ddd] HasTrailingNewline)
418// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
419// CHECK-NEXT: (CXComment_TParamCommand ParamName=[C] ParamPosition={0, 1}
420// CHECK-NEXT: (CXComment_Paragraph
421// CHECK-NEXT: (CXComment_Text Text=[ Ccc] HasTrailingNewline)
422// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
423// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T] ParamPosition={0, 0, 0}
424// CHECK-NEXT: (CXComment_Paragraph
425// CHECK-NEXT: (CXComment_Text Text=[ Aaa] HasTrailingNewline)
426// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
427// CHECK-NEXT: (CXComment_TParamCommand ParamName=[TT] ParamPosition={0, 0}
428// CHECK-NEXT: (CXComment_Paragraph
429// CHECK-NEXT: (CXComment_Text Text=[ Bbb]))))]
430
Stephen Hines651f13c2014-04-23 16:59:28 -0700431//===---
432// Tests for interaction between commands.
433//===---
434
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000435/// \brief Aaa.
436///
437/// Bbb.
438///
439/// \param x2 Ddd.
440/// \param x1 Ccc.
441/// \returns Eee.
Stephen Hines651f13c2014-04-23 16:59:28 -0700442void test_full_comment_1(int x1, int x2);
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000443
Stephen Hines651f13c2014-04-23 16:59:28 -0700444// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000445// CHECK-NEXT: CommentAST=[
446// CHECK-NEXT: (CXComment_FullComment
447// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
448// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
449// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
450// CHECK-NEXT: (CXComment_Paragraph
451// CHECK-NEXT: (CXComment_Text Text=[ Aaa.])))
452// CHECK-NEXT: (CXComment_Paragraph
453// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))
454// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
455// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
456// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
457// CHECK-NEXT: (CXComment_Paragraph
458// CHECK-NEXT: (CXComment_Text Text=[ Ddd.] HasTrailingNewline)
459// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
460// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
461// CHECK-NEXT: (CXComment_Paragraph
462// CHECK-NEXT: (CXComment_Text Text=[ Ccc.] HasTrailingNewline)
463// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
464// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
465// CHECK-NEXT: (CXComment_Paragraph
466// CHECK-NEXT: (CXComment_Text Text=[ Eee.]))))]
467
Stephen Hines651f13c2014-04-23 16:59:28 -0700468//===---
469// Misc tests.
470//===---
471
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000472/// <br><a href="http://example.com/">Aaa</a>
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000473void comment_to_html_conversion_24();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000474
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000475// 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>&lt;/a&gt;</rawHTML></Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000476// CHECK-NEXT: CommentAST=[
477// CHECK-NEXT: (CXComment_FullComment
478// CHECK-NEXT: (CXComment_Paragraph
479// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
480// CHECK-NEXT: (CXComment_HTMLStartTag Name=[br])
481// CHECK-NEXT: (CXComment_HTMLStartTag Name=[a] Attrs: href=http://example.com/)
482// CHECK-NEXT: (CXComment_Text Text=[Aaa])
483// CHECK-NEXT: (CXComment_HTMLEndTag Name=[a])))]
484
485/// \verbatim
486/// <a href="http://example.com/">Aaa</a>
487/// <a href='http://example.com/'>Aaa</a>
488/// \endverbatim
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000489void comment_to_html_conversion_25();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000490
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000491// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_25:{{.*}} FullCommentAsHTML=[<pre> &lt;a href=&quot;http:&#47;&#47;example.com&#47;&quot;&gt;Aaa&lt;&#47;a&gt;\n &lt;a href=&#39;http:&#47;&#47;example.com&#47;&#39;&gt;Aaa&lt;&#47;a&gt;</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"> &lt;a href=&quot;http://example.com/&quot;&gt;Aaa&lt;/a&gt;\n &lt;a href=&apos;http://example.com/&apos;&gt;Aaa&lt;/a&gt;</Verbatim></Discussion></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000492// CHECK-NEXT: CommentAST=[
493// CHECK-NEXT: (CXComment_FullComment
494// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
495// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
496// CHECK-NEXT: (CXComment_VerbatimBlockCommand CommandName=[verbatim]
497// CHECK-NEXT: (CXComment_VerbatimBlockLine Text=[ <a href="http://example.com/">Aaa</a>])
498// CHECK-NEXT: (CXComment_VerbatimBlockLine Text=[ <a href='http://example.com/'>Aaa</a>])))]
499
Dmitri Gribenkoc31fbe32013-11-09 03:50:37 +0000500/// \def foo_def
501/// \fn foo_fn
502/// \namespace foo_namespace
503/// \overload foo_overload
504/// \property foo_property
505/// \typedef foo_typedef
506/// \var foo_var
507/// \function foo_function
508/// \class foo_class
509/// \method foo_method
510/// \interface foo_interface
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000511/// Blah blah.
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000512void comment_to_html_conversion_26();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000513
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000514// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000515// CHECK-NEXT: CommentAST=[
516// CHECK-NEXT: (CXComment_FullComment
517// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
518// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
Dmitri Gribenkoc31fbe32013-11-09 03:50:37 +0000519// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_def])
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000520// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
521// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
Dmitri Gribenkoc31fbe32013-11-09 03:50:37 +0000522// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_fn])
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000523// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
524// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
Dmitri Gribenkoc31fbe32013-11-09 03:50:37 +0000525// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_namespace])
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000526// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
527// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
Dmitri Gribenkoc31fbe32013-11-09 03:50:37 +0000528// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_overload])
529// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
530// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
531// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_property])
532// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
533// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
534// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_typedef])
535// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
536// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
537// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_var])
538// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
539// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
540// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_function])
541// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
542// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
543// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_class])
544// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
545// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
546// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_method])
547// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
548// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
549// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo_interface])
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000550// CHECK-NEXT: (CXComment_Paragraph
551// CHECK-NEXT: (CXComment_Text Text=[ Blah blah.])))]
552
553/// \unknown
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000554void comment_to_html_conversion_27();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000555
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000556// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000557// CHECK-NEXT: CommentAST=[
558// CHECK-NEXT: (CXComment_FullComment
559// CHECK-NEXT: (CXComment_Paragraph
560// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
561// CHECK-NEXT: (CXComment_InlineCommand CommandName=[unknown] RenderNormal)))]
562
563/// \b Aaa
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000564void comment_to_html_conversion_28();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000565
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000566// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000567// CHECK-NEXT: CommentAST=[
568// CHECK-NEXT: (CXComment_FullComment
569// CHECK-NEXT: (CXComment_Paragraph
570// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
571// CHECK-NEXT: (CXComment_InlineCommand CommandName=[b] RenderBold Arg[0]=Aaa)))]
572
573/// \c Aaa \p Bbb
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000574void comment_to_html_conversion_29();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000575
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000576// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000577// CHECK-NEXT: CommentAST=[
578// CHECK-NEXT: (CXComment_FullComment
579// CHECK-NEXT: (CXComment_Paragraph
580// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
581// CHECK-NEXT: (CXComment_InlineCommand CommandName=[c] RenderMonospaced Arg[0]=Aaa)
582// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
583// CHECK-NEXT: (CXComment_InlineCommand CommandName=[p] RenderMonospaced Arg[0]=Bbb)))]
584
585/// \a Aaa \e Bbb \em Ccc
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000586void comment_to_html_conversion_30();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000587
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000588// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000589// CHECK-NEXT: CommentAST=[
590// CHECK-NEXT: (CXComment_FullComment
591// CHECK-NEXT: (CXComment_Paragraph
592// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
593// CHECK-NEXT: (CXComment_InlineCommand CommandName=[a] RenderEmphasized Arg[0]=Aaa)
594// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
595// CHECK-NEXT: (CXComment_InlineCommand CommandName=[e] RenderEmphasized Arg[0]=Bbb)
596// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
597// CHECK-NEXT: (CXComment_InlineCommand CommandName=[em] RenderEmphasized Arg[0]=Ccc)))]
598
599/// \a 1<2 \e 3<4 \em 5<6 \param 7<8 aaa \tparam 9<10 bbb
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000600void comment_to_html_conversion_31();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000601
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000602// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_31:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <em>1&lt;2</em> <em>3&lt;4</em> <em>5&lt;6</em> </p><dl><dt class="tparam-name-index-invalid">9&lt;10</dt><dd class="tparam-descr-index-invalid"> bbb</dd></dl><dl><dt class="param-name-index-invalid">7&lt;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&lt;2</emphasized> <emphasized>3&lt;4</emphasized> <emphasized>5&lt;6</emphasized> </Para></Abstract><TemplateParameters><Parameter><Name>9&lt;10</Name><Discussion><Para> bbb</Para></Discussion></Parameter></TemplateParameters><Parameters><Parameter><Name>7&lt;8</Name><Direction isExplicit="0">in</Direction><Discussion><Para> aaa </Para></Discussion></Parameter></Parameters></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000603// CHECK-NEXT: CommentAST=[
604// CHECK-NEXT: (CXComment_FullComment
605// CHECK-NEXT: (CXComment_Paragraph
606// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
607// CHECK-NEXT: (CXComment_InlineCommand CommandName=[a] RenderEmphasized Arg[0]=1<2)
608// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
609// CHECK-NEXT: (CXComment_InlineCommand CommandName=[e] RenderEmphasized Arg[0]=3<4)
610// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
611// CHECK-NEXT: (CXComment_InlineCommand CommandName=[em] RenderEmphasized Arg[0]=5<6)
612// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
613// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[7<8] ParamIndex=Invalid
614// CHECK-NEXT: (CXComment_Paragraph
615// CHECK-NEXT: (CXComment_Text Text=[ aaa ])))
616// CHECK-NEXT: (CXComment_TParamCommand ParamName=[9<10] ParamPosition=Invalid
617// CHECK-NEXT: (CXComment_Paragraph
618// CHECK-NEXT: (CXComment_Text Text=[ bbb]))))]
619
620/// \\ \@ \& \$ \# \< \> \% \" \. \::
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000621void comment_to_html_conversion_32();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000622
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000623// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_32:{{.*}} FullCommentAsHTML=[<p class="para-brief"> \ @ &amp; $ # &lt; &gt; % &quot; . ::</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> \ @ &amp; $ # &lt; &gt; % &quot; . ::</Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000624// CHECK-NEXT: CommentAST=[
625// CHECK-NEXT: (CXComment_FullComment
626// CHECK-NEXT: (CXComment_Paragraph
627// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
628// CHECK-NEXT: (CXComment_Text Text=[\])
629// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
630// CHECK-NEXT: (CXComment_Text Text=[@])
631// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
632// CHECK-NEXT: (CXComment_Text Text=[&])
633// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
634// CHECK-NEXT: (CXComment_Text Text=[$])
635// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
636// CHECK-NEXT: (CXComment_Text Text=[#])
637// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
638// CHECK-NEXT: (CXComment_Text Text=[<])
639// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
640// CHECK-NEXT: (CXComment_Text Text=[>])
641// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
642// CHECK-NEXT: (CXComment_Text Text=[%])
643// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
644// CHECK-NEXT: (CXComment_Text Text=["])
645// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
646// CHECK-NEXT: (CXComment_Text Text=[.])
647// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
648// CHECK-NEXT: (CXComment_Text Text=[::])))]
649
Dmitri Gribenko44a3ddb2013-01-19 22:04:44 +0000650/// &amp; &lt; &gt; &quot; &apos; &#109;&#101;&#111;&#119; &#x6d;&#x65;&#x6F;&#X77;
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000651void comment_to_html_conversion_33();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000652
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000653// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_33:{{.*}} FullCommentAsHTML=[<p class="para-brief"> &amp; &lt; &gt; &quot; &#39; 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> &amp; &lt; &gt; &quot; &apos; meow meow</Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000654// CHECK-NEXT: CommentAST=[
655// CHECK-NEXT: (CXComment_FullComment
656// CHECK-NEXT: (CXComment_Paragraph
657// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
658// CHECK-NEXT: (CXComment_Text Text=[&])
659// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
660// CHECK-NEXT: (CXComment_Text Text=[<])
661// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
662// CHECK-NEXT: (CXComment_Text Text=[>])
663// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
Dmitri Gribenko44a3ddb2013-01-19 22:04:44 +0000664// CHECK-NEXT: (CXComment_Text Text=["])
665// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
666// CHECK-NEXT: (CXComment_Text Text=['])
667// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
668// CHECK-NEXT: (CXComment_Text Text=[m])
669// CHECK-NEXT: (CXComment_Text Text=[e])
670// CHECK-NEXT: (CXComment_Text Text=[o])
671// CHECK-NEXT: (CXComment_Text Text=[w])
672// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
673// CHECK-NEXT: (CXComment_Text Text=[m])
674// CHECK-NEXT: (CXComment_Text Text=[e])
675// CHECK-NEXT: (CXComment_Text Text=[o])
676// CHECK-NEXT: (CXComment_Text Text=[w])))]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000677
678/// <em>0&lt;i</em>
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000679void comment_to_html_conversion_34();
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000680
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000681// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_34:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <em>0&lt;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&lt;i<rawHTML>&lt;/em&gt;</rawHTML></Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000682// CHECK-NEXT: CommentAST=[
683// CHECK-NEXT: (CXComment_FullComment
684// CHECK-NEXT: (CXComment_Paragraph
685// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
686// CHECK-NEXT: (CXComment_HTMLStartTag Name=[em])
687// CHECK-NEXT: (CXComment_Text Text=[0])
688// CHECK-NEXT: (CXComment_Text Text=[<])
689// CHECK-NEXT: (CXComment_Text Text=[i])
690// CHECK-NEXT: (CXComment_HTMLEndTag Name=[em])))]
691
Dmitri Gribenkof494e482013-01-30 14:44:47 +0000692// rdar://12392215
693/// &copy; the copyright symbol
694/// &trade; the trade mark symbol
695/// &reg; the registered trade mark symbol
Stephen Hines651f13c2014-04-23 16:59:28 -0700696/// &nbsp; a non-breakable space.
Dmitri Gribenkof494e482013-01-30 14:44:47 +0000697/// &Delta; Greek letter Delta Δ.
698/// &Gamma; Greek letter Gamma Γ.
Dmitri Gribenkoc5b00542013-06-24 04:41:32 +0000699void comment_to_html_conversion_35();
Dmitri Gribenkof494e482013-01-30 14:44:47 +0000700
Stephen Hines651f13c2014-04-23 16:59:28 -0700701// 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>]
Dmitri Gribenkof494e482013-01-30 14:44:47 +0000702// CHECK-NEXT: CommentAST=[
703// CHECK-NEXT: (CXComment_FullComment
704// CHECK-NEXT: (CXComment_Paragraph
705// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
706// CHECK-NEXT: (CXComment_Text Text=[©])
707// CHECK-NEXT: (CXComment_Text Text=[ the copyright symbol] HasTrailingNewline)
708// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
709// CHECK-NEXT: (CXComment_Text Text=[â„¢])
710// CHECK-NEXT: (CXComment_Text Text=[ the trade mark symbol] HasTrailingNewline)
711// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
712// CHECK-NEXT: (CXComment_Text Text=[®])
713// CHECK-NEXT: (CXComment_Text Text=[ the registered trade mark symbol] HasTrailingNewline)
714// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
715// CHECK-NEXT: (CXComment_Text Text=[ ])
Stephen Hines651f13c2014-04-23 16:59:28 -0700716// CHECK-NEXT: (CXComment_Text Text=[ a non-breakable space.] HasTrailingNewline)
Dmitri Gribenkof494e482013-01-30 14:44:47 +0000717// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
718// CHECK-NEXT: (CXComment_Text Text=[Δ])
719// CHECK-NEXT: (CXComment_Text Text=[ Greek letter Delta Δ.] HasTrailingNewline)
720// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
721// CHECK-NEXT: (CXComment_Text Text=[Γ])
722// CHECK-NEXT: (CXComment_Text Text=[ Greek letter Gamma Γ.])))]
723
Stephen Hines6bcf27b2014-05-29 04:14:42 -0700724/// <h1 id="]]>">Aaa</h1>
725void comment_to_html_conversion_36();
726
727// 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>&lt;/h1&gt;</rawHTML></Para></Abstract></Function>]
728// CHECK-NEXT: CommentAST=[
729// CHECK-NEXT: (CXComment_FullComment
730// CHECK-NEXT: (CXComment_Paragraph
731// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
732// CHECK-NEXT: (CXComment_HTMLStartTag Name=[h1] Attrs: id=]]>)
733// CHECK-NEXT: (CXComment_Text Text=[Aaa])
734// CHECK-NEXT: (CXComment_HTMLEndTag Name=[h1])))]
735
Dmitri Gribenkof494e482013-01-30 14:44:47 +0000736
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000737/// Aaa.
738class comment_to_xml_conversion_01 {
Manuel Klimek36fab8d2013-01-10 13:24:24 +0000739// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000740
741 /// \param aaa Blah blah.
742 comment_to_xml_conversion_01(int aaa);
743
Fariborz Jahanian02a2e5a2012-12-05 19:54:11 +0000744// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000745
746 /// Aaa.
747 ~comment_to_xml_conversion_01();
748
Stephen Hines651f13c2014-04-23 16:59:28 -0700749// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000750
751 /// \param aaa Blah blah.
752 int comment_to_xml_conversion_02(int aaa);
753
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000754// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000755
756 /// \param aaa Blah blah.
757 static int comment_to_xml_conversion_03(int aaa);
758
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000759// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000760
761 /// Aaa.
762 int comment_to_xml_conversion_04;
763
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000764// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000765
766 /// Aaa.
767 static int comment_to_xml_conversion_05;
768
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000769// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000770
771 /// \param aaa Blah blah.
772 void operator()(int aaa);
773
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000774// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000775
776 /// Aaa.
777 operator bool();
778
Stephen Hines651f13c2014-04-23 16:59:28 -0700779// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000780
781 /// Aaa.
782 typedef int comment_to_xml_conversion_06;
783
784// USR is line-dependent here, so filter it with a regexp.
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000785// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000786
787 /// Aaa.
788 using comment_to_xml_conversion_07 = int;
789
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000790// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000791
792 /// Aaa.
793 template<typename T, typename U>
794 class comment_to_xml_conversion_08 { };
795
Manuel Klimek36fab8d2013-01-10 13:24:24 +0000796// 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&gt;2#T#T@comment_to_xml_conversion_08</USR><Declaration>template &lt;typename T, typename U&gt; class comment_to_xml_conversion_08 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Class>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000797
798 /// Aaa.
799 template<typename T>
800 using comment_to_xml_conversion_09 = comment_to_xml_conversion_08<T, int>;
801
Manuel Klimekd4397b92013-01-04 23:34:14 +0000802// 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 &lt;typename T&gt;\nusing comment_to_xml_conversion_09 = comment_to_xml_conversion_08&lt;T, int&gt;</Declaration><Abstract><Para> Aaa.</Para></Abstract></Typedef>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000803};
804
805/// Aaa.
806template<typename T, typename U>
807void comment_to_xml_conversion_10(T aaa, U bbb);
808
Dmitri Gribenko27c2cb22013-01-07 18:45:48 +0000809// 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@&gt;2#T#Tcomment_to_xml_conversion_10#t0.0#t0.1#</USR><Declaration>template &lt;typename T, typename U&gt;\nvoid comment_to_xml_conversion_10(T aaa, U bbb)</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000810
811/// Aaa.
812template<>
813void comment_to_xml_conversion_10(int aaa, int bbb);
814
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000815// 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&lt;#I#I&gt;#I#I#</USR><Declaration>void comment_to_xml_conversion_10(int aaa, int bbb)</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000816
817/// Aaa.
818template<typename T, typename U>
819class comment_to_xml_conversion_11 { };
820
Manuel Klimek36fab8d2013-01-10 13:24:24 +0000821// 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&gt;2#T#T@comment_to_xml_conversion_11</USR><Declaration>template &lt;typename T, typename U&gt; class comment_to_xml_conversion_11 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Class>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000822
823/// Aaa.
824template<typename T>
825class comment_to_xml_conversion_11<T, int> { };
826
Manuel Klimek36fab8d2013-01-10 13:24:24 +0000827// 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&gt;1#T@comment_to_xml_conversion_11&gt;#t0.0#I</USR><Declaration>class comment_to_xml_conversion_11 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Class>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000828
829/// Aaa.
830template<>
831class comment_to_xml_conversion_11<int, int> { };
832
Manuel Klimek36fab8d2013-01-10 13:24:24 +0000833// 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&gt;#I#I</USR><Declaration>class comment_to_xml_conversion_11 {}</Declaration><Abstract><Para> Aaa.</Para></Abstract></Class>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000834
835/// Aaa.
836int comment_to_xml_conversion_12;
837
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000838// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000839
840/// Aaa.
841namespace comment_to_xml_conversion_13 {
Daniel Jasper85b03eb2013-05-31 15:15:41 +0000842// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000843
844 /// Aaa.
845 namespace comment_to_xml_conversion_14 {
Daniel Jasper85b03eb2013-05-31 15:15:41 +0000846// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000847 }
848}
849
850/// Aaa.
851enum comment_to_xml_conversion_15 {
Manuel Klimek2f1ac412013-01-21 16:42:44 +0000852// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000853
854 /// Aaa.
855 comment_to_xml_conversion_16
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000856// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000857};
858
859/// Aaa.
860enum class comment_to_xml_conversion_17 {
Manuel Klimek2f1ac412013-01-21 16:42:44 +0000861// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000862
863 /// Aaa.
864 comment_to_xml_conversion_18
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000865// 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>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000866};
867
Stephen Hines6bcf27b2014-05-29 04:14:42 -0700868/// <a href="http://example.org/">
869void comment_to_xml_conversion_unsafe_html_01();
870// 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>]
871
872/// <a href="http://example.org/"><em>Aaa</em>
873void comment_to_xml_conversion_unsafe_html_02();
874// 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>&lt;/em&gt;</rawHTML></Para></Abstract></Function>]
875
876/// <em>Aaa
877void comment_to_xml_conversion_unsafe_html_03();
878// 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>]
879
880/// <em>Aaa</b></em>
881void comment_to_xml_conversion_unsafe_html_04();
882// 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">&lt;/b&gt;</rawHTML><rawHTML>&lt;/em&gt;</rawHTML></Para></Abstract></Function>]
883
884/// <em>Aaa</em></b>
885void comment_to_xml_conversion_unsafe_html_05();
886// 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>&lt;/em&gt;</rawHTML><rawHTML isMalformed="1">&lt;/b&gt;</rawHTML></Para></Abstract></Function>]
887
888/// </table>
889void comment_to_xml_conversion_unsafe_html_06();
890// 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">&lt;/table&gt;</rawHTML></Para></Abstract></Function>]
891
892/// <div onclick="alert('meow');">Aaa</div>
893void comment_to_xml_conversion_unsafe_html_07();
894// 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>&lt;/div&gt;</rawHTML></Para></Abstract></Function>]
895
Dmitri Gribenkoc3a064d2013-08-19 07:13:02 +0000896//===---
897// Check that we attach comments from the base class to derived classes if they don't have a comment.
898// rdar://13647476
899//===---
900
901/// BaseToSuper1_Base
902class BaseToSuper1_Base {};
903
904class BaseToSuper1_Derived : public BaseToSuper1_Base {};
905// 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>]
906
907
908/// BaseToSuper2_Base
909class BaseToSuper2_Base {};
910
911/// BaseToSuper2_Derived
912class BaseToSuper2_Derived : public BaseToSuper2_Base {};
913// 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>]
914
915class BaseToSuper2_MoreDerived : public BaseToSuper2_Derived {};
916// 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>]
917
918
919/// BaseToSuper3_Base
920class BaseToSuper3_Base {};
921
922class BaseToSuper3_DerivedA : public virtual BaseToSuper3_Base {};
923
924class BaseToSuper3_DerivedB : public virtual BaseToSuper3_Base {};
925
926class BaseToSuper3_MoreDerived : public BaseToSuper3_DerivedA, public BaseToSuper3_DerivedB {};
927// 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>]
928
929
930// Check that we propagate comments only through public inheritance.
931
932/// BaseToSuper4_Base
933class BaseToSuper4_Base {};
934
935/// BaseToSuper4_DerivedA
936class BaseToSuper4_DerivedA : virtual BaseToSuper4_Base {};
937
938class BaseToSuper4_DerivedB : public virtual BaseToSuper4_Base {};
939
940class BaseToSuper4_MoreDerived : BaseToSuper4_DerivedA, public BaseToSuper4_DerivedB {};
941// 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>]
942
943//===---
944// Check the representation of \todo in XML.
945//===---
946
Dmitri Gribenkoaf01bed2013-02-01 20:23:57 +0000947/// Aaa.
948/// \todo Bbb.
949void comment_to_xml_conversion_todo_1();
950// 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>]
951
952/// Aaa.
953/// \todo Bbb.
954///
955/// Ccc.
956void comment_to_xml_conversion_todo_2();
957// 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>]
958
959/// Aaa.
960/// \todo Bbb.
961///
962/// Ccc.
963/// \todo Ddd.
964void comment_to_xml_conversion_todo_3();
965// 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>]
966
967/// Aaa.
968/// \todo Bbb.
969/// \todo Ccc.
970void comment_to_xml_conversion_todo_4();
971// 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>]
972
Dmitri Gribenkof6785e32013-11-12 22:16:08 +0000973
974//===---
975// Test the representation of exception specifications in AST and XML.
976//===---
977
978/// Aaa.
979/// \throws Bbb.
980void comment_to_xml_conversion_exceptions_1();
981// 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>]
982// CHECK-NEXT: CommentAST=[
983// CHECK-NEXT: (CXComment_FullComment
984// CHECK-NEXT: (CXComment_Paragraph
985// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
986// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
987// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throws]
988// CHECK-NEXT: (CXComment_Paragraph
989// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
990
991/// Aaa.
992/// \throw Bbb.
993void comment_to_xml_conversion_exceptions_2();
994// 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>]
995// CHECK-NEXT: CommentAST=[
996// CHECK-NEXT: (CXComment_FullComment
997// CHECK-NEXT: (CXComment_Paragraph
998// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
999// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
1000// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throw]
1001// CHECK-NEXT: (CXComment_Paragraph
1002// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
1003
1004/// Aaa.
1005/// \exception Bbb.
1006void comment_to_xml_conversion_exceptions_3();
1007// 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>]
1008// CHECK-NEXT: CommentAST=[
1009// CHECK-NEXT: (CXComment_FullComment
1010// CHECK-NEXT: (CXComment_Paragraph
1011// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
1012// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
1013// CHECK-NEXT: (CXComment_BlockCommand CommandName=[exception]
1014// CHECK-NEXT: (CXComment_Paragraph
1015// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
1016
1017/// Aaa.
1018/// \throws Bbb.
1019/// \throws Ccc.
1020/// \throws Ddd.
1021void comment_to_xml_conversion_exceptions_4();
1022// 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>]
1023// CHECK-NEXT: CommentAST=[
1024// CHECK-NEXT: (CXComment_FullComment
1025// CHECK-NEXT: (CXComment_Paragraph
1026// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
1027// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
1028// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throws]
1029// CHECK-NEXT: (CXComment_Paragraph
1030// CHECK-NEXT: (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
1031// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
1032// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throws]
1033// CHECK-NEXT: (CXComment_Paragraph
1034// CHECK-NEXT: (CXComment_Text Text=[ Ccc.] HasTrailingNewline)
1035// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
1036// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throws]
1037// CHECK-NEXT: (CXComment_Paragraph
1038// CHECK-NEXT: (CXComment_Text Text=[ Ddd.]))))]
1039
1040/// Aaa.
1041/// \throws Bbb.
1042/// \throw Ccc.
1043void comment_to_xml_conversion_exceptions_5();
1044// 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>]
1045// CHECK-NEXT: CommentAST=[
1046// CHECK-NEXT: (CXComment_FullComment
1047// CHECK-NEXT: (CXComment_Paragraph
1048// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
1049// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
1050// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throws]
1051// CHECK-NEXT: (CXComment_Paragraph
1052// CHECK-NEXT: (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
1053// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
1054// CHECK-NEXT: (CXComment_BlockCommand CommandName=[throw]
1055// CHECK-NEXT: (CXComment_Paragraph
1056// CHECK-NEXT: (CXComment_Text Text=[ Ccc.]))))]
1057
Dmitri Gribenko61322bc2012-11-15 22:03:13 +00001058#endif
1059