|
3 | 3 |
|
4 | 4 | // RUN: clang-doc --format=html --output=%t/docs --executor=all-TUs %t/build/compile_commands.json
|
5 | 5 | // RUN: FileCheck %s -input-file=%t/docs/index_json.js -check-prefix=JSON-INDEX
|
| 6 | +// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Shape.html -check-prefix=HTML-SHAPE |
| 7 | +// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Calculator.html -check-prefix=HTML-CALC |
| 8 | +// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Rectangle.html -check-prefix=HTML-RECTANGLE |
| 9 | +// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Circle.html -check-prefix=HTML-CIRCLE |
| 10 | + |
| 11 | +// RUN: clang-doc --format=html --output=%t/docs-with-prefix --executor=all-TUs %t/build/compile_commands.json --repository=https://repository.com --repository-line-prefix=L |
| 12 | +// RUN: FileCheck %s -input-file=%t/docs-with-prefix/GlobalNamespace/Shape.html -check-prefixes=HTML-SHAPE,SHAPE-LINE-PREFIX |
| 13 | +// RUN: FileCheck %s -input-file=%t/docs-with-prefix/GlobalNamespace/Calculator.html -check-prefixes=HTML-CALC,CALC-LINE-PREFIX |
| 14 | +// RUN: FileCheck %s -input-file=%t/docs-with-prefix/GlobalNamespace/Rectangle.html -check-prefixes=HTML-RECTANGLE,RECTANGLE-LINE-PREFIX |
| 15 | +// RUN: FileCheck %s -input-file=%t/docs-with-prefix/GlobalNamespace/Circle.html -check-prefixes=HTML-CIRCLE,CIRCLE-LINE-PREFIX |
| 16 | + |
6 | 17 | // RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Shape.html -check-prefixes=HTML-SHAPE,SHAPE-NO-REPOSITORY
|
7 | 18 | // RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Calculator.html -check-prefixes=HTML-CALC,CALC-NO-REPOSITORY
|
8 | 19 | // RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Rectangle.html -check-prefixes=HTML-RECTANGLE,RECTANGLE-NO-REPOSITORY
|
|
75 | 86 | // SHAPE-REPOSITORY: <p>
|
76 | 87 | // SHAPE-REPOSITORY-NEXT: Defined at line
|
77 | 88 | // SHAPE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Shape.h#8">8</a>
|
| 89 | +// SHAPE-LINE-PREFIX: <a href="https://repository.com/./include/Shape.h#L8">8</a> |
78 | 90 | // SHAPE-REPOSITORY-NEXT: of file
|
79 | 91 | // SHAPE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Shape.h">Shape.h</a>
|
80 | 92 | // SHAPE-REPOSITORY-NEXT: </p>
|
|
98 | 110 | // SHAPE-NO-REPOSITORY: Defined at line 13 of file .{{.}}include{{.}}Shape.h
|
99 | 111 | // SHAPE-REPOSITORY: Defined at line
|
100 | 112 | // SHAPE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Shape.h#13">13</a>
|
| 113 | +// SHAPE-LINE-PREFIX: <a href="https://repository.com/./include/Shape.h#L13">13</a> |
101 | 114 | // SHAPE-REPOSITORY-NEXT: of file
|
102 | 115 | // SHAPE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Shape.h">Shape.h</a>
|
103 | 116 |
|
|
109 | 122 | // CALC-REPOSITORY: <p>
|
110 | 123 | // CALC-REPOSITORY-NEXT: Defined at line
|
111 | 124 | // CALC-REPOSITORY-NEXT: <a href="https://repository.com/./include/Calculator.h#8">8</a>
|
| 125 | +// CALC-LINE-PREFIX: <a href="https://repository.com/./include/Calculator.h#L8">8</a> |
112 | 126 | // CALC-REPOSITORY-NEXT: of file
|
113 | 127 | // CALC-REPOSITORY-NEXT: <a href="https://repository.com/./include/Calculator.h">Calculator.h</a>
|
114 | 128 | // CALC-REPOSITORY-NEXT: </p>
|
|
121 | 135 | // CALC-NO-REPOSITORY: Defined at line 3 of file .{{.}}src{{.}}Calculator.cpp
|
122 | 136 | // CALC-REPOSITORY: Defined at line
|
123 | 137 | // CALC-REPOSITORY-NEXT: <a href="https://repository.com/./src/Calculator.cpp#3">3</a>
|
| 138 | +// CALC-LINE-PREFIX: <a href="https://repository.com/./src/Calculator.cpp#L3">3</a> |
124 | 139 | // CALC-REPOSITORY-NEXT: of file
|
125 | 140 | // CALC-REPOSITORY-NEXT: <a href="https://repository.com/./src/Calculator.cpp">Calculator.cpp</a>
|
126 | 141 |
|
|
133 | 148 | // CALC-NO-REPOSITORY: Defined at line 7 of file .{{.}}src{{.}}Calculator.cpp
|
134 | 149 | // CALC-REPOSITORY: Defined at line
|
135 | 150 | // CALC-REPOSITORY-NEXT: <a href="https://repository.com/./src/Calculator.cpp#7">7</a>
|
| 151 | +// CALC-LINE-PREFIX: <a href="https://repository.com/./src/Calculator.cpp#L7">7</a> |
136 | 152 | // CALC-REPOSITORY-NEXT: of file
|
137 | 153 | // CALC-REPOSITORY-NEXT: <a href="https://repository.com/./src/Calculator.cpp">Calculator.cpp</a>
|
138 | 154 |
|
|
145 | 161 | // CALC-NO-REPOSITORY: Defined at line 11 of file .{{.}}src{{.}}Calculator.cpp
|
146 | 162 | // CALC-REPOSITORY: Defined at line
|
147 | 163 | // CALC-REPOSITORY-NEXT: <a href="https://repository.com/./src/Calculator.cpp#11">11</a>
|
| 164 | +// CALC-LINE-PREFIX: <a href="https://repository.com/./src/Calculator.cpp#L11">11</a> |
148 | 165 | // CALC-REPOSITORY-NEXT: of file
|
149 | 166 | // CALC-REPOSITORY-NEXT: <a href="https://repository.com/./src/Calculator.cpp">Calculator.cpp</a>
|
150 | 167 |
|
|
157 | 174 | // CALC-NO-REPOSITORY: Defined at line 15 of file .{{.}}src{{.}}Calculator.cpp
|
158 | 175 | // CALC-REPOSITORY: Defined at line
|
159 | 176 | // CALC-REPOSITORY-NEXT: <a href="https://repository.com/./src/Calculator.cpp#15">15</a>
|
| 177 | +// CALC-LINE-PREFIX: <a href="https://repository.com/./src/Calculator.cpp#L15">15</a> |
160 | 178 | // CALC-REPOSITORY-NEXT: of file
|
161 | 179 | // CALC-REPOSITORY-NEXT: <a href="https://repository.com/./src/Calculator.cpp">Calculator.cpp</a>
|
162 | 180 |
|
|
172 | 190 | // RECTANGLE-REPOSITORY: <p>
|
173 | 191 | // RECTANGLE-REPOSITORY-NEXT: Defined at line
|
174 | 192 | // RECTANGLE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Rectangle.h#10">10</a>
|
| 193 | +// RECTANGLE-LINE-PREFIX: <a href="https://repository.com/./include/Rectangle.h#L10">10</a> |
175 | 194 | // RECTANGLE-REPOSITORY-NEXT: of file
|
176 | 195 | // RECTANGLE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Rectangle.h">Rectangle.h</a>
|
177 | 196 | // RECTANGLE-REPOSITORY-NEXT: </p>
|
|
192 | 211 | // RECTANGLE-NO-REPOSITORY: Defined at line 3 of file .{{.}}src{{.}}Rectangle.cpp
|
193 | 212 | // RECTANGLE-REPOSITORY: Defined at line
|
194 | 213 | // RECTANGLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Rectangle.cpp#3">3</a>
|
| 214 | +// RECTANGLE-LINE-PREFIX: <a href="https://repository.com/./src/Rectangle.cpp#L3">3</a> |
195 | 215 | // RECTANGLE-REPOSITORY-NEXT: of file
|
196 | 216 | // RECTANGLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Rectangle.cpp">Rectangle.cpp</a>
|
197 | 217 |
|
|
202 | 222 | // RECTANGLE-NO-REPOSITORY: Defined at line 6 of file .{{.}}src{{.}}Rectangle.cpp
|
203 | 223 | // RECTANGLE-REPOSITORY: Defined at line
|
204 | 224 | // RECTANGLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Rectangle.cpp#6">6</a>
|
| 225 | +// RECTANGLE-LINE-PREFIX: <a href="https://repository.com/./src/Rectangle.cpp#L6">6</a> |
205 | 226 | // RECTANGLE-REPOSITORY-NEXT: of file
|
206 | 227 | // RECTANGLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Rectangle.cpp">Rectangle.cpp</a>
|
207 | 228 |
|
|
214 | 235 | // RECTANGLE-NO-REPOSITORY: Defined at line 10 of file .{{.}}src{{.}}Rectangle.cpp
|
215 | 236 | // RECTANGLE-REPOSITORY: Defined at line
|
216 | 237 | // RECTANGLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Rectangle.cpp#10">10</a>
|
| 238 | +// RECTANGLE-LINE-PREFIX: <a href="https://repository.com/./src/Rectangle.cpp#L10">10</a> |
217 | 239 | // RECTANGLE-REPOSITORY-NEXT: of file
|
218 | 240 | // RECTANGLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Rectangle.cpp">Rectangle.cpp</a>
|
219 | 241 | // HTML-RECTANGLE: <div>brief</div>
|
|
226 | 248 | // CIRCLE-REPOSITORY: <p>
|
227 | 249 | // CIRCLE-REPOSITORY-NEXT: Defined at line
|
228 | 250 | // CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Circle.h#10">10</a>
|
| 251 | +// CIRCLE-LINE-PREFIX: <a href="https://repository.com/./include/Circle.h#L10">10</a> |
229 | 252 | // CIRCLE-REPOSITORY-NEXT: of file
|
230 | 253 | // CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Circle.h">Circle.h</a>
|
231 | 254 | // CIRCLE-REPOSITORY-NEXT: </p>
|
|
246 | 269 | // CIRCLE-NO-REPOSITORY: Defined at line 3 of file .{{.}}src{{.}}Circle.cpp
|
247 | 270 | // CIRCLE-REPOSITORY: Defined at line
|
248 | 271 | // CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Circle.cpp#3">3</a>
|
| 272 | +// CIRCLE-LINE-PREFIX: <a href="https://repository.com/./src/Circle.cpp#L3">3</a> |
249 | 273 | // CIRCLE-REPOSITORY-NEXT: of file
|
250 | 274 | // CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Circle.cpp">Circle.cpp</a>
|
251 | 275 |
|
|
256 | 280 | // CIRCLE-NO-REPOSITORY: Defined at line 5 of file .{{.}}src{{.}}Circle.cpp
|
257 | 281 | // CIRCLE-REPOSITORY: Defined at line
|
258 | 282 | // CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Circle.cpp#5">5</a>
|
| 283 | +// CIRCLE-LINE-PREFIX: <a href="https://repository.com/./src/Circle.cpp#L5">5</a> |
259 | 284 | // CIRCLE-REPOSITORY-NEXT: of file
|
260 | 285 | // CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Circle.cpp">Circle.cpp</a>
|
261 | 286 |
|
|
268 | 293 | // CIRCLE-NO-REPOSITORY: Defined at line 9 of file .{{.}}src{{.}}Circle.cpp
|
269 | 294 | // CIRCLE-REPOSITORY: Defined at line
|
270 | 295 | // CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Circle.cpp#9">9</a>
|
| 296 | +// CIRCLE-LINE-PREFIX: <a href="https://repository.com/./src/Circle.cpp#L9">9</a> |
271 | 297 | // CIRCLE-REPOSITORY-NEXT: of file
|
272 | 298 | // CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Circle.cpp">Circle.cpp</a>
|
273 | 299 |
|
|
384 | 410 |
|
385 | 411 | // MD-INDEX: # C/C++ Reference
|
386 | 412 | // MD-INDEX: * Namespace: [GlobalNamespace](GlobalNamespace)
|
| 413 | + |
0 commit comments