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