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