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