xref: /llvm-project/clang/test/Index/comment-to-html-xml-conversion.cpp (revision 90946ca5b59af385e02cb9205ca9d135622cb354)
1 // RUN: rm -rf %t
2 // RUN: mkdir %t
3 
4 // This file contains UTF-8 sequences.  Please don't "fix" them!
5 
6 // 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 
22 // XFAIL: msan
23 // XFAIL: valgrind
24 
25 #ifndef HEADER
26 #define HEADER
27 
28 /// Aaa.
29 void test_cmd_brief_like_1();
30 
31 // 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>]
32 // CHECK-NEXT:  CommentAST=[
33 // CHECK-NEXT:    (CXComment_FullComment
34 // CHECK-NEXT:       (CXComment_Paragraph
35 // CHECK-NEXT:         (CXComment_Text Text=[ Aaa.])))]
36 
37 /// \brief Aaa.
38 void test_cmd_brief_like_2();
39 
40 // 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>]
41 // 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.
50 void test_cmd_brief_like_3();
51 
52 // 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>]
53 // 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.
64 void test_cmd_brief_like_4();
65 
66 // 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>]
67 // 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.
82 void test_cmd_brief_like_5();
83 
84 // 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>]
85 // 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.
99 void test_cmd_brief_like_6();
100 
101 // 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>]
102 // 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 /// \abstract Aaa.
115 ///
116 /// Bbb.
117 void test_cmd_brief_like_7();
118 // CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:6: FunctionDecl=test_cmd_brief_like_7:{{.*}} BriefComment=[Aaa.] FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><p> Bbb.</p>] FullCommentAsXML=[<Function file="/home/storage_3/grib/clang-commit/llvm/tools/clang/test/Index/comment-to-html-xml-conversion.cpp" line="117" 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>]
119 // CHECK-NEXT:  CommentAST=[
120 // CHECK-NEXT:    (CXComment_FullComment
121 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
122 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
123 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[abstract]
124 // CHECK-NEXT:         (CXComment_Paragraph
125 // CHECK-NEXT:           (CXComment_Text Text=[ Aaa.])))
126 // CHECK-NEXT:       (CXComment_Paragraph
127 // CHECK-NEXT:         (CXComment_Text Text=[ Bbb.])))]
128 
129 /// Aaa.
130 ///
131 /// \return Bbb.
132 void comment_to_html_conversion_7();
133 
134 // CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_7:{{.*}} 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>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>]
135 
136 // CHECK-NEXT:  CommentAST=[
137 // CHECK-NEXT:    (CXComment_FullComment
138 // CHECK-NEXT:       (CXComment_Paragraph
139 // CHECK-NEXT:         (CXComment_Text Text=[ Aaa.]))
140 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
141 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
142 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[return]
143 // CHECK-NEXT:         (CXComment_Paragraph
144 // CHECK-NEXT:           (CXComment_Text Text=[ Bbb.]))))]
145 
146 /// Aaa.
147 ///
148 /// \returns Bbb.
149 void comment_to_html_conversion_8();
150 
151 // CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_8:{{.*}} 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>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>]
152 // CHECK-NEXT:  CommentAST=[
153 // CHECK-NEXT:    (CXComment_FullComment
154 // CHECK-NEXT:       (CXComment_Paragraph
155 // CHECK-NEXT:         (CXComment_Text Text=[ Aaa.]))
156 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
157 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
158 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[returns]
159 // CHECK-NEXT:         (CXComment_Paragraph
160 // CHECK-NEXT:           (CXComment_Text Text=[ Bbb.]))))]
161 
162 /// Aaa.
163 ///
164 /// \result Bbb.
165 void comment_to_html_conversion_9();
166 
167 // CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_9:{{.*}} 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>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>]
168 // CHECK-NEXT:  CommentAST=[
169 // CHECK-NEXT:    (CXComment_FullComment
170 // CHECK-NEXT:       (CXComment_Paragraph
171 // CHECK-NEXT:         (CXComment_Text Text=[ Aaa.]))
172 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
173 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
174 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[result]
175 // CHECK-NEXT:         (CXComment_Paragraph
176 // CHECK-NEXT:           (CXComment_Text Text=[ Bbb.]))))]
177 
178 /// \returns Aaa.
179 /// \returns Bbb.
180 void comment_to_html_conversion_10();
181 
182 // CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_10:{{.*}} 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>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>]
183 // CHECK-NEXT:  CommentAST=[
184 // CHECK-NEXT:    (CXComment_FullComment
185 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
186 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
187 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[returns]
188 // CHECK-NEXT:         (CXComment_Paragraph
189 // CHECK-NEXT:           (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
190 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
191 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[returns]
192 // CHECK-NEXT:         (CXComment_Paragraph
193 // CHECK-NEXT:           (CXComment_Text Text=[ Bbb.]))))]
194 
195 /// Aaa.
196 ///
197 /// Bbb.
198 ///
199 /// \returns Ccc.
200 void comment_to_html_conversion_11();
201 
202 // 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><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>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>]
203 // CHECK-NEXT:  CommentAST=[
204 // CHECK-NEXT:    (CXComment_FullComment
205 // CHECK-NEXT:       (CXComment_Paragraph
206 // CHECK-NEXT:         (CXComment_Text Text=[ Aaa.]))
207 // CHECK-NEXT:       (CXComment_Paragraph
208 // CHECK-NEXT:         (CXComment_Text Text=[ Bbb.]))
209 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
210 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
211 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[returns]
212 // CHECK-NEXT:         (CXComment_Paragraph
213 // CHECK-NEXT:           (CXComment_Text Text=[ Ccc.]))))]
214 
215 /// \param
216 void comment_to_html_conversion_12(int x1);
217 
218 // 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>]
219 // CHECK-NEXT:  CommentAST=[
220 // CHECK-NEXT:    (CXComment_FullComment
221 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
222 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
223 // CHECK-NEXT:       (CXComment_ParamCommand in implicitly ParamName=[] ParamIndex=Invalid
224 // CHECK-NEXT:         (CXComment_Paragraph IsWhitespace)))]
225 
226 /// \param x1 Aaa.
227 void comment_to_html_conversion_13(int x1);
228 
229 // 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>]
230 // CHECK-NEXT:  CommentAST=[
231 // CHECK-NEXT:    (CXComment_FullComment
232 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
233 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
234 // CHECK-NEXT:       (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
235 // CHECK-NEXT:         (CXComment_Paragraph
236 // CHECK-NEXT:           (CXComment_Text Text=[ Aaa.]))))]
237 
238 /// \param zzz Aaa.
239 void comment_to_html_conversion_14(int x1);
240 
241 // 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>]
242 // CHECK-NEXT:  CommentAST=[
243 // CHECK-NEXT:    (CXComment_FullComment
244 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
245 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
246 // CHECK-NEXT:       (CXComment_ParamCommand in implicitly ParamName=[zzz] ParamIndex=Invalid
247 // CHECK-NEXT:         (CXComment_Paragraph
248 // CHECK-NEXT:           (CXComment_Text Text=[ Aaa.]))))]
249 
250 /// \param x2 Bbb.
251 /// \param x1 Aaa.
252 void comment_to_html_conversion_15(int x1, int x2);
253 
254 // 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>]
255 // 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=[x2] ParamIndex=1
260 // CHECK-NEXT:         (CXComment_Paragraph
261 // CHECK-NEXT:           (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
262 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
263 // CHECK-NEXT:       (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
264 // CHECK-NEXT:         (CXComment_Paragraph
265 // CHECK-NEXT:           (CXComment_Text Text=[ Aaa.]))))]
266 
267 /// \param x2 Bbb.
268 /// \param zzz Aaa.
269 /// \param x1 Aaa.
270 void comment_to_html_conversion_16(int x1, int x2);
271 
272 // 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>]
273 // CHECK-NEXT:  CommentAST=[
274 // CHECK-NEXT:    (CXComment_FullComment
275 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
276 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
277 // CHECK-NEXT:       (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
278 // CHECK-NEXT:         (CXComment_Paragraph
279 // CHECK-NEXT:           (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
280 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
281 // CHECK-NEXT:       (CXComment_ParamCommand in implicitly ParamName=[zzz] ParamIndex=Invalid
282 // CHECK-NEXT:         (CXComment_Paragraph
283 // CHECK-NEXT:           (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
284 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
285 // CHECK-NEXT:       (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
286 // CHECK-NEXT:         (CXComment_Paragraph
287 // CHECK-NEXT:           (CXComment_Text Text=[ Aaa.]))))]
288 
289 /// \param x1 Aaa.
290 /// \param ... Bbb.
291 void comment_to_html_conversion_17(int x1, ...);
292 
293 // CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_17:{{.*}} 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>comment_to_html_conversion_17</Name><USR>c:@F@comment_to_html_conversion_17#I.#</USR><Declaration>void comment_to_html_conversion_17(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>]
294 // CHECK-NEXT:  CommentAST=[
295 // CHECK-NEXT:    (CXComment_FullComment
296 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
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.] HasTrailingNewline)
301 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
302 // CHECK-NEXT:       (CXComment_ParamCommand in implicitly ParamName=[...] ParamIndex=4294967295
303 // CHECK-NEXT:         (CXComment_Paragraph
304 // CHECK-NEXT:           (CXComment_Text Text=[ Bbb.]))))]
305 
306 /// \tparam
307 /// \param aaa Blah blah
308 template<typename T>
309 void comment_to_html_conversion_18(T aaa);
310 
311 // 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>]
312 // CHECK-NEXT:  CommentAST=[
313 // CHECK-NEXT:    (CXComment_FullComment
314 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
315 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
316 // CHECK-NEXT:       (CXComment_TParamCommand ParamName=[] ParamPosition=Invalid
317 // CHECK-NEXT:         (CXComment_Paragraph IsWhitespace
318 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
319 // CHECK-NEXT:       (CXComment_ParamCommand in implicitly ParamName=[aaa] ParamIndex=0
320 // CHECK-NEXT:         (CXComment_Paragraph
321 // CHECK-NEXT:           (CXComment_Text Text=[ Blah blah]))))]
322 
323 /// \tparam T
324 /// \param aaa Blah blah
325 template<typename T>
326 void comment_to_html_conversion_19(T aaa);
327 
328 // CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=comment_to_html_conversion_19:{{.*}} 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_19</Name><USR>c:@FT@&gt;1#Tcomment_to_html_conversion_19#t0.0#</USR><Declaration>template &lt;typename T&gt; void comment_to_html_conversion_19(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>]
329 // 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=[T] ParamPosition={0}
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 T2 Bbb
341 /// \tparam T1 Aaa
342 template<typename T1, typename T2>
343 void comment_to_html_conversion_20(T1 aaa, T2 bbb);
344 
345 // 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></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;2#T#Tcomment_to_html_conversion_20#t0.0#t0.1#</USR><Declaration>template &lt;typename T1, typename T2&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></TemplateParameters></Function>]
346 // 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=[T2] ParamPosition={1}
351 // CHECK-NEXT:         (CXComment_Paragraph
352 // CHECK-NEXT:           (CXComment_Text Text=[ Bbb] HasTrailingNewline)
353 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
354 // CHECK-NEXT:       (CXComment_TParamCommand ParamName=[T1] ParamPosition={0}
355 // CHECK-NEXT:         (CXComment_Paragraph
356 // CHECK-NEXT:           (CXComment_Text Text=[ Aaa]))))]
357 
358 /// \tparam T2 Bbb
359 /// \tparam U Zzz
360 /// \tparam V Ccc
361 /// \tparam T1 Aaa
362 template<typename T1, typename T2, int V>
363 void comment_to_html_conversion_21(T1 aaa, T2 bbb);
364 
365 // CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=comment_to_html_conversion_21:{{.*}} 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_21</Name><USR>c:@FT@&gt;3#T#T#NIcomment_to_html_conversion_21#t0.0#t0.1#</USR><Declaration>template &lt;typename T1, typename T2, int V&gt;\nvoid comment_to_html_conversion_21(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>]
366 // CHECK-NEXT:  CommentAST=[
367 // CHECK-NEXT:    (CXComment_FullComment
368 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
369 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
370 // CHECK-NEXT:       (CXComment_TParamCommand ParamName=[T2] ParamPosition={1}
371 // CHECK-NEXT:         (CXComment_Paragraph
372 // CHECK-NEXT:           (CXComment_Text Text=[ Bbb] HasTrailingNewline)
373 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
374 // CHECK-NEXT:       (CXComment_TParamCommand ParamName=[U] ParamPosition=Invalid
375 // CHECK-NEXT:         (CXComment_Paragraph
376 // CHECK-NEXT:           (CXComment_Text Text=[ Zzz] HasTrailingNewline)
377 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
378 // CHECK-NEXT:       (CXComment_TParamCommand ParamName=[V] ParamPosition={2}
379 // CHECK-NEXT:         (CXComment_Paragraph
380 // CHECK-NEXT:           (CXComment_Text Text=[ Ccc] HasTrailingNewline)
381 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
382 // CHECK-NEXT:       (CXComment_TParamCommand ParamName=[T1] ParamPosition={0}
383 // CHECK-NEXT:         (CXComment_Paragraph
384 // CHECK-NEXT:           (CXComment_Text Text=[ Aaa]))))]
385 
386 /// \tparam TTT Ddd
387 /// \tparam C Ccc
388 /// \tparam T Aaa
389 /// \tparam TT Bbb
390 template<template<template<typename T> class TT, class C> class TTT>
391 void comment_to_html_conversion_22();
392 
393 // CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionTemplate=comment_to_html_conversion_22:{{.*}} 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_22</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_22#</USR><Declaration>template &lt;template &lt;template &lt;typename T&gt; class TT, class C&gt; class TTT&gt;\nvoid comment_to_html_conversion_22()</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>]
394 // CHECK-NEXT:  CommentAST=[
395 // CHECK-NEXT:    (CXComment_FullComment
396 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
397 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
398 // CHECK-NEXT:       (CXComment_TParamCommand ParamName=[TTT] ParamPosition={0}
399 // CHECK-NEXT:         (CXComment_Paragraph
400 // CHECK-NEXT:           (CXComment_Text Text=[ Ddd] HasTrailingNewline)
401 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
402 // CHECK-NEXT:       (CXComment_TParamCommand ParamName=[C] ParamPosition={0, 1}
403 // CHECK-NEXT:         (CXComment_Paragraph
404 // CHECK-NEXT:           (CXComment_Text Text=[ Ccc] HasTrailingNewline)
405 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
406 // CHECK-NEXT:       (CXComment_TParamCommand ParamName=[T] ParamPosition={0, 0, 0}
407 // CHECK-NEXT:         (CXComment_Paragraph
408 // CHECK-NEXT:           (CXComment_Text Text=[ Aaa] HasTrailingNewline)
409 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
410 // CHECK-NEXT:       (CXComment_TParamCommand ParamName=[TT] ParamPosition={0, 0}
411 // CHECK-NEXT:         (CXComment_Paragraph
412 // CHECK-NEXT:           (CXComment_Text Text=[ Bbb]))))]
413 
414 /// \brief Aaa.
415 ///
416 /// Bbb.
417 ///
418 /// \param x2 Ddd.
419 /// \param x1 Ccc.
420 /// \returns Eee.
421 void comment_to_html_conversion_23(int x1, int x2);
422 
423 // CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-2]]:6: FunctionDecl=comment_to_html_conversion_23:{{.*}} 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>comment_to_html_conversion_23</Name><USR>c:@F@comment_to_html_conversion_23#I#I#</USR><Declaration>void comment_to_html_conversion_23(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>]
424 // CHECK-NEXT:  CommentAST=[
425 // CHECK-NEXT:    (CXComment_FullComment
426 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
427 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
428 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[brief]
429 // CHECK-NEXT:         (CXComment_Paragraph
430 // CHECK-NEXT:           (CXComment_Text Text=[ Aaa.])))
431 // CHECK-NEXT:       (CXComment_Paragraph
432 // CHECK-NEXT:         (CXComment_Text Text=[ Bbb.]))
433 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
434 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
435 // CHECK-NEXT:       (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
436 // CHECK-NEXT:         (CXComment_Paragraph
437 // CHECK-NEXT:           (CXComment_Text Text=[ Ddd.] HasTrailingNewline)
438 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
439 // CHECK-NEXT:       (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
440 // CHECK-NEXT:         (CXComment_Paragraph
441 // CHECK-NEXT:           (CXComment_Text Text=[ Ccc.] HasTrailingNewline)
442 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
443 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[returns]
444 // CHECK-NEXT:         (CXComment_Paragraph
445 // CHECK-NEXT:           (CXComment_Text Text=[ Eee.]))))]
446 
447 /// <br><a href="http://example.com/">Aaa</a>
448 void comment_to_html_conversion_24();
449 
450 // 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>]
451 // CHECK-NEXT:  CommentAST=[
452 // CHECK-NEXT:    (CXComment_FullComment
453 // CHECK-NEXT:       (CXComment_Paragraph
454 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
455 // CHECK-NEXT:         (CXComment_HTMLStartTag Name=[br])
456 // CHECK-NEXT:         (CXComment_HTMLStartTag Name=[a] Attrs: href=http://example.com/)
457 // CHECK-NEXT:         (CXComment_Text Text=[Aaa])
458 // CHECK-NEXT:         (CXComment_HTMLEndTag Name=[a])))]
459 
460 /// \verbatim
461 /// <a href="http://example.com/">Aaa</a>
462 /// <a href='http://example.com/'>Aaa</a>
463 /// \endverbatim
464 void comment_to_html_conversion_25();
465 
466 // 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>]
467 // CHECK-NEXT:  CommentAST=[
468 // CHECK-NEXT:    (CXComment_FullComment
469 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
470 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
471 // CHECK-NEXT:       (CXComment_VerbatimBlockCommand CommandName=[verbatim]
472 // CHECK-NEXT:         (CXComment_VerbatimBlockLine Text=[ <a href="http://example.com/">Aaa</a>])
473 // CHECK-NEXT:         (CXComment_VerbatimBlockLine Text=[ <a href='http://example.com/'>Aaa</a>])))]
474 
475 /// \def foo_def
476 /// \fn foo_fn
477 /// \namespace foo_namespace
478 /// \overload foo_overload
479 /// \property foo_property
480 /// \typedef foo_typedef
481 /// \var foo_var
482 /// \function foo_function
483 /// \class foo_class
484 /// \method foo_method
485 /// \interface foo_interface
486 /// Blah blah.
487 void comment_to_html_conversion_26();
488 
489 // 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>]
490 // CHECK-NEXT:  CommentAST=[
491 // CHECK-NEXT:    (CXComment_FullComment
492 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
493 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
494 // CHECK-NEXT:       (CXComment_VerbatimLine Text=[ foo_def])
495 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
496 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
497 // CHECK-NEXT:       (CXComment_VerbatimLine Text=[ foo_fn])
498 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
499 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
500 // CHECK-NEXT:       (CXComment_VerbatimLine Text=[ foo_namespace])
501 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
502 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
503 // CHECK-NEXT:       (CXComment_VerbatimLine Text=[ foo_overload])
504 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
505 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
506 // CHECK-NEXT:       (CXComment_VerbatimLine Text=[ foo_property])
507 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
508 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
509 // CHECK-NEXT:       (CXComment_VerbatimLine Text=[ foo_typedef])
510 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
511 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
512 // CHECK-NEXT:       (CXComment_VerbatimLine Text=[ foo_var])
513 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
514 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
515 // CHECK-NEXT:       (CXComment_VerbatimLine Text=[ foo_function])
516 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
517 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
518 // CHECK-NEXT:       (CXComment_VerbatimLine Text=[ foo_class])
519 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
520 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
521 // CHECK-NEXT:       (CXComment_VerbatimLine Text=[ foo_method])
522 // CHECK-NEXT:       (CXComment_Paragraph IsWhitespace
523 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
524 // CHECK-NEXT:       (CXComment_VerbatimLine Text=[ foo_interface])
525 // CHECK-NEXT:       (CXComment_Paragraph
526 // CHECK-NEXT:         (CXComment_Text Text=[ Blah blah.])))]
527 
528 /// \unknown
529 void comment_to_html_conversion_27();
530 
531 // 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>]
532 // CHECK-NEXT:  CommentAST=[
533 // CHECK-NEXT:    (CXComment_FullComment
534 // CHECK-NEXT:       (CXComment_Paragraph
535 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
536 // CHECK-NEXT:         (CXComment_InlineCommand CommandName=[unknown] RenderNormal)))]
537 
538 /// \b Aaa
539 void comment_to_html_conversion_28();
540 
541 // 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>]
542 // CHECK-NEXT:  CommentAST=[
543 // CHECK-NEXT:    (CXComment_FullComment
544 // CHECK-NEXT:       (CXComment_Paragraph
545 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
546 // CHECK-NEXT:         (CXComment_InlineCommand CommandName=[b] RenderBold Arg[0]=Aaa)))]
547 
548 /// \c Aaa \p Bbb
549 void comment_to_html_conversion_29();
550 
551 // 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>]
552 // CHECK-NEXT:  CommentAST=[
553 // CHECK-NEXT:    (CXComment_FullComment
554 // CHECK-NEXT:       (CXComment_Paragraph
555 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
556 // CHECK-NEXT:         (CXComment_InlineCommand CommandName=[c] RenderMonospaced Arg[0]=Aaa)
557 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
558 // CHECK-NEXT:         (CXComment_InlineCommand CommandName=[p] RenderMonospaced Arg[0]=Bbb)))]
559 
560 /// \a Aaa \e Bbb \em Ccc
561 void comment_to_html_conversion_30();
562 
563 // 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>]
564 // CHECK-NEXT:  CommentAST=[
565 // CHECK-NEXT:    (CXComment_FullComment
566 // CHECK-NEXT:       (CXComment_Paragraph
567 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
568 // CHECK-NEXT:         (CXComment_InlineCommand CommandName=[a] RenderEmphasized Arg[0]=Aaa)
569 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
570 // CHECK-NEXT:         (CXComment_InlineCommand CommandName=[e] RenderEmphasized Arg[0]=Bbb)
571 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
572 // CHECK-NEXT:         (CXComment_InlineCommand CommandName=[em] RenderEmphasized Arg[0]=Ccc)))]
573 
574 /// \a 1<2 \e 3<4 \em 5<6 \param 7<8 aaa \tparam 9<10 bbb
575 void comment_to_html_conversion_31();
576 
577 // 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>]
578 // CHECK-NEXT:  CommentAST=[
579 // CHECK-NEXT:    (CXComment_FullComment
580 // CHECK-NEXT:       (CXComment_Paragraph
581 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
582 // CHECK-NEXT:         (CXComment_InlineCommand CommandName=[a] RenderEmphasized Arg[0]=1<2)
583 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
584 // CHECK-NEXT:         (CXComment_InlineCommand CommandName=[e] RenderEmphasized Arg[0]=3<4)
585 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
586 // CHECK-NEXT:         (CXComment_InlineCommand CommandName=[em] RenderEmphasized Arg[0]=5<6)
587 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
588 // CHECK-NEXT:       (CXComment_ParamCommand in implicitly ParamName=[7<8] ParamIndex=Invalid
589 // CHECK-NEXT:         (CXComment_Paragraph
590 // CHECK-NEXT:           (CXComment_Text Text=[ aaa ])))
591 // CHECK-NEXT:       (CXComment_TParamCommand ParamName=[9<10] ParamPosition=Invalid
592 // CHECK-NEXT:         (CXComment_Paragraph
593 // CHECK-NEXT:           (CXComment_Text Text=[ bbb]))))]
594 
595 /// \\ \@ \& \$ \# \< \> \% \" \. \::
596 void comment_to_html_conversion_32();
597 
598 // 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>]
599 // CHECK-NEXT:  CommentAST=[
600 // CHECK-NEXT:    (CXComment_FullComment
601 // CHECK-NEXT:       (CXComment_Paragraph
602 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
603 // CHECK-NEXT:         (CXComment_Text Text=[\])
604 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
605 // CHECK-NEXT:         (CXComment_Text Text=[@])
606 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
607 // CHECK-NEXT:         (CXComment_Text Text=[&])
608 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
609 // CHECK-NEXT:         (CXComment_Text Text=[$])
610 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
611 // CHECK-NEXT:         (CXComment_Text Text=[#])
612 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
613 // CHECK-NEXT:         (CXComment_Text Text=[<])
614 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
615 // CHECK-NEXT:         (CXComment_Text Text=[>])
616 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
617 // CHECK-NEXT:         (CXComment_Text Text=[%])
618 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
619 // CHECK-NEXT:         (CXComment_Text Text=["])
620 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
621 // CHECK-NEXT:         (CXComment_Text Text=[.])
622 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
623 // CHECK-NEXT:         (CXComment_Text Text=[::])))]
624 
625 /// &amp; &lt; &gt; &quot; &apos; &#109;&#101;&#111;&#119; &#x6d;&#x65;&#x6F;&#X77;
626 void comment_to_html_conversion_33();
627 
628 // 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>]
629 // CHECK-NEXT:  CommentAST=[
630 // CHECK-NEXT:    (CXComment_FullComment
631 // CHECK-NEXT:       (CXComment_Paragraph
632 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
633 // CHECK-NEXT:         (CXComment_Text Text=[&])
634 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
635 // CHECK-NEXT:         (CXComment_Text Text=[<])
636 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
637 // CHECK-NEXT:         (CXComment_Text Text=[>])
638 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
639 // CHECK-NEXT:         (CXComment_Text Text=["])
640 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
641 // CHECK-NEXT:         (CXComment_Text Text=['])
642 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
643 // CHECK-NEXT:         (CXComment_Text Text=[m])
644 // CHECK-NEXT:         (CXComment_Text Text=[e])
645 // CHECK-NEXT:         (CXComment_Text Text=[o])
646 // CHECK-NEXT:         (CXComment_Text Text=[w])
647 // CHECK-NEXT:         (CXComment_Text Text=[  ] IsWhitespace)
648 // CHECK-NEXT:         (CXComment_Text Text=[m])
649 // CHECK-NEXT:         (CXComment_Text Text=[e])
650 // CHECK-NEXT:         (CXComment_Text Text=[o])
651 // CHECK-NEXT:         (CXComment_Text Text=[w])))]
652 
653 /// <em>0&lt;i</em>
654 void comment_to_html_conversion_34();
655 
656 // 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>]
657 // CHECK-NEXT:  CommentAST=[
658 // CHECK-NEXT:    (CXComment_FullComment
659 // CHECK-NEXT:       (CXComment_Paragraph
660 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
661 // CHECK-NEXT:         (CXComment_HTMLStartTag Name=[em])
662 // CHECK-NEXT:         (CXComment_Text Text=[0])
663 // CHECK-NEXT:         (CXComment_Text Text=[<])
664 // CHECK-NEXT:         (CXComment_Text Text=[i])
665 // CHECK-NEXT:         (CXComment_HTMLEndTag Name=[em])))]
666 
667 // rdar://12392215
668 /// &copy; the copyright symbol
669 /// &trade; the trade mark symbol
670 /// &reg; the registered trade mark symbol
671 /// &nbsp; a non breakable space.
672 /// &Delta; Greek letter Delta Δ.
673 /// &Gamma; Greek letter Gamma Γ.
674 void comment_to_html_conversion_35();
675 
676 // 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>]
677 // CHECK-NEXT:  CommentAST=[
678 // CHECK-NEXT:    (CXComment_FullComment
679 // CHECK-NEXT:       (CXComment_Paragraph
680 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
681 // CHECK-NEXT:         (CXComment_Text Text=[©])
682 // CHECK-NEXT:         (CXComment_Text Text=[ the copyright symbol] HasTrailingNewline)
683 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
684 // CHECK-NEXT:         (CXComment_Text Text=[™])
685 // CHECK-NEXT:         (CXComment_Text Text=[ the trade mark symbol] HasTrailingNewline)
686 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
687 // CHECK-NEXT:         (CXComment_Text Text=[®])
688 // CHECK-NEXT:         (CXComment_Text Text=[ the registered trade mark symbol] HasTrailingNewline)
689 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
690 // CHECK-NEXT:         (CXComment_Text Text=[ ])
691 // CHECK-NEXT:         (CXComment_Text Text=[ a non breakable space.] HasTrailingNewline)
692 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
693 // CHECK-NEXT:         (CXComment_Text Text=[Δ])
694 // CHECK-NEXT:         (CXComment_Text Text=[ Greek letter Delta Δ.] HasTrailingNewline)
695 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace)
696 // CHECK-NEXT:         (CXComment_Text Text=[Γ])
697 // CHECK-NEXT:         (CXComment_Text Text=[ Greek letter Gamma Γ.])))]
698 
699 
700 /// Aaa.
701 class comment_to_xml_conversion_01 {
702 // 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>]
703 
704   /// \param aaa Blah blah.
705   comment_to_xml_conversion_01(int aaa);
706 
707 // 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>]
708 
709   /// Aaa.
710   ~comment_to_xml_conversion_01();
711 
712 // 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>]
713 
714   /// \param aaa Blah blah.
715   int comment_to_xml_conversion_02(int aaa);
716 
717 // 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>]
718 
719   /// \param aaa Blah blah.
720   static int comment_to_xml_conversion_03(int aaa);
721 
722 // 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>]
723 
724   /// Aaa.
725   int comment_to_xml_conversion_04;
726 
727 // 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>]
728 
729   /// Aaa.
730   static int comment_to_xml_conversion_05;
731 
732 // 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>]
733 
734   /// \param aaa Blah blah.
735   void operator()(int aaa);
736 
737 // 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>]
738 
739   /// Aaa.
740   operator bool();
741 
742 // 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>]
743 
744   /// Aaa.
745   typedef int comment_to_xml_conversion_06;
746 
747 // USR is line-dependent here, so filter it with a regexp.
748 // 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>]
749 
750   /// Aaa.
751   using comment_to_xml_conversion_07 = int;
752 
753 // 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>]
754 
755   /// Aaa.
756   template<typename T, typename U>
757   class comment_to_xml_conversion_08 { };
758 
759 // 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>]
760 
761   /// Aaa.
762   template<typename T>
763   using comment_to_xml_conversion_09 = comment_to_xml_conversion_08<T, int>;
764 
765 // 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>]
766 };
767 
768 /// Aaa.
769 template<typename T, typename U>
770 void comment_to_xml_conversion_10(T aaa, U bbb);
771 
772 // 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>]
773 
774 /// Aaa.
775 template<>
776 void comment_to_xml_conversion_10(int aaa, int bbb);
777 
778 // 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>]
779 
780 /// Aaa.
781 template<typename T, typename U>
782 class comment_to_xml_conversion_11 { };
783 
784 // 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>]
785 
786 /// Aaa.
787 template<typename T>
788 class comment_to_xml_conversion_11<T, int> { };
789 
790 // 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>]
791 
792 /// Aaa.
793 template<>
794 class comment_to_xml_conversion_11<int, int> { };
795 
796 // 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>]
797 
798 /// Aaa.
799 int comment_to_xml_conversion_12;
800 
801 // 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>]
802 
803 /// Aaa.
804 namespace comment_to_xml_conversion_13 {
805 // 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>]
806 
807   /// Aaa.
808   namespace comment_to_xml_conversion_14 {
809 // 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>]
810   }
811 }
812 
813 /// Aaa.
814 enum comment_to_xml_conversion_15 {
815 // 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>]
816 
817   /// Aaa.
818   comment_to_xml_conversion_16
819 // 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>]
820 };
821 
822 /// Aaa.
823 enum class comment_to_xml_conversion_17 {
824 // 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>]
825 
826   /// Aaa.
827   comment_to_xml_conversion_18
828 // 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>]
829 };
830 
831 //===---
832 // Check that we attach comments from the base class to derived classes if they don't have a comment.
833 // rdar://13647476
834 //===---
835 
836 /// BaseToSuper1_Base
837 class BaseToSuper1_Base {};
838 
839 class BaseToSuper1_Derived : public BaseToSuper1_Base {};
840 // 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>]
841 
842 
843 /// BaseToSuper2_Base
844 class BaseToSuper2_Base {};
845 
846 /// BaseToSuper2_Derived
847 class BaseToSuper2_Derived : public BaseToSuper2_Base {};
848 // 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>]
849 
850 class BaseToSuper2_MoreDerived : public BaseToSuper2_Derived {};
851 // 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>]
852 
853 
854 /// BaseToSuper3_Base
855 class BaseToSuper3_Base {};
856 
857 class BaseToSuper3_DerivedA : public virtual BaseToSuper3_Base {};
858 
859 class BaseToSuper3_DerivedB : public virtual BaseToSuper3_Base {};
860 
861 class BaseToSuper3_MoreDerived : public BaseToSuper3_DerivedA, public BaseToSuper3_DerivedB {};
862 // 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>]
863 
864 
865 // Check that we propagate comments only through public inheritance.
866 
867 /// BaseToSuper4_Base
868 class BaseToSuper4_Base {};
869 
870 /// BaseToSuper4_DerivedA
871 class BaseToSuper4_DerivedA : virtual BaseToSuper4_Base {};
872 
873 class BaseToSuper4_DerivedB : public virtual BaseToSuper4_Base {};
874 
875 class BaseToSuper4_MoreDerived : BaseToSuper4_DerivedA, public BaseToSuper4_DerivedB {};
876 // 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>]
877 
878 //===---
879 // Check the representation of \todo in XML.
880 //===---
881 
882 /// Aaa.
883 /// \todo Bbb.
884 void comment_to_xml_conversion_todo_1();
885 // 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>]
886 
887 /// Aaa.
888 /// \todo Bbb.
889 ///
890 /// Ccc.
891 void comment_to_xml_conversion_todo_2();
892 // 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>]
893 
894 /// Aaa.
895 /// \todo Bbb.
896 ///
897 /// Ccc.
898 /// \todo Ddd.
899 void comment_to_xml_conversion_todo_3();
900 // 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>]
901 
902 /// Aaa.
903 /// \todo Bbb.
904 /// \todo Ccc.
905 void comment_to_xml_conversion_todo_4();
906 // 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>]
907 
908 
909 //===---
910 // Test the representation of exception specifications in AST and XML.
911 //===---
912 
913 /// Aaa.
914 /// \throws Bbb.
915 void comment_to_xml_conversion_exceptions_1();
916 // 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>]
917 // CHECK-NEXT:  CommentAST=[
918 // CHECK-NEXT:    (CXComment_FullComment
919 // CHECK-NEXT:       (CXComment_Paragraph
920 // CHECK-NEXT:         (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
921 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
922 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[throws]
923 // CHECK-NEXT:         (CXComment_Paragraph
924 // CHECK-NEXT:           (CXComment_Text Text=[ Bbb.]))))]
925 
926 /// Aaa.
927 /// \throw Bbb.
928 void comment_to_xml_conversion_exceptions_2();
929 // 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>]
930 // CHECK-NEXT:  CommentAST=[
931 // CHECK-NEXT:    (CXComment_FullComment
932 // CHECK-NEXT:       (CXComment_Paragraph
933 // CHECK-NEXT:         (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
934 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
935 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[throw]
936 // CHECK-NEXT:         (CXComment_Paragraph
937 // CHECK-NEXT:           (CXComment_Text Text=[ Bbb.]))))]
938 
939 /// Aaa.
940 /// \exception Bbb.
941 void comment_to_xml_conversion_exceptions_3();
942 // 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>]
943 // CHECK-NEXT:  CommentAST=[
944 // CHECK-NEXT:    (CXComment_FullComment
945 // CHECK-NEXT:       (CXComment_Paragraph
946 // CHECK-NEXT:         (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
947 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
948 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[exception]
949 // CHECK-NEXT:         (CXComment_Paragraph
950 // CHECK-NEXT:           (CXComment_Text Text=[ Bbb.]))))]
951 
952 /// Aaa.
953 /// \throws Bbb.
954 /// \throws Ccc.
955 /// \throws Ddd.
956 void comment_to_xml_conversion_exceptions_4();
957 // 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>]
958 // CHECK-NEXT:  CommentAST=[
959 // CHECK-NEXT:    (CXComment_FullComment
960 // CHECK-NEXT:       (CXComment_Paragraph
961 // CHECK-NEXT:         (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
962 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
963 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[throws]
964 // CHECK-NEXT:         (CXComment_Paragraph
965 // CHECK-NEXT:           (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
966 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
967 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[throws]
968 // CHECK-NEXT:         (CXComment_Paragraph
969 // CHECK-NEXT:           (CXComment_Text Text=[ Ccc.] HasTrailingNewline)
970 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
971 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[throws]
972 // CHECK-NEXT:         (CXComment_Paragraph
973 // CHECK-NEXT:           (CXComment_Text Text=[ Ddd.]))))]
974 
975 /// Aaa.
976 /// \throws Bbb.
977 /// \throw Ccc.
978 void comment_to_xml_conversion_exceptions_5();
979 // 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>]
980 // CHECK-NEXT:  CommentAST=[
981 // CHECK-NEXT:    (CXComment_FullComment
982 // CHECK-NEXT:       (CXComment_Paragraph
983 // CHECK-NEXT:         (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
984 // CHECK-NEXT:         (CXComment_Text Text=[ ] IsWhitespace))
985 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[throws]
986 // CHECK-NEXT:         (CXComment_Paragraph
987 // CHECK-NEXT:           (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
988 // CHECK-NEXT:           (CXComment_Text Text=[ ] IsWhitespace)))
989 // CHECK-NEXT:       (CXComment_BlockCommand CommandName=[throw]
990 // CHECK-NEXT:         (CXComment_Paragraph
991 // CHECK-NEXT:           (CXComment_Text Text=[ Ccc.]))))]
992 
993 
994 // rdar://14348912
995 #define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type
996 
997 /**! Documentation comment */
998 typedef NS_ENUM(int, Color) { Red, Green, Blue };
999 // CHECK: comment-to-html-xml-conversion.cpp:[[@LINE-1]]:22: TypedefDecl=Color:[[@LINE-1]]:22
1000 // CHECK-NEXT:  CommentAST=[
1001 // CHECK-NEXT:    (CXComment_FullComment
1002 // CHECK-NEXT:       (CXComment_Paragraph
1003 // CHECK-NEXT:         (CXComment_Text Text=[! Documentation comment ])))]
1004 
1005 #endif
1006 
1007