14
14
// RUN: FileCheck %s < %t/Vehicles/index.md --check-prefix=MD-VEHICLES-LINE
15
15
// RUN: FileCheck %s < %t/Vehicles/index.md --check-prefix=MD-VEHICLES
16
16
17
-
18
17
/* *
19
18
* @brief For specifying RGB colors
20
19
*/
21
20
enum Color {
22
- // MD-INDEX-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp#[[@LINE-1]]*
23
- // HTML-INDEX-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp</p>
24
- Red, // /< Comment 1
21
+ // MD-INDEX-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp#[[@LINE-1]]*
22
+ // HTML-INDEX-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp</p>
23
+ Red, // /< Comment 1
25
24
Green, // /< Comment 2
26
- Blue // /< Comment 3
25
+ Blue // /< Comment 3
27
26
};
28
27
29
28
// MD-INDEX: ## Enums
@@ -49,8 +48,8 @@ enum Color {
49
48
* @brief Shape Types
50
49
*/
51
50
enum class Shapes {
52
- // MD-INDEX-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp#[[@LINE-1]]*
53
- // HTML-INDEX-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp</p>
51
+ // MD-INDEX-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp#[[@LINE-1]]*
52
+ // HTML-INDEX-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp</p>
54
53
55
54
// / Comment 1
56
55
Circle,
@@ -77,22 +76,20 @@ enum class Shapes {
77
76
// HTML-INDEX: <td>2</td>
78
77
// HTML-INDEX: <p> Comment 3</p>
79
78
80
-
81
-
82
79
class Animals {
83
- // MD-ANIMAL-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp#[[@LINE-1]]*
84
- // HTML-ANIMAL-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp</p>
80
+ // MD-ANIMAL-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp#[[@LINE-1]]*
81
+ // HTML-ANIMAL-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp</p>
85
82
public:
86
- /* *
87
- * @brief specify what animal the class is
88
- */
89
- enum AnimalType {
90
- // MD-ANIMAL-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp#[[@LINE-1]]*
91
- // HTML-ANIMAL-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp</p>
92
- Dog, // /< Man's best friend
93
- Cat, // /< Man's other best friend
94
- Iguana // /< A lizard
95
- };
83
+ /* *
84
+ * @brief specify what animal the class is
85
+ */
86
+ enum AnimalType {
87
+ // MD-ANIMAL-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp#[[@LINE-1]]*
88
+ // HTML-ANIMAL-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp</p>
89
+ Dog, // /< Man's best friend
90
+ Cat, // /< Man's other best friend
91
+ Iguana // /< A lizard
92
+ };
96
93
};
97
94
98
95
// HTML-ANIMAL: <h1>class Animals</h1>
@@ -108,7 +105,6 @@ class Animals {
108
105
// HTML-ANIMAL: <td>2</td>
109
106
// HTML-ANIMAL: <p> A lizard</p>
110
107
111
-
112
108
// MD-ANIMAL: # class Animals
113
109
// MD-ANIMAL: ## Enums
114
110
// MD-ANIMAL: | enum AnimalType |
@@ -118,21 +114,20 @@ class Animals {
118
114
// MD-ANIMAL: | Iguana |
119
115
// MD-ANIMAL: **brief** specify what animal the class is
120
116
121
-
122
117
namespace Vehicles {
123
- /* *
124
- * @brief specify type of car
125
- */
126
- enum Car {
127
- // MD-VEHICLES-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp#[[@LINE-1]]*
128
- // HTML-VEHICLES-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp</p>
129
-
130
- Sedan, // /< Comment 1
131
- SUV, // /< Comment 2
132
- Pickup, // /< Comment 3
133
- Hatchback // /< Comment 4
134
- };
135
- }
118
+ /* *
119
+ * @brief specify type of car
120
+ */
121
+ enum Car {
122
+ // MD-VEHICLES-LINE: *Defined at {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp#[[@LINE-1]]*
123
+ // HTML-VEHICLES-LINE: <p>Defined at line [[@LINE-2]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp</p>
124
+
125
+ Sedan, // /< Comment 1
126
+ SUV, // /< Comment 2
127
+ Pickup, // /< Comment 3
128
+ Hatchback // /< Comment 4
129
+ };
130
+ } // namespace Vehicles
136
131
137
132
// MD-VEHICLES: # namespace Vehicles
138
133
// MD-VEHICLES: ## Enums
@@ -159,7 +154,6 @@ namespace Vehicles {
159
154
// HTML-VEHICLES: <td>3</td>
160
155
// HTML-VEHICLES: <p> Comment 4</p>
161
156
162
-
163
157
enum ColorUserSpecified {
164
158
RedUserSpecified = ' A' ,
165
159
GreenUserSpecified = 2 ,
0 commit comments