blob: 590643590ffc3d01bf7961c8553bb96994263ea8 [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
28/// Aaa.
29void comment_to_html_conversion_1();
30
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +000031// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_1:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_1</Name><USR>c:@F@comment_to_html_conversion_1#</USR><Declaration>void comment_to_html_conversion_1()</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +000032// CHECK-NEXT: CommentAST=[
33// CHECK-NEXT: (CXComment_FullComment
34// CHECK-NEXT: (CXComment_Paragraph
35// CHECK-NEXT: (CXComment_Text Text=[ Aaa.])))]
36
37/// \brief Aaa.
38void comment_to_html_conversion_2();
39
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +000040// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_2:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_2</Name><USR>c:@F@comment_to_html_conversion_2#</USR><Declaration>void comment_to_html_conversion_2()</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +000041// CHECK-NEXT: CommentAST=[
42// CHECK-NEXT: (CXComment_FullComment
43// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
44// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
45// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
46// CHECK-NEXT: (CXComment_Paragraph
47// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
48
49/// \short Aaa.
50void comment_to_html_conversion_3();
51
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +000052// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_3:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_3</Name><USR>c:@F@comment_to_html_conversion_3#</USR><Declaration>void comment_to_html_conversion_3()</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +000053// CHECK-NEXT: CommentAST=[
54// CHECK-NEXT: (CXComment_FullComment
55// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
56// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
57// CHECK-NEXT: (CXComment_BlockCommand CommandName=[short]
58// CHECK-NEXT: (CXComment_Paragraph
59// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
60
61/// Aaa.
62///
63/// \brief Bbb.
64void comment_to_html_conversion_4();
65
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +000066// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_4:{{.*}} 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>comment_to_html_conversion_4</Name><USR>c:@F@comment_to_html_conversion_4#</USR><Declaration>void comment_to_html_conversion_4()</Declaration><Abstract><Para> Bbb.</Para></Abstract><Discussion><Para> Aaa.</Para></Discussion></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +000067// CHECK-NEXT: CommentAST=[
68// CHECK-NEXT: (CXComment_FullComment
69// CHECK-NEXT: (CXComment_Paragraph
70// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
71// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
72// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
73// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
74// CHECK-NEXT: (CXComment_Paragraph
75// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
76
77/// Aaa.
78///
79/// \brief Bbb.
80///
81/// Ccc.
82void comment_to_html_conversion_5();
83
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +000084// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_5:{{.*}} 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>comment_to_html_conversion_5</Name><USR>c:@F@comment_to_html_conversion_5#</USR><Declaration>void comment_to_html_conversion_5()</Declaration><Abstract><Para> Bbb.</Para></Abstract><Discussion><Para> Aaa.</Para><Para> Ccc.</Para></Discussion></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +000085// CHECK-NEXT: CommentAST=[
86// CHECK-NEXT: (CXComment_FullComment
87// CHECK-NEXT: (CXComment_Paragraph
88// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
89// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
90// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
91// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
92// CHECK-NEXT: (CXComment_Paragraph
93// CHECK-NEXT: (CXComment_Text Text=[ Bbb.])))
94// CHECK-NEXT: (CXComment_Paragraph
95// CHECK-NEXT: (CXComment_Text Text=[ Ccc.])))]
96
97/// \brief Aaa.
98/// \brief Bbb.
99void comment_to_html_conversion_6();
100
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000101// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_6:{{.*}} 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>comment_to_html_conversion_6</Name><USR>c:@F@comment_to_html_conversion_6#</USR><Declaration>void comment_to_html_conversion_6()</Declaration><Abstract><Para> Aaa. </Para></Abstract><Discussion><Para> Bbb.</Para></Discussion></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000102// CHECK-NEXT: CommentAST=[
103// CHECK-NEXT: (CXComment_FullComment
104// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
105// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
106// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
107// CHECK-NEXT: (CXComment_Paragraph
108// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
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=[ Bbb.]))))]
113
114/// Aaa.
115///
116/// \return Bbb.
117void comment_to_html_conversion_7();
118
Fariborz Jahaniand52b20c2013-06-21 23:49:29 +0000119// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_7:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><dl><p class="para-returns"><span class="word-returns">Returns</span> Bbb.</p></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_7</Name><USR>c:@F@comment_to_html_conversion_7#</USR><Declaration>void comment_to_html_conversion_7()</Declaration><Abstract><Para> Aaa.</Para></Abstract><ResultDiscussion><Para> Bbb.</Para></ResultDiscussion></Function>]
120
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000121// CHECK-NEXT: CommentAST=[
122// CHECK-NEXT: (CXComment_FullComment
123// CHECK-NEXT: (CXComment_Paragraph
124// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
125// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
126// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
127// CHECK-NEXT: (CXComment_BlockCommand CommandName=[return]
128// CHECK-NEXT: (CXComment_Paragraph
129// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
130
131/// Aaa.
132///
133/// \returns Bbb.
134void comment_to_html_conversion_8();
135
Fariborz Jahaniand52b20c2013-06-21 23:49:29 +0000136// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_8:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><dl><p class="para-returns"><span class="word-returns">Returns</span> Bbb.</p></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_8</Name><USR>c:@F@comment_to_html_conversion_8#</USR><Declaration>void comment_to_html_conversion_8()</Declaration><Abstract><Para> Aaa.</Para></Abstract><ResultDiscussion><Para> Bbb.</Para></ResultDiscussion></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000137// CHECK-NEXT: CommentAST=[
138// CHECK-NEXT: (CXComment_FullComment
139// CHECK-NEXT: (CXComment_Paragraph
140// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
141// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
142// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
143// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
144// CHECK-NEXT: (CXComment_Paragraph
145// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
146
147/// Aaa.
148///
149/// \result Bbb.
150void comment_to_html_conversion_9();
151
Fariborz Jahaniand52b20c2013-06-21 23:49:29 +0000152// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_9:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><dl><p class="para-returns"><span class="word-returns">Returns</span> Bbb.</p></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_9</Name><USR>c:@F@comment_to_html_conversion_9#</USR><Declaration>void comment_to_html_conversion_9()</Declaration><Abstract><Para> Aaa.</Para></Abstract><ResultDiscussion><Para> Bbb.</Para></ResultDiscussion></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000153// CHECK-NEXT: CommentAST=[
154// CHECK-NEXT: (CXComment_FullComment
155// CHECK-NEXT: (CXComment_Paragraph
156// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
157// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
158// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
159// CHECK-NEXT: (CXComment_BlockCommand CommandName=[result]
160// CHECK-NEXT: (CXComment_Paragraph
161// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
162
163/// \returns Aaa.
164/// \returns Bbb.
165void comment_to_html_conversion_10();
166
Fariborz Jahaniand52b20c2013-06-21 23:49:29 +0000167// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_10:{{.*}} FullCommentAsHTML=[<dl><p class="para-returns"><span class="word-returns">Returns</span> Aaa. </p><p class="para-returns"><span class="word-returns">Returns</span> Bbb.</p></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_10</Name><USR>c:@F@comment_to_html_conversion_10#</USR><Declaration>void comment_to_html_conversion_10()</Declaration><ResultDiscussion><Para> Aaa. </Para><Para> Bbb.</Para></ResultDiscussion></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000168// CHECK-NEXT: CommentAST=[
169// CHECK-NEXT: (CXComment_FullComment
170// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
171// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
172// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
173// CHECK-NEXT: (CXComment_Paragraph
174// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
175// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
176// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
177// CHECK-NEXT: (CXComment_Paragraph
178// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
179
180/// Aaa.
181///
182/// Bbb.
183///
184/// \returns Ccc.
185void comment_to_html_conversion_11();
186
Fariborz Jahaniand52b20c2013-06-21 23:49:29 +0000187// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_11:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><p> Bbb.</p><dl><p class="para-returns"><span class="word-returns">Returns</span> Ccc.</p></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_11</Name><USR>c:@F@comment_to_html_conversion_11#</USR><Declaration>void comment_to_html_conversion_11()</Declaration><Abstract><Para> Aaa.</Para></Abstract><ResultDiscussion><Para> Ccc.</Para></ResultDiscussion><Discussion><Para> Bbb.</Para></Discussion></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000188// CHECK-NEXT: CommentAST=[
189// CHECK-NEXT: (CXComment_FullComment
190// CHECK-NEXT: (CXComment_Paragraph
191// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
192// CHECK-NEXT: (CXComment_Paragraph
193// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))
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=[ Ccc.]))))]
199
200/// \param
201void comment_to_html_conversion_12(int x1);
202
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000203// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_12:{{.*}} FullCommentAsHTML=[] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_12</Name><USR>c:@F@comment_to_html_conversion_12#I#</USR><Declaration>void comment_to_html_conversion_12(int x1)</Declaration></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000204// CHECK-NEXT: CommentAST=[
205// CHECK-NEXT: (CXComment_FullComment
206// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
207// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
208// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[] ParamIndex=Invalid
209// CHECK-NEXT: (CXComment_Paragraph IsWhitespace)))]
210
211/// \param x1 Aaa.
212void comment_to_html_conversion_13(int x1);
213
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000214// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_13:{{.*}} 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>comment_to_html_conversion_13</Name><USR>c:@F@comment_to_html_conversion_13#I#</USR><Declaration>void comment_to_html_conversion_13(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 +0000215// CHECK-NEXT: CommentAST=[
216// CHECK-NEXT: (CXComment_FullComment
217// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
218// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
219// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
220// CHECK-NEXT: (CXComment_Paragraph
221// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
222
223/// \param zzz Aaa.
224void comment_to_html_conversion_14(int x1);
225
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000226// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_14:{{.*}} 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>comment_to_html_conversion_14</Name><USR>c:@F@comment_to_html_conversion_14#I#</USR><Declaration>void comment_to_html_conversion_14(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 +0000227// CHECK-NEXT: CommentAST=[
228// CHECK-NEXT: (CXComment_FullComment
229// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
230// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
231// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[zzz] ParamIndex=Invalid
232// CHECK-NEXT: (CXComment_Paragraph
233// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
234
235/// \param x2 Bbb.
236/// \param x1 Aaa.
237void comment_to_html_conversion_15(int x1, int x2);
238
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000239// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_15:{{.*}} 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>comment_to_html_conversion_15</Name><USR>c:@F@comment_to_html_conversion_15#I#I#</USR><Declaration>void comment_to_html_conversion_15(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 +0000240// CHECK-NEXT: CommentAST=[
241// CHECK-NEXT: (CXComment_FullComment
242// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
243// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
244// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
245// CHECK-NEXT: (CXComment_Paragraph
246// CHECK-NEXT: (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
247// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
248// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
249// CHECK-NEXT: (CXComment_Paragraph
250// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
251
252/// \param x2 Bbb.
253/// \param zzz Aaa.
254/// \param x1 Aaa.
255void comment_to_html_conversion_16(int x1, int x2);
256
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000257// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_16:{{.*}} 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>comment_to_html_conversion_16</Name><USR>c:@F@comment_to_html_conversion_16#I#I#</USR><Declaration>void comment_to_html_conversion_16(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 +0000258// CHECK-NEXT: CommentAST=[
259// CHECK-NEXT: (CXComment_FullComment
260// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
261// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
262// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
263// CHECK-NEXT: (CXComment_Paragraph
264// CHECK-NEXT: (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
265// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
266// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[zzz] ParamIndex=Invalid
267// CHECK-NEXT: (CXComment_Paragraph
268// CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
269// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
270// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
271// CHECK-NEXT: (CXComment_Paragraph
272// CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
273
274/// \tparam
275/// \param aaa Blah blah
276template<typename T>
277void comment_to_html_conversion_17(T aaa);
278
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000279// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=comment_to_html_conversion_17:{{.*}} 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>comment_to_html_conversion_17</Name><USR>c:@FT@&gt;1#Tcomment_to_html_conversion_17#t0.0#</USR><Declaration>template &lt;typename T&gt; void comment_to_html_conversion_17(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 +0000280// CHECK-NEXT: CommentAST=[
281// CHECK-NEXT: (CXComment_FullComment
282// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
283// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
284// CHECK-NEXT: (CXComment_TParamCommand ParamName=[] ParamPosition=Invalid
285// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
286// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
287// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[aaa] ParamIndex=0
288// CHECK-NEXT: (CXComment_Paragraph
289// CHECK-NEXT: (CXComment_Text Text=[ Blah blah]))))]
290
291/// \tparam T
292/// \param aaa Blah blah
293template<typename T>
294void comment_to_html_conversion_18(T aaa);
295
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000296// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=comment_to_html_conversion_18:{{.*}} 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>comment_to_html_conversion_18</Name><USR>c:@FT@&gt;1#Tcomment_to_html_conversion_18#t0.0#</USR><Declaration>template &lt;typename T&gt; void comment_to_html_conversion_18(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 +0000297// CHECK-NEXT: CommentAST=[
298// CHECK-NEXT: (CXComment_FullComment
299// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
300// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
301// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T] ParamPosition={0}
302// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
303// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
304// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[aaa] ParamIndex=0
305// CHECK-NEXT: (CXComment_Paragraph
306// CHECK-NEXT: (CXComment_Text Text=[ Blah blah]))))]
307
308/// \tparam T2 Bbb
309/// \tparam T1 Aaa
310template<typename T1, typename T2>
311void comment_to_html_conversion_19(T1 aaa, T2 bbb);
312
Manuel Klimekd4397b92013-01-04 23:34:14 +0000313// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=comment_to_html_conversion_19:{{.*}} 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>comment_to_html_conversion_19</Name><USR>c:@FT@&gt;2#T#Tcomment_to_html_conversion_19#t0.0#t0.1#</USR><Declaration>template &lt;typename T1, typename T2&gt;\nvoid comment_to_html_conversion_19(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 +0000314// CHECK-NEXT: CommentAST=[
315// CHECK-NEXT: (CXComment_FullComment
316// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
317// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
318// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T2] ParamPosition={1}
319// CHECK-NEXT: (CXComment_Paragraph
320// CHECK-NEXT: (CXComment_Text Text=[ Bbb] HasTrailingNewline)
321// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
322// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T1] ParamPosition={0}
323// CHECK-NEXT: (CXComment_Paragraph
324// CHECK-NEXT: (CXComment_Text Text=[ Aaa]))))]
325
326/// \tparam T2 Bbb
327/// \tparam U Zzz
328/// \tparam V Ccc
329/// \tparam T1 Aaa
330template<typename T1, typename T2, int V>
331void comment_to_html_conversion_20(T1 aaa, T2 bbb);
332
Manuel Klimekd4397b92013-01-04 23:34:14 +0000333// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=comment_to_html_conversion_20:{{.*}} 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>comment_to_html_conversion_20</Name><USR>c:@FT@&gt;3#T#T#NIcomment_to_html_conversion_20#t0.0#t0.1#</USR><Declaration>template &lt;typename T1, typename T2, int V&gt;\nvoid comment_to_html_conversion_20(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 +0000334// CHECK-NEXT: CommentAST=[
335// CHECK-NEXT: (CXComment_FullComment
336// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
337// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
338// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T2] ParamPosition={1}
339// CHECK-NEXT: (CXComment_Paragraph
340// CHECK-NEXT: (CXComment_Text Text=[ Bbb] HasTrailingNewline)
341// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
342// CHECK-NEXT: (CXComment_TParamCommand ParamName=[U] ParamPosition=Invalid
343// CHECK-NEXT: (CXComment_Paragraph
344// CHECK-NEXT: (CXComment_Text Text=[ Zzz] HasTrailingNewline)
345// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
346// CHECK-NEXT: (CXComment_TParamCommand ParamName=[V] ParamPosition={2}
347// CHECK-NEXT: (CXComment_Paragraph
348// CHECK-NEXT: (CXComment_Text Text=[ Ccc] HasTrailingNewline)
349// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
350// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T1] ParamPosition={0}
351// CHECK-NEXT: (CXComment_Paragraph
352// CHECK-NEXT: (CXComment_Text Text=[ Aaa]))))]
353
354/// \tparam TTT Ddd
355/// \tparam C Ccc
356/// \tparam T Aaa
357/// \tparam TT Bbb
358template<template<template<typename T> class TT, class C> class TTT>
359void comment_to_html_conversion_21();
360
Daniel Jasper032f2532013-01-21 14:39:22 +0000361// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=comment_to_html_conversion_21:{{.*}} 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>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#</USR><Declaration>template &lt;template &lt;template &lt;typename T&gt; class TT, class C&gt; class TTT&gt;\nvoid comment_to_html_conversion_21()</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 +0000362// CHECK-NEXT: CommentAST=[
363// CHECK-NEXT: (CXComment_FullComment
364// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
365// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
366// CHECK-NEXT: (CXComment_TParamCommand ParamName=[TTT] ParamPosition={0}
367// CHECK-NEXT: (CXComment_Paragraph
368// CHECK-NEXT: (CXComment_Text Text=[ Ddd] HasTrailingNewline)
369// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
370// CHECK-NEXT: (CXComment_TParamCommand ParamName=[C] ParamPosition={0, 1}
371// CHECK-NEXT: (CXComment_Paragraph
372// CHECK-NEXT: (CXComment_Text Text=[ Ccc] HasTrailingNewline)
373// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
374// CHECK-NEXT: (CXComment_TParamCommand ParamName=[T] ParamPosition={0, 0, 0}
375// CHECK-NEXT: (CXComment_Paragraph
376// CHECK-NEXT: (CXComment_Text Text=[ Aaa] HasTrailingNewline)
377// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
378// CHECK-NEXT: (CXComment_TParamCommand ParamName=[TT] ParamPosition={0, 0}
379// CHECK-NEXT: (CXComment_Paragraph
380// CHECK-NEXT: (CXComment_Text Text=[ Bbb]))))]
381
382/// \brief Aaa.
383///
384/// Bbb.
385///
386/// \param x2 Ddd.
387/// \param x1 Ccc.
388/// \returns Eee.
389void comment_to_html_conversion_22(int x1, int x2);
390
Fariborz Jahaniand52b20c2013-06-21 23:49:29 +0000391// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_22:{{.*}} 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><dl><p class="para-returns"><span class="word-returns">Returns</span> Eee.</p></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}comment-to-html-xml-conversion.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@F@comment_to_html_conversion_22#I#I#</USR><Declaration>void comment_to_html_conversion_22(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 +0000392// CHECK-NEXT: CommentAST=[
393// CHECK-NEXT: (CXComment_FullComment
394// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
395// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
396// CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
397// CHECK-NEXT: (CXComment_Paragraph
398// CHECK-NEXT: (CXComment_Text Text=[ Aaa.])))
399// CHECK-NEXT: (CXComment_Paragraph
400// CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))
401// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
402// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
403// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
404// CHECK-NEXT: (CXComment_Paragraph
405// CHECK-NEXT: (CXComment_Text Text=[ Ddd.] HasTrailingNewline)
406// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
407// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
408// CHECK-NEXT: (CXComment_Paragraph
409// CHECK-NEXT: (CXComment_Text Text=[ Ccc.] HasTrailingNewline)
410// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
411// CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
412// CHECK-NEXT: (CXComment_Paragraph
413// CHECK-NEXT: (CXComment_Text Text=[ Eee.]))))]
414
415/// <br><a href="http://example.com/">Aaa</a>
416void comment_to_html_conversion_23();
417
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000418// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_23:{{.*}} 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_23</Name><USR>c:@F@comment_to_html_conversion_23#</USR><Declaration>void comment_to_html_conversion_23()</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 +0000419// CHECK-NEXT: CommentAST=[
420// CHECK-NEXT: (CXComment_FullComment
421// CHECK-NEXT: (CXComment_Paragraph
422// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
423// CHECK-NEXT: (CXComment_HTMLStartTag Name=[br])
424// CHECK-NEXT: (CXComment_HTMLStartTag Name=[a] Attrs: href=http://example.com/)
425// CHECK-NEXT: (CXComment_Text Text=[Aaa])
426// CHECK-NEXT: (CXComment_HTMLEndTag Name=[a])))]
427
428/// \verbatim
429/// <a href="http://example.com/">Aaa</a>
430/// <a href='http://example.com/'>Aaa</a>
431/// \endverbatim
432void comment_to_html_conversion_24();
433
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000434// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_24:{{.*}} 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_24</Name><USR>c:@F@comment_to_html_conversion_24#</USR><Declaration>void comment_to_html_conversion_24()</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 +0000435// CHECK-NEXT: CommentAST=[
436// CHECK-NEXT: (CXComment_FullComment
437// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
438// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
439// CHECK-NEXT: (CXComment_VerbatimBlockCommand CommandName=[verbatim]
440// CHECK-NEXT: (CXComment_VerbatimBlockLine Text=[ <a href="http://example.com/">Aaa</a>])
441// CHECK-NEXT: (CXComment_VerbatimBlockLine Text=[ <a href='http://example.com/'>Aaa</a>])))]
442
443/// \function foo
444/// \class foo
445/// \method foo
446/// \interface foo
447/// Blah blah.
448void comment_to_html_conversion_25();
449
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000450// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_25:{{.*}} 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_25</Name><USR>c:@F@comment_to_html_conversion_25#</USR><Declaration>void comment_to_html_conversion_25()</Declaration><Abstract><Para> Blah blah.</Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000451// CHECK-NEXT: CommentAST=[
452// CHECK-NEXT: (CXComment_FullComment
453// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
454// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
455// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo])
456// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
457// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
458// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo])
459// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
460// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
461// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo])
462// CHECK-NEXT: (CXComment_Paragraph IsWhitespace
463// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
464// CHECK-NEXT: (CXComment_VerbatimLine Text=[ foo])
465// CHECK-NEXT: (CXComment_Paragraph
466// CHECK-NEXT: (CXComment_Text Text=[ Blah blah.])))]
467
468/// \unknown
469void comment_to_html_conversion_26();
470
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000471// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_26:{{.*}} 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_26</Name><USR>c:@F@comment_to_html_conversion_26#</USR><Declaration>void comment_to_html_conversion_26()</Declaration><Abstract><Para> </Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000472// CHECK-NEXT: CommentAST=[
473// CHECK-NEXT: (CXComment_FullComment
474// CHECK-NEXT: (CXComment_Paragraph
475// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
476// CHECK-NEXT: (CXComment_InlineCommand CommandName=[unknown] RenderNormal)))]
477
478/// \b Aaa
479void comment_to_html_conversion_27();
480
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000481// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_27:{{.*}} 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_27</Name><USR>c:@F@comment_to_html_conversion_27#</USR><Declaration>void comment_to_html_conversion_27()</Declaration><Abstract><Para> <bold>Aaa</bold></Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000482// CHECK-NEXT: CommentAST=[
483// CHECK-NEXT: (CXComment_FullComment
484// CHECK-NEXT: (CXComment_Paragraph
485// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
486// CHECK-NEXT: (CXComment_InlineCommand CommandName=[b] RenderBold Arg[0]=Aaa)))]
487
488/// \c Aaa \p Bbb
489void comment_to_html_conversion_28();
490
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000491// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_28:{{.*}} 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_28</Name><USR>c:@F@comment_to_html_conversion_28#</USR><Declaration>void comment_to_html_conversion_28()</Declaration><Abstract><Para> <monospaced>Aaa</monospaced> <monospaced>Bbb</monospaced></Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000492// CHECK-NEXT: CommentAST=[
493// CHECK-NEXT: (CXComment_FullComment
494// CHECK-NEXT: (CXComment_Paragraph
495// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
496// CHECK-NEXT: (CXComment_InlineCommand CommandName=[c] RenderMonospaced Arg[0]=Aaa)
497// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
498// CHECK-NEXT: (CXComment_InlineCommand CommandName=[p] RenderMonospaced Arg[0]=Bbb)))]
499
500/// \a Aaa \e Bbb \em Ccc
501void comment_to_html_conversion_29();
502
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000503// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_29:{{.*}} 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_29</Name><USR>c:@F@comment_to_html_conversion_29#</USR><Declaration>void comment_to_html_conversion_29()</Declaration><Abstract><Para> <emphasized>Aaa</emphasized> <emphasized>Bbb</emphasized> <emphasized>Ccc</emphasized></Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000504// CHECK-NEXT: CommentAST=[
505// CHECK-NEXT: (CXComment_FullComment
506// CHECK-NEXT: (CXComment_Paragraph
507// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
508// CHECK-NEXT: (CXComment_InlineCommand CommandName=[a] RenderEmphasized Arg[0]=Aaa)
509// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
510// CHECK-NEXT: (CXComment_InlineCommand CommandName=[e] RenderEmphasized Arg[0]=Bbb)
511// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
512// CHECK-NEXT: (CXComment_InlineCommand CommandName=[em] RenderEmphasized Arg[0]=Ccc)))]
513
514/// \a 1<2 \e 3<4 \em 5<6 \param 7<8 aaa \tparam 9<10 bbb
515void comment_to_html_conversion_30();
516
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000517// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_30:{{.*}} 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_30</Name><USR>c:@F@comment_to_html_conversion_30#</USR><Declaration>void comment_to_html_conversion_30()</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 +0000518// CHECK-NEXT: CommentAST=[
519// CHECK-NEXT: (CXComment_FullComment
520// CHECK-NEXT: (CXComment_Paragraph
521// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
522// CHECK-NEXT: (CXComment_InlineCommand CommandName=[a] RenderEmphasized Arg[0]=1<2)
523// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
524// CHECK-NEXT: (CXComment_InlineCommand CommandName=[e] RenderEmphasized Arg[0]=3<4)
525// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
526// CHECK-NEXT: (CXComment_InlineCommand CommandName=[em] RenderEmphasized Arg[0]=5<6)
527// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
528// CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[7<8] ParamIndex=Invalid
529// CHECK-NEXT: (CXComment_Paragraph
530// CHECK-NEXT: (CXComment_Text Text=[ aaa ])))
531// CHECK-NEXT: (CXComment_TParamCommand ParamName=[9<10] ParamPosition=Invalid
532// CHECK-NEXT: (CXComment_Paragraph
533// CHECK-NEXT: (CXComment_Text Text=[ bbb]))))]
534
535/// \\ \@ \& \$ \# \< \> \% \" \. \::
536void comment_to_html_conversion_31();
537
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000538// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_31:{{.*}} 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_31</Name><USR>c:@F@comment_to_html_conversion_31#</USR><Declaration>void comment_to_html_conversion_31()</Declaration><Abstract><Para> \ @ &amp; $ # &lt; &gt; % &quot; . ::</Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000539// CHECK-NEXT: CommentAST=[
540// CHECK-NEXT: (CXComment_FullComment
541// CHECK-NEXT: (CXComment_Paragraph
542// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
543// CHECK-NEXT: (CXComment_Text Text=[\])
544// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
545// CHECK-NEXT: (CXComment_Text Text=[@])
546// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
547// CHECK-NEXT: (CXComment_Text Text=[&])
548// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
549// CHECK-NEXT: (CXComment_Text Text=[$])
550// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
551// CHECK-NEXT: (CXComment_Text Text=[#])
552// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
553// CHECK-NEXT: (CXComment_Text Text=[<])
554// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
555// CHECK-NEXT: (CXComment_Text Text=[>])
556// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
557// CHECK-NEXT: (CXComment_Text Text=[%])
558// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
559// CHECK-NEXT: (CXComment_Text Text=["])
560// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
561// CHECK-NEXT: (CXComment_Text Text=[.])
562// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
563// CHECK-NEXT: (CXComment_Text Text=[::])))]
564
Dmitri Gribenko44a3ddb2013-01-19 22:04:44 +0000565/// &amp; &lt; &gt; &quot; &apos; &#109;&#101;&#111;&#119; &#x6d;&#x65;&#x6F;&#X77;
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000566void comment_to_html_conversion_32();
567
Dmitri Gribenko4918c532013-01-19 22:11:28 +0000568// 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; &#39; meow meow</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; &apos; meow meow</Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000569// CHECK-NEXT: CommentAST=[
570// CHECK-NEXT: (CXComment_FullComment
571// CHECK-NEXT: (CXComment_Paragraph
572// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
573// CHECK-NEXT: (CXComment_Text Text=[&])
574// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
575// CHECK-NEXT: (CXComment_Text Text=[<])
576// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
577// CHECK-NEXT: (CXComment_Text Text=[>])
578// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
Dmitri Gribenko44a3ddb2013-01-19 22:04:44 +0000579// CHECK-NEXT: (CXComment_Text Text=["])
580// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
581// CHECK-NEXT: (CXComment_Text Text=['])
582// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
583// CHECK-NEXT: (CXComment_Text Text=[m])
584// CHECK-NEXT: (CXComment_Text Text=[e])
585// CHECK-NEXT: (CXComment_Text Text=[o])
586// CHECK-NEXT: (CXComment_Text Text=[w])
587// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
588// CHECK-NEXT: (CXComment_Text Text=[m])
589// CHECK-NEXT: (CXComment_Text Text=[e])
590// CHECK-NEXT: (CXComment_Text Text=[o])
591// CHECK-NEXT: (CXComment_Text Text=[w])))]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000592
593/// <em>0&lt;i</em>
594void comment_to_html_conversion_33();
595
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000596// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_33:{{.*}} 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_33</Name><USR>c:@F@comment_to_html_conversion_33#</USR><Declaration>void comment_to_html_conversion_33()</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 +0000597// CHECK-NEXT: CommentAST=[
598// CHECK-NEXT: (CXComment_FullComment
599// CHECK-NEXT: (CXComment_Paragraph
600// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
601// CHECK-NEXT: (CXComment_HTMLStartTag Name=[em])
602// CHECK-NEXT: (CXComment_Text Text=[0])
603// CHECK-NEXT: (CXComment_Text Text=[<])
604// CHECK-NEXT: (CXComment_Text Text=[i])
605// CHECK-NEXT: (CXComment_HTMLEndTag Name=[em])))]
606
Dmitri Gribenkof494e482013-01-30 14:44:47 +0000607// rdar://12392215
608/// &copy; the copyright symbol
609/// &trade; the trade mark symbol
610/// &reg; the registered trade mark symbol
611/// &nbsp; a non breakable space.
612/// &Delta; Greek letter Delta Δ.
613/// &Gamma; Greek letter Gamma Γ.
614void comment_to_html_conversion_34();
615
616// CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_34:{{.*}} 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_34</Name><USR>c:@F@comment_to_html_conversion_34#</USR><Declaration>void comment_to_html_conversion_34()</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>]
617// CHECK-NEXT: CommentAST=[
618// CHECK-NEXT: (CXComment_FullComment
619// CHECK-NEXT: (CXComment_Paragraph
620// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
621// CHECK-NEXT: (CXComment_Text Text=[©])
622// CHECK-NEXT: (CXComment_Text Text=[ the copyright symbol] HasTrailingNewline)
623// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
624// CHECK-NEXT: (CXComment_Text Text=[â„¢])
625// CHECK-NEXT: (CXComment_Text Text=[ the trade mark symbol] HasTrailingNewline)
626// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
627// CHECK-NEXT: (CXComment_Text Text=[®])
628// CHECK-NEXT: (CXComment_Text Text=[ the registered trade mark symbol] HasTrailingNewline)
629// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
630// CHECK-NEXT: (CXComment_Text Text=[ ])
631// CHECK-NEXT: (CXComment_Text Text=[ a non breakable space.] HasTrailingNewline)
632// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
633// CHECK-NEXT: (CXComment_Text Text=[Δ])
634// CHECK-NEXT: (CXComment_Text Text=[ Greek letter Delta Δ.] HasTrailingNewline)
635// CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
636// CHECK-NEXT: (CXComment_Text Text=[Γ])
637// CHECK-NEXT: (CXComment_Text Text=[ Greek letter Gamma Γ.])))]
638
639
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000640/// Aaa.
641class comment_to_xml_conversion_01 {
Manuel Klimek36fab8d2013-01-10 13:24:24 +0000642// 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 +0000643
644 /// \param aaa Blah blah.
645 comment_to_xml_conversion_01(int aaa);
646
Fariborz Jahanian02a2e5a2012-12-05 19:54:11 +0000647// 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 +0000648
649 /// Aaa.
650 ~comment_to_xml_conversion_01();
651
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000652// 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>void ~comment_to_xml_conversion_01()</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000653
654 /// \param aaa Blah blah.
655 int comment_to_xml_conversion_02(int aaa);
656
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000657// 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 +0000658
659 /// \param aaa Blah blah.
660 static int comment_to_xml_conversion_03(int aaa);
661
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000662// 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 +0000663
664 /// Aaa.
665 int comment_to_xml_conversion_04;
666
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000667// 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 +0000668
669 /// Aaa.
670 static int comment_to_xml_conversion_05;
671
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000672// 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 +0000673
674 /// \param aaa Blah blah.
675 void operator()(int aaa);
676
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000677// 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 +0000678
679 /// Aaa.
680 operator bool();
681
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000682// 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>bool operator _Bool()</Declaration><Abstract><Para> Aaa.</Para></Abstract></Function>]
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000683
684 /// Aaa.
685 typedef int comment_to_xml_conversion_06;
686
687// USR is line-dependent here, so filter it with a regexp.
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000688// 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 +0000689
690 /// Aaa.
691 using comment_to_xml_conversion_07 = int;
692
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000693// 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 +0000694
695 /// Aaa.
696 template<typename T, typename U>
697 class comment_to_xml_conversion_08 { };
698
Manuel Klimek36fab8d2013-01-10 13:24:24 +0000699// 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 +0000700
701 /// Aaa.
702 template<typename T>
703 using comment_to_xml_conversion_09 = comment_to_xml_conversion_08<T, int>;
704
Manuel Klimekd4397b92013-01-04 23:34:14 +0000705// 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 +0000706};
707
708/// Aaa.
709template<typename T, typename U>
710void comment_to_xml_conversion_10(T aaa, U bbb);
711
Dmitri Gribenko27c2cb22013-01-07 18:45:48 +0000712// 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 +0000713
714/// Aaa.
715template<>
716void comment_to_xml_conversion_10(int aaa, int bbb);
717
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000718// 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 +0000719
720/// Aaa.
721template<typename T, typename U>
722class comment_to_xml_conversion_11 { };
723
Manuel Klimek36fab8d2013-01-10 13:24:24 +0000724// 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 +0000725
726/// Aaa.
727template<typename T>
728class comment_to_xml_conversion_11<T, int> { };
729
Manuel Klimek36fab8d2013-01-10 13:24:24 +0000730// 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 +0000731
732/// Aaa.
733template<>
734class comment_to_xml_conversion_11<int, int> { };
735
Manuel Klimek36fab8d2013-01-10 13:24:24 +0000736// 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 +0000737
738/// Aaa.
739int comment_to_xml_conversion_12;
740
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000741// 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 +0000742
743/// Aaa.
744namespace comment_to_xml_conversion_13 {
Daniel Jasper85b03eb2013-05-31 15:15:41 +0000745// 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 +0000746
747 /// Aaa.
748 namespace comment_to_xml_conversion_14 {
Daniel Jasper85b03eb2013-05-31 15:15:41 +0000749// 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 +0000750 }
751}
752
753/// Aaa.
754enum comment_to_xml_conversion_15 {
Manuel Klimek2f1ac412013-01-21 16:42:44 +0000755// 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 +0000756
757 /// Aaa.
758 comment_to_xml_conversion_16
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000759// 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 +0000760};
761
762/// Aaa.
763enum class comment_to_xml_conversion_17 {
Manuel Klimek2f1ac412013-01-21 16:42:44 +0000764// 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 +0000765
766 /// Aaa.
767 comment_to_xml_conversion_18
Dmitri Gribenkoe8b5db42012-11-15 22:21:42 +0000768// 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 +0000769};
770
Dmitri Gribenkoaf01bed2013-02-01 20:23:57 +0000771/// Aaa.
772/// \todo Bbb.
773void comment_to_xml_conversion_todo_1();
774// 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>]
775
776/// Aaa.
777/// \todo Bbb.
778///
779/// Ccc.
780void comment_to_xml_conversion_todo_2();
781// 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>]
782
783/// Aaa.
784/// \todo Bbb.
785///
786/// Ccc.
787/// \todo Ddd.
788void comment_to_xml_conversion_todo_3();
789// 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>]
790
791/// Aaa.
792/// \todo Bbb.
793/// \todo Ccc.
794void comment_to_xml_conversion_todo_4();
795// 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>]
796
Dmitri Gribenko61322bc2012-11-15 22:03:13 +0000797#endif
798