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