Skip to content

Commit cd98a8c

Browse files
committed
[clang-doc] address pr comments
1 parent 8709091 commit cd98a8c

File tree

1 file changed

+14
-20
lines changed
  • clang-tools-extra/test/clang-doc

1 file changed

+14
-20
lines changed
Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
1-
// RUN: clang-doc --format=html --doxygen --output=%t/docs --executor=standalone %s
2-
// RUN: clang-doc --format=md --doxygen --output=%t/docs --executor=standalone %s
3-
// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/index.html -check-prefix=HTML-INDEX
4-
// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/index.md -check-prefix=MD-INDEX
1+
// RUN: rm -rf %t && mkdir -p %t
2+
// RUN: clang-doc --format=html --doxygen --output=%t --executor=standalone %s
3+
// RUN: clang-doc --format=md --doxygen --output=%t --executor=standalone %s
4+
// RUN: FileCheck %s < %t/GlobalNamespace/index.html -check-prefix=HTML-INDEX
5+
// RUN: FileCheck %s < %t/GlobalNamespace/index.md -check-prefix=MD-INDEX
56

67
/**
78
* @brief For specifying RGB colors
89
*/
910
enum Color {
10-
Red, // Red enums
11-
Green, // Green enums
12-
Blue // Blue enums
11+
Red,
12+
Green,
13+
Blue
1314
};
1415

1516
// HTML-INDEX: <h1>Global Namespace</h1>
1617
// HTML-INDEX: <h2 id="Enums">Enums</h2>
17-
// HTML-INDEX: <div>
18-
// HTML-INDEX: <h3 id="{{([0-9A-F]{40})}}">enum Color</h3>
19-
// HTML-INDEX: <ul>
20-
// HTML-INDEX: <li>Red</li>
21-
// HTML-INDEX: <li>Green</li>
22-
// HTML-INDEX: <li>Blue</li>
23-
// HTML-INDEX: </ul>
24-
// HTML-INDEX: <p>Defined at line 9 of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp</p>
25-
// HTML-INDEX: <div>
26-
// HTML-INDEX: <div></div>
27-
// HTML-INDEX: </div>
28-
// HTML-INDEX: </div>
18+
// HTML-INDEX: <h3 id="{{([0-9A-F]{40})}}">enum Color</h3>
19+
// HTML-INDEX: <li>Red</li>
20+
// HTML-INDEX: <li>Green</li>
21+
// HTML-INDEX: <li>Blue</li>
22+
// HTML-INDEX: <p>Defined at line 10 of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp</p>
2923

3024
// MD-INDEX: # Global Namespace
3125
// MD-INDEX: ## Enums
@@ -34,5 +28,5 @@ enum Color {
3428
// MD-INDEX: | Red |
3529
// MD-INDEX: | Green |
3630
// MD-INDEX: | Blue |
37-
// MD-INDEX: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp#9*
31+
// MD-INDEX: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp#10*
3832
// MD-INDEX: **brief** For specifying RGB colors

0 commit comments

Comments
 (0)