annotate-comments.cpp 60 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964
  1. // Run lines are sensitive to line numbers and come below the code.
  2. #ifndef HEADER
  3. #define HEADER
  4. // Not a Doxygen comment. NOT_DOXYGEN
  5. void notdoxy1(void);
  6. /* Not a Doxygen comment. NOT_DOXYGEN */
  7. void notdoxy2(void);
  8. /*/ Not a Doxygen comment. NOT_DOXYGEN */
  9. void notdoxy3(void);
  10. /** Doxygen comment. isdoxy4 IS_DOXYGEN_SINGLE */
  11. void isdoxy4(void);
  12. /**
  13. * Doxygen comment. isdoxy5 IS_DOXYGEN_SINGLE */
  14. void isdoxy5(void);
  15. /**
  16. * Doxygen comment.
  17. * isdoxy6 IS_DOXYGEN_SINGLE */
  18. void isdoxy6(void);
  19. /**
  20. * Doxygen comment.
  21. * isdoxy7 IS_DOXYGEN_SINGLE
  22. */
  23. void isdoxy7(void);
  24. /*! Doxygen comment. isdoxy8 IS_DOXYGEN_SINGLE */
  25. void isdoxy8(void);
  26. /// Doxygen comment. isdoxy9 IS_DOXYGEN_SINGLE
  27. void isdoxy9(void);
  28. // Not a Doxygen comment. NOT_DOXYGEN
  29. /// Doxygen comment. isdoxy10 IS_DOXYGEN_SINGLE
  30. void isdoxy10(void);
  31. /// Doxygen comment. isdoxy11 IS_DOXYGEN_SINGLE
  32. // Not a Doxygen comment. NOT_DOXYGEN
  33. void isdoxy11(void);
  34. /** Doxygen comment. isdoxy12 IS_DOXYGEN_SINGLE */
  35. /* Not a Doxygen comment. NOT_DOXYGEN */
  36. void isdoxy12(void);
  37. /// Doxygen comment. isdoxy13 IS_DOXYGEN_START
  38. /// Doxygen comment. IS_DOXYGEN_END
  39. void isdoxy13(void);
  40. /// Doxygen comment. isdoxy14 IS_DOXYGEN_START
  41. /// Blah-blah-blah.
  42. /// Doxygen comment. IS_DOXYGEN_END
  43. void isdoxy14(void);
  44. /// Doxygen comment. isdoxy15 IS_DOXYGEN_START
  45. /** Blah-blah-blah */
  46. /// Doxygen comment. IS_DOXYGEN_END
  47. void isdoxy15(void);
  48. /** Blah-blah-blah. isdoxy16 IS_DOXYGEN_START *//** Blah */
  49. /// Doxygen comment. IS_DOXYGEN_END
  50. void isdoxy16(void);
  51. /// NOT_DOXYGEN
  52. // NOT_DOXYGEN
  53. /// isdoxy17 IS_DOXYGEN_START IS_DOXYGEN_END
  54. void isdoxy17(void);
  55. unsigned
  56. // NOT_DOXYGEN
  57. /// NOT_DOXYGEN
  58. // NOT_DOXYGEN
  59. /// isdoxy18 IS_DOXYGEN_START IS_DOXYGEN_END
  60. // NOT_DOXYGEN
  61. int isdoxy18(void);
  62. //! It all starts here. isdoxy19 IS_DOXYGEN_START
  63. /*! It's a little odd to continue line this,
  64. *
  65. * but we need more multi-line comments. */
  66. /// This comment comes before my other comments
  67. /** This is a block comment that is associated with the function f. It
  68. * runs for three lines. IS_DOXYGEN_END
  69. */
  70. void isdoxy19(int, int);
  71. // NOT IN THE COMMENT NOT_DOXYGEN
  72. /// This is a BCPL comment. isdoxy20 IS_DOXYGEN_START
  73. /// It has only two lines.
  74. /** But there are other blocks that are part of the comment, too. IS_DOXYGEN_END */
  75. void isdoxy20(int);
  76. void notdoxy21(int); ///< This is a member comment. isdoxy21 IS_DOXYGEN_NOT_ATTACHED
  77. void notdoxy22(int); /*!< This is a member comment. isdoxy22 IS_DOXYGEN_NOT_ATTACHED */
  78. void notdoxy23(int); /**< This is a member comment. isdoxy23 IS_DOXYGEN_NOT_ATTACHED */
  79. void notdoxy24(int); // NOT_DOXYGEN
  80. /// IS_DOXYGEN_SINGLE
  81. struct isdoxy25 {
  82. };
  83. struct test26 {
  84. /// IS_DOXYGEN_SINGLE
  85. int isdoxy26;
  86. };
  87. struct test27 {
  88. int isdoxy27; ///< IS_DOXYGEN_SINGLE
  89. };
  90. struct notdoxy28 {
  91. }; ///< IS_DOXYGEN_NOT_ATTACHED
  92. /// IS_DOXYGEN_SINGLE
  93. enum isdoxy29 {
  94. };
  95. enum notdoxy30 {
  96. }; ///< IS_DOXYGEN_NOT_ATTACHED
  97. /// IS_DOXYGEN_SINGLE
  98. namespace isdoxy31 {
  99. };
  100. namespace notdoxy32 {
  101. }; ///< IS_DOXYGEN_NOT_ATTACHED
  102. class test33 {
  103. ///< IS_DOXYGEN_NOT_ATTACHED
  104. int isdoxy33; ///< isdoxy33 IS_DOXYGEN_SINGLE
  105. int isdoxy34; ///< isdoxy34 IS_DOXYGEN_SINGLE
  106. ///< IS_DOXYGEN_NOT_ATTACHED
  107. int isdoxy35, ///< isdoxy35 IS_DOXYGEN_SINGLE
  108. isdoxy36; ///< isdoxy36 IS_DOXYGEN_SINGLE
  109. ///< IS_DOXYGEN_NOT_ATTACHED
  110. int isdoxy37 ///< isdoxy37 IS_DOXYGEN_SINGLE
  111. , isdoxy38 ///< isdoxy38 IS_DOXYGEN_SINGLE
  112. , isdoxy39; ///< isdoxy39 IS_DOXYGEN_SINGLE
  113. };
  114. // Verified that Doxygen attaches these.
  115. /// isdoxy40 IS_DOXYGEN_SINGLE
  116. // NOT_DOXYGEN
  117. void isdoxy40(int);
  118. unsigned
  119. /// isdoxy41 IS_DOXYGEN_SINGLE
  120. // NOT_DOXYGEN
  121. int isdoxy41(int);
  122. class test42 {
  123. int isdoxy42; /* NOT_DOXYGEN */ ///< isdoxy42 IS_DOXYGEN_SINGLE
  124. };
  125. /// IS_DOXYGEN_START
  126. /// It is fine to have a command at the end of comment.
  127. ///\brief
  128. ///
  129. /// Some malformed command.
  130. /** \*/
  131. /**
  132. * \brief Aaa aaaaaaa aaaa.
  133. * IS_DOXYGEN_END
  134. */
  135. void isdoxy43(void);
  136. /// IS_DOXYGEN_START Aaa bbb
  137. /// ccc.
  138. ///
  139. /// Ddd eee.
  140. /// Fff.
  141. ///
  142. /// Ggg. IS_DOXYGEN_END
  143. void isdoxy44(void);
  144. /// IS_DOXYGEN_START Aaa bbb
  145. /// ccc.
  146. ///
  147. /// \brief
  148. /// Ddd eee.
  149. /// Fff.
  150. ///
  151. /// Ggg. IS_DOXYGEN_END
  152. void isdoxy45(void);
  153. /// IS_DOXYGEN_START Aaa bbb
  154. /// ccc.
  155. ///
  156. /// \short
  157. /// Ddd eee.
  158. /// Fff.
  159. ///
  160. /// Ggg. IS_DOXYGEN_END
  161. void isdoxy46(void);
  162. /// IS_DOXYGEN_NOT_ATTACHED
  163. #define FOO
  164. void notdoxy47(void);
  165. /// IS_DOXYGEN_START Aaa bbb
  166. /// \param ccc
  167. /// \returns ddd IS_DOXYGEN_END
  168. void isdoxy48(int);
  169. /// \brief IS_DOXYGEN_START Aaa
  170. /// \returns bbb IS_DOXYGEN_END
  171. void isdoxy49(void);
  172. /// \param ccc IS_DOXYGEN_START
  173. /// \returns ddd IS_DOXYGEN_END
  174. void isdoxy50(int);
  175. // One of the following lines has trailing whitespace. It is intended, don't
  176. // fix it.
  177. /**
  178. * Aaa. IS_DOXYGEN_START
  179. *
  180. * Bbb. IS_DOXYGEN_END
  181. */
  182. void isdoxy51(int);
  183. // One of the following lines has trailing whitespace. It is intended, don't
  184. // fix it.
  185. /**
  186. * Aaa. IS_DOXYGEN_START
  187. * Bbb.
  188. *
  189. * Ccc. IS_DOXYGEN_END
  190. */
  191. void isdoxy52(int);
  192. /**
  193. * \fn isdoxy53
  194. *
  195. * Aaa. IS_DOXYGEN_START IS_DOXYGEN_END
  196. */
  197. void isdoxy53(int);
  198. /// Aaa.
  199. void comment_to_html_conversion_1();
  200. /// \brief Aaa.
  201. void comment_to_html_conversion_2();
  202. /// \short Aaa.
  203. void comment_to_html_conversion_3();
  204. /// Aaa.
  205. ///
  206. /// \brief Bbb.
  207. void comment_to_html_conversion_4();
  208. /// Aaa.
  209. ///
  210. /// \brief Bbb.
  211. ///
  212. /// Ccc.
  213. void comment_to_html_conversion_5();
  214. /// \brief Aaa.
  215. /// \brief Bbb.
  216. void comment_to_html_conversion_6();
  217. /// Aaa.
  218. ///
  219. /// \return Bbb.
  220. void comment_to_html_conversion_7();
  221. /// Aaa.
  222. ///
  223. /// \returns Bbb.
  224. void comment_to_html_conversion_8();
  225. /// Aaa.
  226. ///
  227. /// \result Bbb.
  228. void comment_to_html_conversion_9();
  229. /// \returns Aaa.
  230. /// \returns Bbb.
  231. void comment_to_html_conversion_10();
  232. /// Aaa.
  233. ///
  234. /// Bbb.
  235. ///
  236. /// \returns Ccc.
  237. void comment_to_html_conversion_11();
  238. /// \param
  239. void comment_to_html_conversion_12(int x1);
  240. /// \param x1 Aaa.
  241. void comment_to_html_conversion_13(int x1);
  242. /// \param zzz Aaa.
  243. void comment_to_html_conversion_14(int x1);
  244. /// \param x2 Bbb.
  245. /// \param x1 Aaa.
  246. void comment_to_html_conversion_15(int x1, int x2);
  247. /// \param x2 Bbb.
  248. /// \param zzz Aaa.
  249. /// \param x1 Aaa.
  250. void comment_to_html_conversion_16(int x1, int x2);
  251. /// \tparam
  252. /// \param aaa Blah blah
  253. template<typename T>
  254. void comment_to_html_conversion_17(T aaa);
  255. /// \tparam T
  256. /// \param aaa Blah blah
  257. template<typename T>
  258. void comment_to_html_conversion_18(T aaa);
  259. /// \tparam T2 Bbb
  260. /// \tparam T1 Aaa
  261. template<typename T1, typename T2>
  262. void comment_to_html_conversion_19(T1 aaa, T2 bbb);
  263. /// \tparam T2 Bbb
  264. /// \tparam U Zzz
  265. /// \tparam V Ccc
  266. /// \tparam T1 Aaa
  267. template<typename T1, typename T2, int V>
  268. void comment_to_html_conversion_20(T1 aaa, T2 bbb);
  269. /// \tparam TTT Ddd
  270. /// \tparam C Ccc
  271. /// \tparam T Aaa
  272. /// \tparam TT Bbb
  273. template<template<template<typename T> class TT, class C> class TTT>
  274. void comment_to_html_conversion_21();
  275. /// \brief Aaa.
  276. ///
  277. /// Bbb.
  278. ///
  279. /// \param x2 Ddd.
  280. /// \param x1 Ccc.
  281. /// \returns Eee.
  282. void comment_to_html_conversion_22(int x1, int x2);
  283. /// <br><a href="http://example.com/">Aaa</a>
  284. void comment_to_html_conversion_23();
  285. /// \verbatim
  286. /// <a href="http://example.com/">Aaa</a>
  287. /// <a href='http://example.com/'>Aaa</a>
  288. /// \endverbatim
  289. void comment_to_html_conversion_24();
  290. /// \function foo
  291. /// \class foo
  292. /// \method foo
  293. /// \interface foo
  294. /// Blah blah.
  295. void comment_to_html_conversion_25();
  296. /// \unknown
  297. void comment_to_html_conversion_26();
  298. /// \b Aaa
  299. void comment_to_html_conversion_27();
  300. /// \c Aaa \p Bbb
  301. void comment_to_html_conversion_28();
  302. /// \a Aaa \e Bbb \em Ccc
  303. void comment_to_html_conversion_29();
  304. /// \a 1<2 \e 3<4 \em 5<6 \param 7<8 aaa \tparam 9<10 bbb
  305. void comment_to_html_conversion_30();
  306. /// \\ \@ \& \$ \# \< \> \% \" \. \::
  307. void comment_to_html_conversion_31();
  308. /// &amp; &lt; &gt; &quot;
  309. void comment_to_html_conversion_32();
  310. /// <em>0&lt;i</em>
  311. void comment_to_html_conversion_33();
  312. /// Aaa.
  313. class comment_to_xml_conversion_01 {
  314. /// \param aaa Blah blah.
  315. comment_to_xml_conversion_01(int aaa);
  316. /// Aaa.
  317. ~comment_to_xml_conversion_01();
  318. /// \param aaa Blah blah.
  319. int comment_to_xml_conversion_02(int aaa);
  320. /// \param aaa Blah blah.
  321. static int comment_to_xml_conversion_03(int aaa);
  322. /// Aaa.
  323. int comment_to_xml_conversion_04;
  324. /// Aaa.
  325. static int comment_to_xml_conversion_05;
  326. /// \param aaa Blah blah.
  327. void operator()(int aaa);
  328. /// Aaa.
  329. operator bool();
  330. /// Aaa.
  331. typedef int comment_to_xml_conversion_06;
  332. /// Aaa.
  333. using comment_to_xml_conversion_07 = int;
  334. template<typename T, typename U>
  335. class comment_to_xml_conversion_08 { };
  336. /// Aaa.
  337. template<typename T>
  338. using comment_to_xml_conversion_09 = comment_to_xml_conversion_08<T, int>;
  339. };
  340. /// Aaa.
  341. template<typename T, typename U>
  342. void comment_to_xml_conversion_10(T aaa, U bbb);
  343. /// Aaa.
  344. template<>
  345. void comment_to_xml_conversion_10(int aaa, int bbb);
  346. /// Aaa.
  347. template<typename T, typename U>
  348. class comment_to_xml_conversion_11 { };
  349. /// Aaa.
  350. template<typename T>
  351. class comment_to_xml_conversion_11<T, int> { };
  352. /// Aaa.
  353. template<>
  354. class comment_to_xml_conversion_11<int, int> { };
  355. /// Aaa.
  356. int comment_to_xml_conversion_12;
  357. /// Aaa.
  358. namespace comment_to_xml_conversion_13 {
  359. /// Aaa.
  360. namespace comment_to_xml_conversion_14 {
  361. }
  362. }
  363. /// Aaa.
  364. enum comment_to_xml_conversion_15 {
  365. /// Aaa.
  366. comment_to_xml_conversion_16
  367. };
  368. /// Aaa.
  369. enum class comment_to_xml_conversion_17 {
  370. /// Aaa.
  371. comment_to_xml_conversion_18
  372. };
  373. #endif
  374. // RUN: rm -rf %t
  375. // RUN: mkdir %t
  376. // RUN: %clang_cc1 -x c++ -std=c++11 -emit-pch -o %t/out.pch %s
  377. // RUN: %clang_cc1 -x c++ -std=c++11 -include-pch %t/out.pch -fsyntax-only %s
  378. // 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
  379. // RUN: c-index-test -test-load-tu %t/out.pch all > %t/out.c-index-pch
  380. // RUN: FileCheck %s -check-prefix=WRONG < %t/out.c-index-direct
  381. // RUN: FileCheck %s -check-prefix=WRONG < %t/out.c-index-pch
  382. // Declarations without Doxygen comments should not pick up some Doxygen comments.
  383. // WRONG-NOT: notdoxy{{.*}}Comment=
  384. // WRONG-NOT: test{{.*}}Comment=
  385. // Non-Doxygen comments should not be attached to anything.
  386. // WRONG-NOT: NOT_DOXYGEN
  387. // Some Doxygen comments are not attached to anything.
  388. // WRONG-NOT: IS_DOXYGEN_NOT_ATTACHED
  389. // Ensure we don't pick up extra comments.
  390. // WRONG-NOT: IS_DOXYGEN_START{{.*}}IS_DOXYGEN_START{{.*}}BriefComment=
  391. // WRONG-NOT: IS_DOXYGEN_END{{.*}}IS_DOXYGEN_END{{.*}}BriefComment=
  392. //
  393. // Ensure that XML is not invalid
  394. // WRONG-NOT: CommentXMLInvalid
  395. // RUN: FileCheck %s < %t/out.c-index-direct
  396. // RUN: FileCheck %s < %t/out.c-index-pch
  397. // XFAIL: *
  398. // CHECK: annotate-comments.cpp:16:6: FunctionDecl=isdoxy4:{{.*}} isdoxy4 IS_DOXYGEN_SINGLE
  399. // CHECK: annotate-comments.cpp:20:6: FunctionDecl=isdoxy5:{{.*}} isdoxy5 IS_DOXYGEN_SINGLE
  400. // CHECK: annotate-comments.cpp:25:6: FunctionDecl=isdoxy6:{{.*}} isdoxy6 IS_DOXYGEN_SINGLE
  401. // CHECK: annotate-comments.cpp:31:6: FunctionDecl=isdoxy7:{{.*}} isdoxy7 IS_DOXYGEN_SINGLE
  402. // CHECK: annotate-comments.cpp:34:6: FunctionDecl=isdoxy8:{{.*}} isdoxy8 IS_DOXYGEN_SINGLE
  403. // CHECK: annotate-comments.cpp:37:6: FunctionDecl=isdoxy9:{{.*}} isdoxy9 IS_DOXYGEN_SINGLE
  404. // CHECK: annotate-comments.cpp:41:6: FunctionDecl=isdoxy10:{{.*}} isdoxy10 IS_DOXYGEN_SINGLE
  405. // CHECK: annotate-comments.cpp:53:6: FunctionDecl=isdoxy13:{{.*}} isdoxy13 IS_DOXYGEN_START{{.*}} IS_DOXYGEN_END
  406. // CHECK: annotate-comments.cpp:58:6: FunctionDecl=isdoxy14:{{.*}} isdoxy14 IS_DOXYGEN_START{{.*}} IS_DOXYGEN_END
  407. // CHECK: annotate-comments.cpp:63:6: FunctionDecl=isdoxy15:{{.*}} isdoxy15 IS_DOXYGEN_START{{.*}} IS_DOXYGEN_END
  408. // CHECK: annotate-comments.cpp:67:6: FunctionDecl=isdoxy16:{{.*}} isdoxy16 IS_DOXYGEN_START{{.*}} IS_DOXYGEN_END
  409. // CHECK: annotate-comments.cpp:72:6: FunctionDecl=isdoxy17:{{.*}} isdoxy17 IS_DOXYGEN_START{{.*}} IS_DOXYGEN_END
  410. // CHECK: annotate-comments.cpp:80:5: FunctionDecl=isdoxy18:{{.*}} isdoxy18 IS_DOXYGEN_START{{.*}} IS_DOXYGEN_END
  411. // CHECK: annotate-comments.cpp:90:6: FunctionDecl=isdoxy19:{{.*}} isdoxy19 IS_DOXYGEN_START{{.*}} IS_DOXYGEN_END
  412. // CHECK: annotate-comments.cpp:96:6: FunctionDecl=isdoxy20:{{.*}} isdoxy20 IS_DOXYGEN_START{{.*}} IS_DOXYGEN_END
  413. // CHECK: annotate-comments.cpp:107:8: StructDecl=isdoxy25:{{.*}} IS_DOXYGEN_SINGLE
  414. // CHECK: annotate-comments.cpp:112:7: FieldDecl=isdoxy26:{{.*}} IS_DOXYGEN_SINGLE
  415. // CHECK: annotate-comments.cpp:116:7: FieldDecl=isdoxy27:{{.*}} IS_DOXYGEN_SINGLE
  416. // CHECK: annotate-comments.cpp:123:6: EnumDecl=isdoxy29:{{.*}} IS_DOXYGEN_SINGLE
  417. // CHECK: annotate-comments.cpp:130:11: Namespace=isdoxy31:{{.*}} IS_DOXYGEN_SINGLE
  418. // CHECK: annotate-comments.cpp:138:7: FieldDecl=isdoxy33:{{.*}} isdoxy33 IS_DOXYGEN_SINGLE
  419. // CHECK: annotate-comments.cpp:139:7: FieldDecl=isdoxy34:{{.*}} isdoxy34 IS_DOXYGEN_SINGLE
  420. // CHECK: annotate-comments.cpp:142:7: FieldDecl=isdoxy35:{{.*}} isdoxy35 IS_DOXYGEN_SINGLE
  421. // CHECK: annotate-comments.cpp:143:7: FieldDecl=isdoxy36:{{.*}} isdoxy36 IS_DOXYGEN_SINGLE
  422. // CHECK: annotate-comments.cpp:146:7: FieldDecl=isdoxy37:{{.*}} isdoxy37 IS_DOXYGEN_SINGLE
  423. // CHECK: annotate-comments.cpp:147:7: FieldDecl=isdoxy38:{{.*}} isdoxy38 IS_DOXYGEN_SINGLE
  424. // CHECK: annotate-comments.cpp:148:7: FieldDecl=isdoxy39:{{.*}} isdoxy39 IS_DOXYGEN_SINGLE
  425. // CHECK: annotate-comments.cpp:155:6: FunctionDecl=isdoxy40:{{.*}} isdoxy40 IS_DOXYGEN_SINGLE
  426. // CHECK: annotate-comments.cpp:160:5: FunctionDecl=isdoxy41:{{.*}} isdoxy41 IS_DOXYGEN_SINGLE
  427. // CHECK: annotate-comments.cpp:163:7: FieldDecl=isdoxy42:{{.*}} isdoxy42 IS_DOXYGEN_SINGLE
  428. // CHECK: annotate-comments.cpp:176:6: FunctionDecl=isdoxy43:{{.*}} IS_DOXYGEN_START{{.*}} IS_DOXYGEN_END
  429. // CHECK: annotate-comments.cpp:185:6: FunctionDecl=isdoxy44:{{.*}} BriefComment=[IS_DOXYGEN_START Aaa bbb ccc.]
  430. // CHECK: annotate-comments.cpp:195:6: FunctionDecl=isdoxy45:{{.*}} BriefComment=[Ddd eee. Fff.]
  431. // CHECK: annotate-comments.cpp:205:6: FunctionDecl=isdoxy46:{{.*}} BriefComment=[Ddd eee. Fff.]
  432. // CHECK: annotate-comments.cpp:214:6: FunctionDecl=isdoxy48:{{.*}} BriefComment=[IS_DOXYGEN_START Aaa bbb]
  433. // CHECK: annotate-comments.cpp:218:6: FunctionDecl=isdoxy49:{{.*}} BriefComment=[IS_DOXYGEN_START Aaa]
  434. // CHECK: annotate-comments.cpp:222:6: FunctionDecl=isdoxy50:{{.*}} BriefComment=[Returns ddd IS_DOXYGEN_END]
  435. // CHECK: annotate-comments.cpp:231:6: FunctionDecl=isdoxy51:{{.*}} BriefComment=[Aaa. IS_DOXYGEN_START]
  436. // CHECK: annotate-comments.cpp:241:6: FunctionDecl=isdoxy52:{{.*}} BriefComment=[Aaa. IS_DOXYGEN_START Bbb.]
  437. // CHECK: annotate-comments.cpp:251:6: FunctionDecl=comment_to_html_conversion_1:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="251" column="6"><Name>comment_to_html_conversion_1</Name><USR>c:@F@comment_to_html_conversion_1#</USR><Abstract><Para> Aaa.</Para></Abstract></Function>]
  438. // CHECK-NEXT: CommentAST=[
  439. // CHECK-NEXT: (CXComment_FullComment
  440. // CHECK-NEXT: (CXComment_Paragraph
  441. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.])))]
  442. // CHECK: annotate-comments.cpp:254:6: FunctionDecl=comment_to_html_conversion_2:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="254" column="6"><Name>comment_to_html_conversion_2</Name><USR>c:@F@comment_to_html_conversion_2#</USR><Abstract><Para> Aaa.</Para></Abstract></Function>]
  443. // CHECK-NEXT: CommentAST=[
  444. // CHECK-NEXT: (CXComment_FullComment
  445. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  446. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  447. // CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
  448. // CHECK-NEXT: (CXComment_Paragraph
  449. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
  450. // CHECK: annotate-comments.cpp:257:6: FunctionDecl=comment_to_html_conversion_3:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="257" column="6"><Name>comment_to_html_conversion_3</Name><USR>c:@F@comment_to_html_conversion_3#</USR><Abstract><Para> Aaa.</Para></Abstract></Function>]
  451. // CHECK-NEXT: CommentAST=[
  452. // CHECK-NEXT: (CXComment_FullComment
  453. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  454. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  455. // CHECK-NEXT: (CXComment_BlockCommand CommandName=[short]
  456. // CHECK-NEXT: (CXComment_Paragraph
  457. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
  458. // CHECK: annotate-comments.cpp:262:6: FunctionDecl=comment_to_html_conversion_4:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Bbb.</p><p> Aaa.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="262" column="6"><Name>comment_to_html_conversion_4</Name><USR>c:@F@comment_to_html_conversion_4#</USR><Abstract><Para> Bbb.</Para></Abstract><Discussion><Para> Aaa.</Para></Discussion></Function>]
  459. // CHECK-NEXT: CommentAST=[
  460. // CHECK-NEXT: (CXComment_FullComment
  461. // CHECK-NEXT: (CXComment_Paragraph
  462. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
  463. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  464. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  465. // CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
  466. // CHECK-NEXT: (CXComment_Paragraph
  467. // CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
  468. // CHECK: annotate-comments.cpp:269:6: FunctionDecl=comment_to_html_conversion_5:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Bbb.</p><p> Aaa.</p><p> Ccc.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="269" column="6"><Name>comment_to_html_conversion_5</Name><USR>c:@F@comment_to_html_conversion_5#</USR><Abstract><Para> Bbb.</Para></Abstract><Discussion><Para> Aaa.</Para><Para> Ccc.</Para></Discussion></Function>]
  469. // CHECK-NEXT: CommentAST=[
  470. // CHECK-NEXT: (CXComment_FullComment
  471. // CHECK-NEXT: (CXComment_Paragraph
  472. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
  473. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  474. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  475. // CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
  476. // CHECK-NEXT: (CXComment_Paragraph
  477. // CHECK-NEXT: (CXComment_Text Text=[ Bbb.])))
  478. // CHECK-NEXT: (CXComment_Paragraph
  479. // CHECK-NEXT: (CXComment_Text Text=[ Ccc.])))]
  480. // CHECK: annotate-comments.cpp:273:6: FunctionDecl=comment_to_html_conversion_6:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa. </p><p class="para-brief"> Bbb.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="273" column="6"><Name>comment_to_html_conversion_6</Name><USR>c:@F@comment_to_html_conversion_6#</USR><Abstract><Para> Aaa. </Para></Abstract><Discussion><Para> Bbb.</Para></Discussion></Function>]
  481. // CHECK-NEXT: CommentAST=[
  482. // CHECK-NEXT: (CXComment_FullComment
  483. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  484. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  485. // CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
  486. // CHECK-NEXT: (CXComment_Paragraph
  487. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
  488. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
  489. // CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
  490. // CHECK-NEXT: (CXComment_Paragraph
  491. // CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
  492. // CHECK: annotate-comments.cpp:278:6: FunctionDecl=comment_to_html_conversion_7:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><p class="para-returns"><span class="word-returns">Returns</span> Bbb.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="278" column="6"><Name>comment_to_html_conversion_7</Name><USR>c:@F@comment_to_html_conversion_7#</USR><Abstract><Para> Aaa.</Para></Abstract><ResultDiscussion><Para> Bbb.</Para></ResultDiscussion></Function>]
  493. // CHECK-NEXT: CommentAST=[
  494. // CHECK-NEXT: (CXComment_FullComment
  495. // CHECK-NEXT: (CXComment_Paragraph
  496. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
  497. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  498. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  499. // CHECK-NEXT: (CXComment_BlockCommand CommandName=[return]
  500. // CHECK-NEXT: (CXComment_Paragraph
  501. // CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
  502. // CHECK: annotate-comments.cpp:283:6: FunctionDecl=comment_to_html_conversion_8:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><p class="para-returns"><span class="word-returns">Returns</span> Bbb.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="283" column="6"><Name>comment_to_html_conversion_8</Name><USR>c:@F@comment_to_html_conversion_8#</USR><Abstract><Para> Aaa.</Para></Abstract><ResultDiscussion><Para> Bbb.</Para></ResultDiscussion></Function>]
  503. // CHECK-NEXT: CommentAST=[
  504. // CHECK-NEXT: (CXComment_FullComment
  505. // CHECK-NEXT: (CXComment_Paragraph
  506. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
  507. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  508. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  509. // CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
  510. // CHECK-NEXT: (CXComment_Paragraph
  511. // CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
  512. // CHECK: annotate-comments.cpp:288:6: FunctionDecl=comment_to_html_conversion_9:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><p class="para-returns"><span class="word-returns">Returns</span> Bbb.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="288" column="6"><Name>comment_to_html_conversion_9</Name><USR>c:@F@comment_to_html_conversion_9#</USR><Abstract><Para> Aaa.</Para></Abstract><ResultDiscussion><Para> Bbb.</Para></ResultDiscussion></Function>]
  513. // CHECK-NEXT: CommentAST=[
  514. // CHECK-NEXT: (CXComment_FullComment
  515. // CHECK-NEXT: (CXComment_Paragraph
  516. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
  517. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  518. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  519. // CHECK-NEXT: (CXComment_BlockCommand CommandName=[result]
  520. // CHECK-NEXT: (CXComment_Paragraph
  521. // CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
  522. // CHECK: annotate-comments.cpp:292:6: FunctionDecl=comment_to_html_conversion_10:{{.*}} FullCommentAsHTML=[<p class="para-returns"><span class="word-returns">Returns</span> Bbb.</p><p class="para-returns"><span class="word-returns">Returns</span> Aaa. </p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="292" column="6"><Name>comment_to_html_conversion_10</Name><USR>c:@F@comment_to_html_conversion_10#</USR><ResultDiscussion><Para> Aaa. </Para></ResultDiscussion><Discussion><Para> Bbb.</Para></Discussion></Function>]
  523. // CHECK-NEXT: CommentAST=[
  524. // CHECK-NEXT: (CXComment_FullComment
  525. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  526. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  527. // CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
  528. // CHECK-NEXT: (CXComment_Paragraph
  529. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
  530. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
  531. // CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
  532. // CHECK-NEXT: (CXComment_Paragraph
  533. // CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))))]
  534. // CHECK: annotate-comments.cpp:299:6: FunctionDecl=comment_to_html_conversion_11:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Aaa.</p><p> Bbb.</p><p class="para-returns"><span class="word-returns">Returns</span> Ccc.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="299" column="6"><Name>comment_to_html_conversion_11</Name><USR>c:@F@comment_to_html_conversion_11#</USR><Abstract><Para> Aaa.</Para></Abstract><ResultDiscussion><Para> Ccc.</Para></ResultDiscussion><Discussion><Para> Bbb.</Para></Discussion></Function>]
  535. // CHECK-NEXT: CommentAST=[
  536. // CHECK-NEXT: (CXComment_FullComment
  537. // CHECK-NEXT: (CXComment_Paragraph
  538. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))
  539. // CHECK-NEXT: (CXComment_Paragraph
  540. // CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))
  541. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  542. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  543. // CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
  544. // CHECK-NEXT: (CXComment_Paragraph
  545. // CHECK-NEXT: (CXComment_Text Text=[ Ccc.]))))]
  546. // CHECK: annotate-comments.cpp:302:6: FunctionDecl=comment_to_html_conversion_12:{{.*}} FullCommentAsHTML=[] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="302" column="6"><Name>comment_to_html_conversion_12</Name><USR>c:@F@comment_to_html_conversion_12#I#</USR></Function>]
  547. // CHECK-NEXT: CommentAST=[
  548. // CHECK-NEXT: (CXComment_FullComment
  549. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  550. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  551. // CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[] ParamIndex=Invalid
  552. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace)))]
  553. // CHECK: annotate-comments.cpp:305: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="{{[^"]+}}annotate-comments.cpp" line="305" column="6"><Name>comment_to_html_conversion_13</Name><USR>c:@F@comment_to_html_conversion_13#I#</USR><Parameters><Parameter><Name>x1</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Aaa.</Para></Discussion></Parameter></Parameters></Function>]
  554. // CHECK-NEXT: CommentAST=[
  555. // CHECK-NEXT: (CXComment_FullComment
  556. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  557. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  558. // CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
  559. // CHECK-NEXT: (CXComment_Paragraph
  560. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
  561. // CHECK: annotate-comments.cpp:308: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="{{[^"]+}}annotate-comments.cpp" line="308" column="6"><Name>comment_to_html_conversion_14</Name><USR>c:@F@comment_to_html_conversion_14#I#</USR><Parameters><Parameter><Name>zzz</Name><Direction isExplicit="0">in</Direction><Discussion><Para> Aaa.</Para></Discussion></Parameter></Parameters></Function>]
  562. // CHECK-NEXT: CommentAST=[
  563. // CHECK-NEXT: (CXComment_FullComment
  564. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  565. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  566. // CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[zzz] ParamIndex=Invalid
  567. // CHECK-NEXT: (CXComment_Paragraph
  568. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
  569. // CHECK: annotate-comments.cpp:312: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="{{[^"]+}}annotate-comments.cpp" line="312" column="6"><Name>comment_to_html_conversion_15</Name><USR>c:@F@comment_to_html_conversion_15#I#I#</USR><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>]
  570. // CHECK-NEXT: CommentAST=[
  571. // CHECK-NEXT: (CXComment_FullComment
  572. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  573. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  574. // CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
  575. // CHECK-NEXT: (CXComment_Paragraph
  576. // CHECK-NEXT: (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
  577. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
  578. // CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
  579. // CHECK-NEXT: (CXComment_Paragraph
  580. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
  581. // CHECK: annotate-comments.cpp:317: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="{{[^"]+}}annotate-comments.cpp" line="317" column="6"><Name>comment_to_html_conversion_16</Name><USR>c:@F@comment_to_html_conversion_16#I#I#</USR><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>]
  582. // CHECK-NEXT: CommentAST=[
  583. // CHECK-NEXT: (CXComment_FullComment
  584. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  585. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  586. // CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
  587. // CHECK-NEXT: (CXComment_Paragraph
  588. // CHECK-NEXT: (CXComment_Text Text=[ Bbb.] HasTrailingNewline)
  589. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
  590. // CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[zzz] ParamIndex=Invalid
  591. // CHECK-NEXT: (CXComment_Paragraph
  592. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.] HasTrailingNewline)
  593. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
  594. // CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
  595. // CHECK-NEXT: (CXComment_Paragraph
  596. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.]))))]
  597. // CHECK: annotate-comments.cpp:322:6: FunctionTemplate=comment_to_html_conversion_17:{{.*}} 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="{{[^"]+}}annotate-comments.cpp" line="322" column="6"><Name>comment_to_html_conversion_17</Name><USR>c:@FT@&gt;1#Tcomment_to_html_conversion_17#t0.0#</USR><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah</Para></Discussion></Parameter></Parameters></Function>]
  598. // CHECK-NEXT: CommentAST=[
  599. // CHECK-NEXT: (CXComment_FullComment
  600. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  601. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  602. // CHECK-NEXT: (CXComment_TParamCommand ParamName=[] ParamPosition=Invalid
  603. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  604. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
  605. // CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[aaa] ParamIndex=0
  606. // CHECK-NEXT: (CXComment_Paragraph
  607. // CHECK-NEXT: (CXComment_Text Text=[ Blah blah]))))]
  608. // CHECK: annotate-comments.cpp:327: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="{{[^"]+}}annotate-comments.cpp" line="327" column="6"><Name>comment_to_html_conversion_18</Name><USR>c:@FT@&gt;1#Tcomment_to_html_conversion_18#t0.0#</USR><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah</Para></Discussion></Parameter></Parameters></Function>]
  609. // CHECK-NEXT: CommentAST=[
  610. // CHECK-NEXT: (CXComment_FullComment
  611. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  612. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  613. // CHECK-NEXT: (CXComment_TParamCommand ParamName=[T] ParamPosition={0}
  614. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  615. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
  616. // CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[aaa] ParamIndex=0
  617. // CHECK-NEXT: (CXComment_Paragraph
  618. // CHECK-NEXT: (CXComment_Text Text=[ Blah blah]))))]
  619. // CHECK: annotate-comments.cpp:332:6: FunctionTemplate=comment_to_html_conversion_19:{{.*}} 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="{{[^"]+}}annotate-comments.cpp" line="332" column="6"><Name>comment_to_html_conversion_19</Name><USR>c:@FT@&gt;2#T#Tcomment_to_html_conversion_19#t0.0#t0.1#</USR><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>]
  620. // CHECK-NEXT: CommentAST=[
  621. // CHECK-NEXT: (CXComment_FullComment
  622. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  623. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  624. // CHECK-NEXT: (CXComment_TParamCommand ParamName=[T2] ParamPosition={1}
  625. // CHECK-NEXT: (CXComment_Paragraph
  626. // CHECK-NEXT: (CXComment_Text Text=[ Bbb] HasTrailingNewline)
  627. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
  628. // CHECK-NEXT: (CXComment_TParamCommand ParamName=[T1] ParamPosition={0}
  629. // CHECK-NEXT: (CXComment_Paragraph
  630. // CHECK-NEXT: (CXComment_Text Text=[ Aaa]))))]
  631. // CHECK: annotate-comments.cpp:339: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><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="{{[^"]+}}annotate-comments.cpp" line="339" column="6"><Name>comment_to_html_conversion_20</Name><USR>c:@FT@&gt;3#T#T#NIcomment_to_html_conversion_20#t0.0#t0.1#</USR><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>]
  632. // CHECK-NEXT: CommentAST=[
  633. // CHECK-NEXT: (CXComment_FullComment
  634. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  635. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  636. // CHECK-NEXT: (CXComment_TParamCommand ParamName=[T2] ParamPosition={1}
  637. // CHECK-NEXT: (CXComment_Paragraph
  638. // CHECK-NEXT: (CXComment_Text Text=[ Bbb] HasTrailingNewline)
  639. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
  640. // CHECK-NEXT: (CXComment_TParamCommand ParamName=[U] ParamPosition=Invalid
  641. // CHECK-NEXT: (CXComment_Paragraph
  642. // CHECK-NEXT: (CXComment_Text Text=[ Zzz] HasTrailingNewline)
  643. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
  644. // CHECK-NEXT: (CXComment_TParamCommand ParamName=[V] ParamPosition={2}
  645. // CHECK-NEXT: (CXComment_Paragraph
  646. // CHECK-NEXT: (CXComment_Text Text=[ Ccc] HasTrailingNewline)
  647. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
  648. // CHECK-NEXT: (CXComment_TParamCommand ParamName=[T1] ParamPosition={0}
  649. // CHECK-NEXT: (CXComment_Paragraph
  650. // CHECK-NEXT: (CXComment_Text Text=[ Aaa]))))]
  651. // CHECK: annotate-comments.cpp:346:6: FunctionTemplate=comment_to_html_conversion_21:{{.*}} 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="{{[^"]+}}annotate-comments.cpp" line="346" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#</USR><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>]
  652. // CHECK-NEXT: CommentAST=[
  653. // CHECK-NEXT: (CXComment_FullComment
  654. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  655. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  656. // CHECK-NEXT: (CXComment_TParamCommand ParamName=[TTT] ParamPosition={0}
  657. // CHECK-NEXT: (CXComment_Paragraph
  658. // CHECK-NEXT: (CXComment_Text Text=[ Ddd] HasTrailingNewline)
  659. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
  660. // CHECK-NEXT: (CXComment_TParamCommand ParamName=[C] ParamPosition={0, 1}
  661. // CHECK-NEXT: (CXComment_Paragraph
  662. // CHECK-NEXT: (CXComment_Text Text=[ Ccc] HasTrailingNewline)
  663. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
  664. // CHECK-NEXT: (CXComment_TParamCommand ParamName=[T] ParamPosition={0, 0, 0}
  665. // CHECK-NEXT: (CXComment_Paragraph
  666. // CHECK-NEXT: (CXComment_Text Text=[ Aaa] HasTrailingNewline)
  667. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
  668. // CHECK-NEXT: (CXComment_TParamCommand ParamName=[TT] ParamPosition={0, 0}
  669. // CHECK-NEXT: (CXComment_Paragraph
  670. // CHECK-NEXT: (CXComment_Text Text=[ Bbb]))))]
  671. // CHECK: annotate-comments.cpp:355:6: FunctionDecl=comment_to_html_conversion_22:{{.*}} 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><p class="para-returns"><span class="word-returns">Returns</span> Eee.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="355" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@F@comment_to_html_conversion_22#I#I#</USR><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>]
  672. // CHECK-NEXT: CommentAST=[
  673. // CHECK-NEXT: (CXComment_FullComment
  674. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  675. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  676. // CHECK-NEXT: (CXComment_BlockCommand CommandName=[brief]
  677. // CHECK-NEXT: (CXComment_Paragraph
  678. // CHECK-NEXT: (CXComment_Text Text=[ Aaa.])))
  679. // CHECK-NEXT: (CXComment_Paragraph
  680. // CHECK-NEXT: (CXComment_Text Text=[ Bbb.]))
  681. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  682. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  683. // CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x2] ParamIndex=1
  684. // CHECK-NEXT: (CXComment_Paragraph
  685. // CHECK-NEXT: (CXComment_Text Text=[ Ddd.] HasTrailingNewline)
  686. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
  687. // CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[x1] ParamIndex=0
  688. // CHECK-NEXT: (CXComment_Paragraph
  689. // CHECK-NEXT: (CXComment_Text Text=[ Ccc.] HasTrailingNewline)
  690. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
  691. // CHECK-NEXT: (CXComment_BlockCommand CommandName=[returns]
  692. // CHECK-NEXT: (CXComment_Paragraph
  693. // CHECK-NEXT: (CXComment_Text Text=[ Eee.]))))]
  694. // CHECK: annotate-comments.cpp:358:6: FunctionDecl=comment_to_html_conversion_23:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <br><a href="http://example.com/">Aaa</a></p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="358" column="6"><Name>comment_to_html_conversion_23</Name><USR>c:@F@comment_to_html_conversion_23#</USR><Abstract><Para> <rawHTML><![CDATA[<br>]]></rawHTML><rawHTML><![CDATA[<a href="http://example.com/">]]></rawHTML>Aaa<rawHTML>&lt;/a&gt;</rawHTML></Para></Abstract></Function>]
  695. // CHECK-NEXT: CommentAST=[
  696. // CHECK-NEXT: (CXComment_FullComment
  697. // CHECK-NEXT: (CXComment_Paragraph
  698. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  699. // CHECK-NEXT: (CXComment_HTMLStartTag Name=[br])
  700. // CHECK-NEXT: (CXComment_HTMLStartTag Name=[a] Attrs: href=http://example.com/)
  701. // CHECK-NEXT: (CXComment_Text Text=[Aaa])
  702. // CHECK-NEXT: (CXComment_HTMLEndTag Name=[a])))]
  703. // CHECK: annotate-comments.cpp:364:6: FunctionDecl=comment_to_html_conversion_24:{{.*}} FullCommentAsHTML=[<pre> &lt;a href=&quot;http:&#47;&#47;example.com&#47;&quot;&gt;Aaa&lt;&#47;a&gt;\n &lt;a href=&#39;http:&#47;&#47;example.com&#47;&#39;&gt;Aaa&lt;&#47;a&gt;</pre>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="364" column="6"><Name>comment_to_html_conversion_24</Name><USR>c:@F@comment_to_html_conversion_24#</USR><Discussion><Verbatim xml:space="preserve" kind="verbatim"> &lt;a href=&quot;http://example.com/&quot;&gt;Aaa&lt;/a&gt;\n &lt;a href=&apos;http://example.com/&apos;&gt;Aaa&lt;/a&gt;</Verbatim></Discussion></Function>]
  704. // CHECK-NEXT: CommentAST=[
  705. // CHECK-NEXT: (CXComment_FullComment
  706. // CHECK-NEXT: (CXComment_Paragraph IsWhitespace
  707. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  708. // CHECK-NEXT: (CXComment_VerbatimBlockCommand CommandName=[verbatim]
  709. // CHECK-NEXT: (CXComment_VerbatimBlockLine Text=[ <a href="http://example.com/">Aaa</a>])
  710. // CHECK-NEXT: (CXComment_VerbatimBlockLine Text=[ <a href='http://example.com/'>Aaa</a>])))]
  711. // CHECK: annotate-comments.cpp:371:6: FunctionDecl=comment_to_html_conversion_25:{{.*}} FullCommentAsHTML=[<p class="para-brief"> Blah blah.</p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="371" column="6"><Name>comment_to_html_conversion_25</Name><USR>c:@F@comment_to_html_conversion_25#</USR><Abstract><Para> Blah blah.</Para></Abstract></Function>]
  712. // CHECK: CommentAST=[
  713. // CHECK: (CXComment_FullComment
  714. // CHECK: (CXComment_Paragraph IsWhitespace
  715. // CHECK: (CXComment_Text Text=[ ] IsWhitespace))
  716. // CHECK: (CXComment_VerbatimLine Text=[ foo])
  717. // CHECK: (CXComment_Paragraph IsWhitespace
  718. // CHECK: (CXComment_Text Text=[ ] IsWhitespace))
  719. // CHECK: (CXComment_VerbatimLine Text=[ foo])
  720. // CHECK: (CXComment_Paragraph IsWhitespace
  721. // CHECK: (CXComment_Text Text=[ ] IsWhitespace))
  722. // CHECK: (CXComment_VerbatimLine Text=[ foo])
  723. // CHECK: (CXComment_Paragraph IsWhitespace
  724. // CHECK: (CXComment_Text Text=[ ] IsWhitespace))
  725. // CHECK: (CXComment_VerbatimLine Text=[ foo])
  726. // CHECK: (CXComment_Paragraph
  727. // CHECK: (CXComment_Text Text=[ Blah blah.])))]
  728. // CHECK: annotate-comments.cpp:374:6: FunctionDecl=comment_to_html_conversion_26:{{.*}} FullCommentAsHTML=[<p class="para-brief"> </p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="374" column="6"><Name>comment_to_html_conversion_26</Name><USR>c:@F@comment_to_html_conversion_26#</USR><Abstract><Para> </Para></Abstract></Function>]
  729. // CHECK: CommentAST=[
  730. // CHECK: (CXComment_FullComment
  731. // CHECK: (CXComment_Paragraph
  732. // CHECK: (CXComment_Text Text=[ ] IsWhitespace)
  733. // CHECK: (CXComment_InlineCommand CommandName=[unknown] RenderNormal)))]
  734. // CHECK: annotate-comments.cpp:377:6: FunctionDecl=comment_to_html_conversion_27:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <b>Aaa</b></p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="377" column="6"><Name>comment_to_html_conversion_27</Name><USR>c:@F@comment_to_html_conversion_27#</USR><Abstract><Para> <bold>Aaa</bold></Para></Abstract></Function>]
  735. // CHECK-NEXT: CommentAST=[
  736. // CHECK-NEXT: (CXComment_FullComment
  737. // CHECK-NEXT: (CXComment_Paragraph
  738. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  739. // CHECK-NEXT: (CXComment_InlineCommand CommandName=[b] RenderBold Arg[0]=Aaa)))]
  740. // CHECK: annotate-comments.cpp:380:6: FunctionDecl=comment_to_html_conversion_28:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <tt>Aaa</tt> <tt>Bbb</tt></p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="380" column="6"><Name>comment_to_html_conversion_28</Name><USR>c:@F@comment_to_html_conversion_28#</USR><Abstract><Para> <monospaced>Aaa</monospaced> <monospaced>Bbb</monospaced></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=[c] RenderMonospaced Arg[0]=Aaa)
  746. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  747. // CHECK-NEXT: (CXComment_InlineCommand CommandName=[p] RenderMonospaced Arg[0]=Bbb)))]
  748. // CHECK: annotate-comments.cpp:383:6: FunctionDecl=comment_to_html_conversion_29:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <em>Aaa</em> <em>Bbb</em> <em>Ccc</em></p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="383" column="6"><Name>comment_to_html_conversion_29</Name><USR>c:@F@comment_to_html_conversion_29#</USR><Abstract><Para> <emphasized>Aaa</emphasized> <emphasized>Bbb</emphasized> <emphasized>Ccc</emphasized></Para></Abstract></Function>]
  749. // CHECK-NEXT: CommentAST=[
  750. // CHECK-NEXT: (CXComment_FullComment
  751. // CHECK-NEXT: (CXComment_Paragraph
  752. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  753. // CHECK-NEXT: (CXComment_InlineCommand CommandName=[a] RenderEmphasized Arg[0]=Aaa)
  754. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  755. // CHECK-NEXT: (CXComment_InlineCommand CommandName=[e] RenderEmphasized Arg[0]=Bbb)
  756. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  757. // CHECK-NEXT: (CXComment_InlineCommand CommandName=[em] RenderEmphasized Arg[0]=Ccc)))]
  758. // CHECK: annotate-comments.cpp:386:6: FunctionDecl=comment_to_html_conversion_30:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <em>1&lt;2</em> <em>3&lt;4</em> <em>5&lt;6</em> </p><dl><dt class="tparam-name-index-invalid">9&lt;10</dt><dd class="tparam-descr-index-invalid"> bbb</dd></dl><dl><dt class="param-name-index-invalid">7&lt;8</dt><dd class="param-descr-index-invalid"> aaa </dd></dl>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="386" column="6"><Name>comment_to_html_conversion_30</Name><USR>c:@F@comment_to_html_conversion_30#</USR><Abstract><Para> <emphasized>1&lt;2</emphasized> <emphasized>3&lt;4</emphasized> <emphasized>5&lt;6</emphasized> </Para></Abstract><TemplateParameters><Parameter><Name>9&lt;10</Name><Discussion><Para> bbb</Para></Discussion></Parameter></TemplateParameters><Parameters><Parameter><Name>7&lt;8</Name><Direction isExplicit="0">in</Direction><Discussion><Para> aaa </Para></Discussion></Parameter></Parameters></Function>]
  759. // CHECK-NEXT: CommentAST=[
  760. // CHECK-NEXT: (CXComment_FullComment
  761. // CHECK-NEXT: (CXComment_Paragraph
  762. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  763. // CHECK-NEXT: (CXComment_InlineCommand CommandName=[a] RenderEmphasized Arg[0]=1<2)
  764. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  765. // CHECK-NEXT: (CXComment_InlineCommand CommandName=[e] RenderEmphasized Arg[0]=3<4)
  766. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  767. // CHECK-NEXT: (CXComment_InlineCommand CommandName=[em] RenderEmphasized Arg[0]=5<6)
  768. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
  769. // CHECK-NEXT: (CXComment_ParamCommand in implicitly ParamName=[7<8] ParamIndex=Invalid
  770. // CHECK-NEXT: (CXComment_Paragraph
  771. // CHECK-NEXT: (CXComment_Text Text=[ aaa ])))
  772. // CHECK-NEXT: (CXComment_TParamCommand ParamName=[9<10] ParamPosition=Invalid
  773. // CHECK-NEXT: (CXComment_Paragraph
  774. // CHECK-NEXT: (CXComment_Text Text=[ bbb]))))]
  775. // CHECK: annotate-comments.cpp:389:6: FunctionDecl=comment_to_html_conversion_31:{{.*}} FullCommentAsHTML=[<p class="para-brief"> \ @ &amp; $ # &lt; &gt; % &quot; . ::</p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="389" column="6"><Name>comment_to_html_conversion_31</Name><USR>c:@F@comment_to_html_conversion_31#</USR><Abstract><Para> \ @ &amp; $ # &lt; &gt; % &quot; . ::</Para></Abstract></Function>]
  776. // CHECK-NEXT: CommentAST=[
  777. // CHECK-NEXT: (CXComment_FullComment
  778. // CHECK-NEXT: (CXComment_Paragraph
  779. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  780. // CHECK-NEXT: (CXComment_Text Text=[\])
  781. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  782. // CHECK-NEXT: (CXComment_Text Text=[@])
  783. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  784. // CHECK-NEXT: (CXComment_Text Text=[&])
  785. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  786. // CHECK-NEXT: (CXComment_Text Text=[$])
  787. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  788. // CHECK-NEXT: (CXComment_Text Text=[#])
  789. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  790. // CHECK-NEXT: (CXComment_Text Text=[<])
  791. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  792. // CHECK-NEXT: (CXComment_Text Text=[>])
  793. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  794. // CHECK-NEXT: (CXComment_Text Text=[%])
  795. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  796. // CHECK-NEXT: (CXComment_Text Text=["])
  797. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  798. // CHECK-NEXT: (CXComment_Text Text=[.])
  799. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  800. // CHECK-NEXT: (CXComment_Text Text=[::])))]
  801. // CHECK: annotate-comments.cpp:392:6: FunctionDecl=comment_to_html_conversion_32:{{.*}} FullCommentAsHTML=[<p class="para-brief"> &amp; &lt; &gt; &quot;</p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="392" column="6"><Name>comment_to_html_conversion_32</Name><USR>c:@F@comment_to_html_conversion_32#</USR><Abstract><Para> &amp; &lt; &gt; &quot;</Para></Abstract></Function>]
  802. // CHECK-NEXT: CommentAST=[
  803. // CHECK-NEXT: (CXComment_FullComment
  804. // CHECK-NEXT: (CXComment_Paragraph
  805. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  806. // CHECK-NEXT: (CXComment_Text Text=[&])
  807. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  808. // CHECK-NEXT: (CXComment_Text Text=[<])
  809. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  810. // CHECK-NEXT: (CXComment_Text Text=[>])
  811. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  812. // CHECK-NEXT: (CXComment_Text Text=["])))]
  813. // CHECK: annotate-comments.cpp:395:6: FunctionDecl=comment_to_html_conversion_33:{{.*}} FullCommentAsHTML=[<p class="para-brief"> <em>0&lt;i</em></p>] FullCommentAsXML=[<Function file="{{[^"]+}}annotate-comments.cpp" line="395" column="6"><Name>comment_to_html_conversion_33</Name><USR>c:@F@comment_to_html_conversion_33#</USR><Abstract><Para> <rawHTML><![CDATA[<em>]]></rawHTML>0&lt;i<rawHTML>&lt;/em&gt;</rawHTML></Para></Abstract></Function>]
  814. // CHECK-NEXT: CommentAST=[
  815. // CHECK-NEXT: (CXComment_FullComment
  816. // CHECK-NEXT: (CXComment_Paragraph
  817. // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)
  818. // CHECK-NEXT: (CXComment_HTMLStartTag Name=[em])
  819. // CHECK-NEXT: (CXComment_Text Text=[0])
  820. // CHECK-NEXT: (CXComment_Text Text=[<])
  821. // CHECK-NEXT: (CXComment_Text Text=[i])
  822. // CHECK-NEXT: (CXComment_HTMLEndTag Name=[em])))]
  823. // CHECK: annotate-comments.cpp:398:7: ClassDecl=comment_to_xml_conversion_01:{{.*}} FullCommentAsXML=[<Class file="{{[^"]+}}annotate-comments.cpp" line="398" column="7"><Name>comment_to_xml_conversion_01</Name><USR>c:@C@comment_to_xml_conversion_01</USR><Abstract><Para> Aaa.</Para></Abstract></Class>]
  824. // CHECK: annotate-comments.cpp:400:3: CXXConstructor=comment_to_xml_conversion_01:{{.*}} FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments.cpp" line="400" 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><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah.</Para></Discussion></Parameter></Parameters></Function>]
  825. // CHECK: annotate-comments.cpp:403:3: CXXDestructor=~comment_to_xml_conversion_01:{{.*}} FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments.cpp" line="403" column="3"><Name>~comment_to_xml_conversion_01</Name><USR>c:@C@comment_to_xml_conversion_01@F@~comment_to_xml_conversion_01#</USR><Abstract><Para> Aaa.</Para></Abstract></Function>]
  826. // CHECK: annotate-comments.cpp:406:7: CXXMethod=comment_to_xml_conversion_02:{{.*}} FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments.cpp" line="406" 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><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah.</Para></Discussion></Parameter></Parameters></Function>]
  827. // CHECK: annotate-comments.cpp:409:14: CXXMethod=comment_to_xml_conversion_03:{{.*}} FullCommentAsXML=[<Function isClassMethod="1" file="{{[^"]+}}annotate-comments.cpp" line="409" 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><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah.</Para></Discussion></Parameter></Parameters></Function>]
  828. // CHECK: annotate-comments.cpp:412:7: FieldDecl=comment_to_xml_conversion_04:{{.*}} FullCommentAsXML=[<Variable file="{{[^"]+}}annotate-comments.cpp" line="412" column="7"><Name>comment_to_xml_conversion_04</Name><USR>c:@C@comment_to_xml_conversion_01@FI@comment_to_xml_conversion_04</USR><Abstract><Para> Aaa.</Para></Abstract></Variable>]
  829. // CHECK: annotate-comments.cpp:415:14: VarDecl=comment_to_xml_conversion_05:{{.*}} FullCommentAsXML=[<Variable file="{{[^"]+}}annotate-comments.cpp" line="415" column="14"><Name>comment_to_xml_conversion_05</Name><USR>c:@C@comment_to_xml_conversion_01@comment_to_xml_conversion_05</USR><Abstract><Para> Aaa.</Para></Abstract></Variable>]
  830. // CHECK: annotate-comments.cpp:418:8: CXXMethod=operator():{{.*}} FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments.cpp" line="418" column="8"><Name>operator()</Name><USR>c:@C@comment_to_xml_conversion_01@F@operator()#I#</USR><Parameters><Parameter><Name>aaa</Name><Index>0</Index><Direction isExplicit="0">in</Direction><Discussion><Para> Blah blah.</Para></Discussion></Parameter></Parameters></Function>]
  831. // CHECK: annotate-comments.cpp:421:3: CXXConversion=operator _Bool:{{.*}} FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}annotate-comments.cpp" line="421" column="3"><Name>operator _Bool</Name><USR>c:@C@comment_to_xml_conversion_01@F@operator _Bool#</USR><Abstract><Para> Aaa.</Para></Abstract></Function>]
  832. // CHECK: annotate-comments.cpp:424:15: TypedefDecl=comment_to_xml_conversion_06:{{.*}} FullCommentAsXML=[<Typedef file="{{[^"]+}}annotate-comments.cpp" line="424" column="15"><Name>comment_to_xml_conversion_06</Name><USR>c:annotate-comments.cpp@8505@C@comment_to_xml_conversion_01@T@comment_to_xml_conversion_06</USR><Abstract><Para> Aaa.</Para></Abstract></Typedef>]
  833. // CHECK: annotate-comments.cpp:427:9: TypeAliasDecl=comment_to_xml_conversion_07:{{.*}} FullCommentAsXML=[<Typedef file="{{[^"]+}}annotate-comments.cpp" line="427" column="9"><Name>comment_to_xml_conversion_07</Name><USR>c:@C@comment_to_xml_conversion_01@comment_to_xml_conversion_07</USR><Abstract><Para> Aaa.</Para></Abstract></Typedef>]
  834. // CHECK: annotate-comments.cpp:434:3: UnexposedDecl=comment_to_xml_conversion_09:{{.*}} FullCommentAsXML=[<Typedef file="{{[^"]+}}annotate-comments.cpp" line="434" column="3"><Name>comment_to_xml_conversion_09</Name><USR>c:@C@comment_to_xml_conversion_01@comment_to_xml_conversion_09</USR><Abstract><Para> Aaa.</Para></Abstract></Typedef>]
  835. // CHECK: annotate-comments.cpp:439:6: FunctionTemplate=comment_to_xml_conversion_10:{{.*}} FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}annotate-comments.cpp" line="439" column="6"><Name>comment_to_xml_conversion_10</Name><USR>c:@FT@&gt;2#T#Tcomment_to_xml_conversion_10#t0.0#t0.1#</USR><Abstract><Para> Aaa.</Para></Abstract></Function>]
  836. // CHECK: annotate-comments.cpp:443:6: FunctionDecl=comment_to_xml_conversion_10:{{.*}} FullCommentAsXML=[<Function templateKind="specialization" file="{{[^"]+}}annotate-comments.cpp" line="443" column="6"><Name>comment_to_xml_conversion_10</Name><USR>c:@F@comment_to_xml_conversion_10&lt;#I#I&gt;#I#I#</USR><Abstract><Para> Aaa.</Para></Abstract></Function>]
  837. // CHECK: annotate-comments.cpp:447:7: ClassTemplate=comment_to_xml_conversion_11:{{.*}} FullCommentAsXML=[<Class templateKind="template" file="{{[^"]+}}annotate-comments.cpp" line="447" column="7"><Name>comment_to_xml_conversion_11</Name><USR>c:@CT&gt;2#T#T@comment_to_xml_conversion_11</USR><Abstract><Para> Aaa.</Para></Abstract></Class>]
  838. // CHECK: annotate-comments.cpp:451:7: ClassTemplatePartialSpecialization=comment_to_xml_conversion_11:{{.*}} FullCommentAsXML=[<Class templateKind="partialSpecialization" file="{{[^"]+}}annotate-comments.cpp" line="451" column="7"><Name>comment_to_xml_conversion_11</Name><USR>c:@CP&gt;1#T@comment_to_xml_conversion_11&gt;#t0.0#I</USR><Abstract><Para> Aaa.</Para></Abstract></Class>]
  839. // CHECK: annotate-comments.cpp:455:7: ClassDecl=comment_to_xml_conversion_11:{{.*}} FullCommentAsXML=[<Class templateKind="specialization" file="{{[^"]+}}annotate-comments.cpp" line="455" column="7"><Name>comment_to_xml_conversion_11</Name><USR>c:@C@comment_to_xml_conversion_11&gt;#I#I</USR><Abstract><Para> Aaa.</Para></Abstract></Class>]
  840. // CHECK: annotate-comments.cpp:458:5: VarDecl=comment_to_xml_conversion_12:{{.*}} FullCommentAsXML=[<Variable file="{{[^"]+}}annotate-comments.cpp" line="458" column="5"><Name>comment_to_xml_conversion_12</Name><USR>c:@comment_to_xml_conversion_12</USR><Abstract><Para> Aaa.</Para></Abstract></Variable>]
  841. // CHECK: annotate-comments.cpp:461:11: Namespace=comment_to_xml_conversion_13:{{.*}} FullCommentAsXML=[<Namespace file="{{[^"]+}}annotate-comments.cpp" line="461" column="11"><Name>comment_to_xml_conversion_13</Name><USR>c:@N@comment_to_xml_conversion_13</USR><Abstract><Para> Aaa.</Para></Abstract></Namespace>]
  842. // CHECK: annotate-comments.cpp:463:13: Namespace=comment_to_xml_conversion_14:{{.*}} FullCommentAsXML=[<Namespace file="{{[^"]+}}annotate-comments.cpp" line="463" column="13"><Name>comment_to_xml_conversion_14</Name><USR>c:@N@comment_to_xml_conversion_13@N@comment_to_xml_conversion_14</USR><Abstract><Para> Aaa.</Para></Abstract></Namespace>]
  843. // CHECK: annotate-comments.cpp:468:6: EnumDecl=comment_to_xml_conversion_15:{{.*}} FullCommentAsXML=[<Enum file="{{[^"]+}}annotate-comments.cpp" line="468" column="6"><Name>comment_to_xml_conversion_15</Name><USR>c:@E@comment_to_xml_conversion_15</USR><Abstract><Para> Aaa.</Para></Abstract></Enum>]
  844. // CHECK: annotate-comments.cpp:470:3: EnumConstantDecl=comment_to_xml_conversion_16:{{.*}} FullCommentAsXML=[<Variable file="{{[^"]+}}annotate-comments.cpp" line="470" column="3"><Name>comment_to_xml_conversion_16</Name><USR>c:@E@comment_to_xml_conversion_15@comment_to_xml_conversion_16</USR><Abstract><Para> Aaa.</Para></Abstract></Variable>]
  845. // CHECK: annotate-comments.cpp:474:12: EnumDecl=comment_to_xml_conversion_17:{{.*}} FullCommentAsXML=[<Enum file="{{[^"]+}}annotate-comments.cpp" line="474" column="12"><Name>comment_to_xml_conversion_17</Name><USR>c:@E@comment_to_xml_conversion_17</USR><Abstract><Para> Aaa.</Para></Abstract></Enum>]
  846. // CHECK: annotate-comments.cpp:476:3: EnumConstantDecl=comment_to_xml_conversion_18:{{.*}} FullCommentAsXML=[<Variable file="{{[^"]+}}annotate-comments.cpp" line="476" column="3"><Name>comment_to_xml_conversion_18</Name><USR>c:@E@comment_to_xml_conversion_17@comment_to_xml_conversion_18</USR><Abstract><Para> Aaa.</Para></Abstract></Variable>]