77// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Calculator.html -check-prefix=HTML-CALC
88// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Rectangle.html -check-prefix=HTML-RECTANGLE
99// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Circle.html -check-prefix=HTML-CIRCLE
10+
1011// 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
1516
1617// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Shape.html -check-prefixes=HTML-SHAPE,SHAPE-NO-REPOSITORY
1718// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Calculator.html -check-prefixes=HTML-CALC,CALC-NO-REPOSITORY
8586// SHAPE-REPOSITORY: <p>
8687// SHAPE-REPOSITORY-NEXT: Defined at line
8788// 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>
8890// SHAPE-REPOSITORY-NEXT: of file
8991// SHAPE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Shape.h">Shape.h</a>
9092// SHAPE-REPOSITORY-NEXT: </p>
108110// SHAPE-NO-REPOSITORY: Defined at line 13 of file .{{.}}include{{.}}Shape.h
109111// SHAPE-REPOSITORY: Defined at line
110112// 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>
111114// SHAPE-REPOSITORY-NEXT: of file
112115// SHAPE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Shape.h">Shape.h</a>
113116
119122// CALC-REPOSITORY: <p>
120123// CALC-REPOSITORY-NEXT: Defined at line
121124// 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>
122126// CALC-REPOSITORY-NEXT: of file
123127// CALC-REPOSITORY-NEXT: <a href="https://repository.com/./include/Calculator.h">Calculator.h</a>
124128// CALC-REPOSITORY-NEXT: </p>
131135// CALC-NO-REPOSITORY: Defined at line 3 of file .{{.}}src{{.}}Calculator.cpp
132136// CALC-REPOSITORY: Defined at line
133137// 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>
134139// CALC-REPOSITORY-NEXT: of file
135140// CALC-REPOSITORY-NEXT: <a href="https://repository.com/./src/Calculator.cpp">Calculator.cpp</a>
136141
143148// CALC-NO-REPOSITORY: Defined at line 7 of file .{{.}}src{{.}}Calculator.cpp
144149// CALC-REPOSITORY: Defined at line
145150// 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>
146152// CALC-REPOSITORY-NEXT: of file
147153// CALC-REPOSITORY-NEXT: <a href="https://repository.com/./src/Calculator.cpp">Calculator.cpp</a>
148154
155161// CALC-NO-REPOSITORY: Defined at line 11 of file .{{.}}src{{.}}Calculator.cpp
156162// CALC-REPOSITORY: Defined at line
157163// 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>
158165// CALC-REPOSITORY-NEXT: of file
159166// CALC-REPOSITORY-NEXT: <a href="https://repository.com/./src/Calculator.cpp">Calculator.cpp</a>
160167
167174// CALC-NO-REPOSITORY: Defined at line 15 of file .{{.}}src{{.}}Calculator.cpp
168175// CALC-REPOSITORY: Defined at line
169176// 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>
170178// CALC-REPOSITORY-NEXT: of file
171179// CALC-REPOSITORY-NEXT: <a href="https://repository.com/./src/Calculator.cpp">Calculator.cpp</a>
172180
182190// RECTANGLE-REPOSITORY: <p>
183191// RECTANGLE-REPOSITORY-NEXT: Defined at line
184192// 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>
185194// RECTANGLE-REPOSITORY-NEXT: of file
186195// RECTANGLE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Rectangle.h">Rectangle.h</a>
187196// RECTANGLE-REPOSITORY-NEXT: </p>
202211// RECTANGLE-NO-REPOSITORY: Defined at line 3 of file .{{.}}src{{.}}Rectangle.cpp
203212// RECTANGLE-REPOSITORY: Defined at line
204213// 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>
205215// RECTANGLE-REPOSITORY-NEXT: of file
206216// RECTANGLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Rectangle.cpp">Rectangle.cpp</a>
207217
212222// RECTANGLE-NO-REPOSITORY: Defined at line 6 of file .{{.}}src{{.}}Rectangle.cpp
213223// RECTANGLE-REPOSITORY: Defined at line
214224// 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>
215226// RECTANGLE-REPOSITORY-NEXT: of file
216227// RECTANGLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Rectangle.cpp">Rectangle.cpp</a>
217228
224235// RECTANGLE-NO-REPOSITORY: Defined at line 10 of file .{{.}}src{{.}}Rectangle.cpp
225236// RECTANGLE-REPOSITORY: Defined at line
226237// 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>
227239// RECTANGLE-REPOSITORY-NEXT: of file
228240// RECTANGLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Rectangle.cpp">Rectangle.cpp</a>
229241// HTML-RECTANGLE: <div>brief</div>
236248// CIRCLE-REPOSITORY: <p>
237249// CIRCLE-REPOSITORY-NEXT: Defined at line
238250// 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>
239252// CIRCLE-REPOSITORY-NEXT: of file
240253// CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./include/Circle.h">Circle.h</a>
241254// CIRCLE-REPOSITORY-NEXT: </p>
256269// CIRCLE-NO-REPOSITORY: Defined at line 3 of file .{{.}}src{{.}}Circle.cpp
257270// CIRCLE-REPOSITORY: Defined at line
258271// 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>
259273// CIRCLE-REPOSITORY-NEXT: of file
260274// CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Circle.cpp">Circle.cpp</a>
261275
266280// CIRCLE-NO-REPOSITORY: Defined at line 5 of file .{{.}}src{{.}}Circle.cpp
267281// CIRCLE-REPOSITORY: Defined at line
268282// 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>
269284// CIRCLE-REPOSITORY-NEXT: of file
270285// CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Circle.cpp">Circle.cpp</a>
271286
278293// CIRCLE-NO-REPOSITORY: Defined at line 9 of file .{{.}}src{{.}}Circle.cpp
279294// CIRCLE-REPOSITORY: Defined at line
280295// 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>
281297// CIRCLE-REPOSITORY-NEXT: of file
282298// CIRCLE-REPOSITORY-NEXT: <a href="https://repository.com/./src/Circle.cpp">Circle.cpp</a>
283299
286302// HTML-CIRCLE: <div>return</div>
287303// HTML-CIRCLE: <p> double The perimeter of the circle.</p>
288304
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-
345305// MD-CALC: # class Calculator
346306// MD-CALC: *Defined at .{{[\/]}}include{{[\/]}}Calculator.h#8*
347307// MD-CALC: **brief** A simple calculator class.
449409// MD-ALL-FILES: ## [GlobalNamespace](GlobalNamespace{{[\/]}}index.md)
450410
451411// MD-INDEX: # C/C++ Reference
452- // MD-INDEX: * Namespace: [GlobalNamespace](GlobalNamespace)
412+ // MD-INDEX: * Namespace: [GlobalNamespace](GlobalNamespace)
413+
0 commit comments