|
1 | 1 | // RUN: rm -rf %t && mkdir -p %t/docs %t/build
|
2 | 2 | // RUN: sed 's|$test_dir|%/S|g' %S/Inputs/basic-project/database_template.json > %t/build/compile_commands.json
|
| 3 | + |
3 | 4 | // RUN: clang-doc --format=html --output=%t/docs --executor=all-TUs %t/build/compile_commands.json
|
4 | 5 | // RUN: FileCheck %s -input-file=%t/docs/index_json.js -check-prefix=JSON-INDEX
|
5 | 6 | // RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Shape.html -check-prefixes=HTML-SHAPE,SHAPE-NO-REPOSITORY
|
|
14 | 15 | // RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Rectangle.html -check-prefixes=HTML-RECTANGLE,RECTANGLE-REPOSITORY
|
15 | 16 | // RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Circle.html -check-prefixes=HTML-CIRCLE,CIRCLE-REPOSITORY
|
16 | 17 |
|
| 18 | +// RUN: clang-doc --format=md --output=%t/docs --executor=all-TUs %t/build/compile_commands.json |
| 19 | +// RUN: FileCheck %s -input-file=%t/docs/all_files.md -check-prefixes=MD-ALL-FILES |
| 20 | +// RUN: FileCheck %s -input-file=%t/docs/index.md -check-prefixes=MD-INDEX |
| 21 | +// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Shape.md -check-prefixes=MD-SHAPE |
| 22 | +// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Calculator.md -check-prefixes=MD-CALC |
| 23 | +// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Rectangle.md -check-prefixes=MD-RECTANGLE |
| 24 | +// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Circle.md -check-prefixes=MD-CIRCLE |
17 | 25 |
|
18 | 26 | // JSON-INDEX: async function LoadIndex() {
|
19 | 27 | // JSON-INDEX-NEXT: return{
|
|
358 | 366 | // MD-SHAPE: **brief** Abstract base class for shapes.
|
359 | 367 | // MD-SHAPE: Provides a common interface for different types of shapes.
|
360 | 368 | // MD-SHAPE: ## Functions
|
361 |
| -// MD-SHAPE: ### ~Shape |
362 |
| -// MD-SHAPE: *public void ~Shape()* |
363 |
| -// MD-SHAPE: *Defined at .{{[\/]}}include{{[\/]}}Shape.h#13* |
364 |
| -// MD-SHAPE: **brief** Virtual destructor. |
365 | 369 | // MD-SHAPE: ### area
|
366 | 370 | // MD-SHAPE: *public double area()*
|
367 | 371 | // MD-SHAPE: **brief** Calculates the area of the shape.
|
|
370 | 374 | // MD-SHAPE: *public double perimeter()*
|
371 | 375 | // MD-SHAPE: **brief** Calculates the perimeter of the shape.
|
372 | 376 | // MD-SHAPE: **return** double The perimeter of the shape.
|
| 377 | +// MD-SHAPE: ### ~Shape |
| 378 | +// MD-SHAPE: *public void ~Shape()* |
| 379 | +// MD-SHAPE: *Defined at .{{[\/]}}include{{[\/]}}Shape.h#13* |
| 380 | +// MD-SHAPE: **brief** Virtual destructor. |
373 | 381 |
|
374 | 382 | // MD-ALL-FILES: # All Files
|
375 | 383 | // MD-ALL-FILES: ## [GlobalNamespace](GlobalNamespace{{[\/]}}index.md)
|
|
0 commit comments