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