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