7
7
// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Calculator.html -check-prefix=HTML-CALC
8
8
// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Rectangle.html -check-prefix=HTML-RECTANGLE
9
9
// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Circle.html -check-prefix=HTML-CIRCLE
10
+
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
11
- // RUN: FileCheck %s -input-file=%t/docs-with-prefix/GlobalNamespace/Shape.html -check-prefix =HTML-SHAPE-PREFIX
12
- // RUN: FileCheck %s -input-file=%t/docs-with-prefix/GlobalNamespace/Calculator.html -check-prefix =HTML-CALC-PREFIX
13
- // RUN: FileCheck %s -input-file=%t/docs-with-prefix/GlobalNamespace/Rectangle.html -check-prefix =HTML-RECTANGLE-PREFIX
14
- // RUN: FileCheck %s -input-file=%t/docs-with-prefix/GlobalNamespace/Circle.html -check-prefix =HTML-CIRCLE-PREFIX
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
15
16
16
17
// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Shape.html -check-prefixes=HTML-SHAPE,SHAPE-NO-REPOSITORY
17
18
// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Calculator.html -check-prefixes=HTML-CALC,CALC-NO-REPOSITORY
85
86
// SHAPE-REPOSITORY: <p>
86
87
// SHAPE-REPOSITORY-NEXT: Defined at line
87
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>
88
90
// SHAPE-REPOSITORY-NEXT: of file
89
91
// SHAPE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Shape.h">Shape.h</a>
90
92
// SHAPE-REPOSITORY-NEXT: </p>
107
109
108
110
// SHAPE-NO-REPOSITORY: Defined at line 13 of file .{{.}}include{{.}}Shape.h
109
111
// SHAPE-REPOSITORY: Defined at line
110
- // SHAPE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Shape.h#13">13</a>
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>
111
114
// SHAPE-REPOSITORY-NEXT: of file
112
115
// SHAPE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Shape.h">Shape.h</a>
113
116
119
122
// CALC-REPOSITORY: <p>
120
123
// CALC-REPOSITORY-NEXT: Defined at line
121
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>
122
126
// CALC-REPOSITORY-NEXT: of file
123
127
// CALC-REPOSITORY-NEXT: <a href="https://repository.com/./include/Calculator.h">Calculator.h</a>
124
128
// CALC-REPOSITORY-NEXT: </p>
131
135
// CALC-NO-REPOSITORY: Defined at line 3 of file .{{.}}src{{.}}Calculator.cpp
132
136
// CALC-REPOSITORY: Defined at line
133
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>
134
139
// CALC-REPOSITORY-NEXT: of file
135
140
// CALC-REPOSITORY-NEXT: <a href="https://repository.com/./src/Calculator.cpp">Calculator.cpp</a>
136
141
143
148
// CALC-NO-REPOSITORY: Defined at line 7 of file .{{.}}src{{.}}Calculator.cpp
144
149
// CALC-REPOSITORY: Defined at line
145
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>
146
152
// CALC-REPOSITORY-NEXT: of file
147
153
// CALC-REPOSITORY-NEXT: <a href="https://repository.com/./src/Calculator.cpp">Calculator.cpp</a>
148
154
155
161
// CALC-NO-REPOSITORY: Defined at line 11 of file .{{.}}src{{.}}Calculator.cpp
156
162
// CALC-REPOSITORY: Defined at line
157
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>
158
165
// CALC-REPOSITORY-NEXT: of file
159
166
// CALC-REPOSITORY-NEXT: <a href="https://repository.com/./src/Calculator.cpp">Calculator.cpp</a>
160
167
167
174
// CALC-NO-REPOSITORY: Defined at line 15 of file .{{.}}src{{.}}Calculator.cpp
168
175
// CALC-REPOSITORY: Defined at line
169
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>
170
178
// CALC-REPOSITORY-NEXT: of file
171
179
// CALC-REPOSITORY-NEXT: <a href="https://repository.com/./src/Calculator.cpp">Calculator.cpp</a>
172
180
182
190
// RECTANGLE-REPOSITORY: <p>
183
191
// RECTANGLE-REPOSITORY-NEXT: Defined at line
184
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>
185
194
// RECTANGLE-REPOSITORY-NEXT: of file
186
195
// RECTANGLE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Rectangle.h">Rectangle.h</a>
187
196
// RECTANGLE-REPOSITORY-NEXT: </p>
202
211
// RECTANGLE-NO-REPOSITORY: Defined at line 3 of file .{{.}}src{{.}}Rectangle.cpp
203
212
// RECTANGLE-REPOSITORY: Defined at line
204
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>
205
215
// RECTANGLE-REPOSITORY-NEXT: of file
206
216
// RECTANGLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Rectangle.cpp">Rectangle.cpp</a>
207
217
212
222
// RECTANGLE-NO-REPOSITORY: Defined at line 6 of file .{{.}}src{{.}}Rectangle.cpp
213
223
// RECTANGLE-REPOSITORY: Defined at line
214
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>
215
226
// RECTANGLE-REPOSITORY-NEXT: of file
216
227
// RECTANGLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Rectangle.cpp">Rectangle.cpp</a>
217
228
224
235
// RECTANGLE-NO-REPOSITORY: Defined at line 10 of file .{{.}}src{{.}}Rectangle.cpp
225
236
// RECTANGLE-REPOSITORY: Defined at line
226
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>
227
239
// RECTANGLE-REPOSITORY-NEXT: of file
228
240
// RECTANGLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Rectangle.cpp">Rectangle.cpp</a>
229
241
// HTML-RECTANGLE: <div>brief</div>
236
248
// CIRCLE-REPOSITORY: <p>
237
249
// CIRCLE-REPOSITORY-NEXT: Defined at line
238
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>
239
252
// CIRCLE-REPOSITORY-NEXT: of file
240
253
// CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Circle.h">Circle.h</a>
241
254
// CIRCLE-REPOSITORY-NEXT: </p>
256
269
// CIRCLE-NO-REPOSITORY: Defined at line 3 of file .{{.}}src{{.}}Circle.cpp
257
270
// CIRCLE-REPOSITORY: Defined at line
258
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>
259
273
// CIRCLE-REPOSITORY-NEXT: of file
260
274
// CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Circle.cpp">Circle.cpp</a>
261
275
265
279
// HTML-CIRCLE: <p>public double area()</p>
266
280
// CIRCLE-NO-REPOSITORY: Defined at line 5 of file .{{.}}src{{.}}Circle.cpp
267
281
// CIRCLE-REPOSITORY: Defined at line
268
- // CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Circle.cpp#5">5</a>
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>
269
284
// CIRCLE-REPOSITORY-NEXT: of file
270
285
// CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Circle.cpp">Circle.cpp</a>
271
286
277
292
// HTML-CIRCLE: <p>public double perimeter()</p>
278
293
// CIRCLE-NO-REPOSITORY: Defined at line 9 of file .{{.}}src{{.}}Circle.cpp
279
294
// CIRCLE-REPOSITORY: Defined at line
280
- // CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Circle.cpp#9">9</a>
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>
281
297
// CIRCLE-REPOSITORY-NEXT: of file
282
298
// CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Circle.cpp">Circle.cpp</a>
283
299
286
302
// HTML-CIRCLE: <div>return</div>
287
303
// HTML-CIRCLE: <p> double The perimeter of the circle.</p>
288
304
289
- // HTML-SHAPE-PREFIX: <h1>class Shape</h1>
290
- // HTML-SHAPE-PREFIX-NEXT: <p>
291
- // HTML-SHAPE-PREFIX-NEXT: Defined at line
292
- // HTML-SHAPE-PREFIX-NEXT: <a href="https://repository.com/./include/Shape.h#L8">8</a>
293
- // HTML-SHAPE-PREFIX-NEXT: of file
294
- // HTML-SHAPE-PREFIX-NEXT: <a href="https://repository.com/./include/Shape.h">Shape.h</a>
295
- // HTML-SHAPE-PREFIX-NEXT: </p>
296
- // HTML-SHAPE-PREFIX: <h3 id="{{([0-9A-F]{40})}}">~Shape</h3>
297
- // HTML-SHAPE-PREFIX: <p>public void ~Shape()</p>
298
- // HTML-SHAPE-PREFIX: Defined at line
299
- // HTML-SHAPE-PREFIX-NEXT: <a href="https://repository.com/./include/Shape.h#L13">13</a>
300
- // HTML-SHAPE-PREFIX-NEXT: of file
301
- // HTML-SHAPE-PREFIX-NEXT: <a href="https://repository.com/./include/Shape.h">Shape.h</a>
302
-
303
- // HTML-CALC-PREFIX: <h1>class Calculator</h1>
304
- // HTML-CALC-PREFIX-NEXT: <p>
305
- // HTML-CALC-PREFIX-NEXT: Defined at line
306
- // HTML-CALC-PREFIX-NEXT: <a href="https://repository.com/./include/Calculator.h#L8">8</a>
307
- // HTML-CALC-PREFIX-NEXT: of file
308
- // HTML-CALC-PREFIX-NEXT: <a href="https://repository.com/./include/Calculator.h">Calculator.h</a>
309
- // HTML-CALC-PREFIX-NEXT: </p>
310
- // HTML-CALC-PREFIX: <h3 id="{{([0-9A-F]{40})}}">add</h3>
311
- // HTML-CALC-PREFIX: <p>public int add(int a, int b)</p>
312
- // HTML-CALC-PREFIX: Defined at line
313
- // HTML-CALC-PREFIX-NEXT: <a href="https://repository.com/./src/Calculator.cpp#L3">3</a>
314
- // HTML-CALC-PREFIX-NEXT: of file
315
- // HTML-CALC-PREFIX-NEXT: <a href="https://repository.com/./src/Calculator.cpp">Calculator.cpp</a>
316
-
317
- // HTML-RECTANGLE-PREFIX: <h1>class Rectangle</h1>
318
- // HTML-RECTANGLE-PREFIX-NEXT: <p>
319
- // HTML-RECTANGLE-PREFIX-NEXT: Defined at line
320
- // HTML-RECTANGLE-PREFIX-NEXT: <a href="https://repository.com/./include/Rectangle.h#L10">10</a>
321
- // HTML-RECTANGLE-PREFIX-NEXT: of file
322
- // HTML-RECTANGLE-PREFIX-NEXT: <a href="https://repository.com/./include/Rectangle.h">Rectangle.h</a>
323
- // HTML-RECTANGLE-PREFIX-NEXT: </p>
324
- // HTML-RECTANGLE-PREFIX: <h3 id="{{([0-9A-F]{40})}}">area</h3>
325
- // HTML-RECTANGLE-PREFIX: <p>public double area()</p>
326
- // HTML-RECTANGLE-PREFIX: Defined at line
327
- // HTML-RECTANGLE-PREFIX-NEXT: <a href="https://repository.com/./src/Rectangle.cpp#L6">6</a>
328
- // HTML-RECTANGLE-PREFIX-NEXT: of file
329
- // HTML-RECTANGLE-PREFIX-NEXT: <a href="https://repository.com/./src/Rectangle.cpp">Rectangle.cpp</a>
330
-
331
- // HTML-CIRCLE-PREFIX: <h1>class Circle</h1>
332
- // HTML-CIRCLE-PREFIX-NEXT: <p>
333
- // HTML-CIRCLE-PREFIX-NEXT: Defined at line
334
- // HTML-CIRCLE-PREFIX-NEXT: <a href="https://repository.com/./include/Circle.h#L10">10</a>
335
- // HTML-CIRCLE-PREFIX-NEXT: of file
336
- // HTML-CIRCLE-PREFIX-NEXT: <a href="https://repository.com/./include/Circle.h">Circle.h</a>
337
- // HTML-CIRCLE-PREFIX-NEXT: </p>
338
- // HTML-CIRCLE-PREFIX: <h3 id="{{([0-9A-F]{40})}}">perimeter</h3>
339
- // HTML-CIRCLE-PREFIX: <p>public double perimeter()</p>
340
- // HTML-CIRCLE-PREFIX: Defined at line
341
- // HTML-CIRCLE-PREFIX-NEXT: <a href="https://repository.com/./src/Circle.cpp#L9">9</a>
342
- // HTML-CIRCLE-PREFIX-NEXT: of file
343
- // HTML-CIRCLE-PREFIX-NEXT: <a href="https://repository.com/./src/Circle.cpp">Circle.cpp</a>
344
-
345
305
// MD-CALC: # class Calculator
346
306
// MD-CALC: *Defined at .{{[\/]}}include{{[\/]}}Calculator.h#8*
347
307
// MD-CALC: **brief** A simple calculator class.
449
409
// MD-ALL-FILES: ## [GlobalNamespace](GlobalNamespace{{[\/]}}index.md)
450
410
451
411
// MD-INDEX: # C/C++ Reference
452
- // MD-INDEX: * Namespace: [GlobalNamespace](GlobalNamespace)
412
+ // MD-INDEX: * Namespace: [GlobalNamespace](GlobalNamespace)
413
+
0 commit comments