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
5
6
6
7
/* *
7
8
* @brief For specifying RGB colors
8
9
*/
9
10
enum Color {
10
- Red, // Red enums
11
- Green, // Green enums
12
- Blue // Blue enums
11
+ Red,
12
+ Green,
13
+ Blue
13
14
};
14
15
15
16
// HTML-INDEX: <h1>Global Namespace</h1>
16
17
// 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>
29
23
30
24
// MD-INDEX: # Global Namespace
31
25
// MD-INDEX: ## Enums
@@ -34,5 +28,5 @@ enum Color {
34
28
// MD-INDEX: | Red |
35
29
// MD-INDEX: | Green |
36
30
// 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 *
38
32
// MD-INDEX: **brief** For specifying RGB colors
0 commit comments