Skip to content

Commit e51fe95

Browse files
authored
[clang][NFC] Improve comments in C++ DR test suite (llvm#77670)
Previously, we've been mentioning tests that were placed in their own files in corresponding `drNNxx.cpp` file. This patch makes sure we do this consistently, and improves upon existing practice by specifying the name of the file test is placed in.
1 parent aec73ea commit e51fe95

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

clang/test/CXX/drs/dr17xx.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ S s(q); // #dr1736-s
8989
#endif
9090
}
9191

92+
// dr1748 is in dr1748.cpp
93+
9294
namespace dr1753 { // dr1753: 11
9395
typedef int T;
9496
struct A { typedef int T; };
@@ -159,6 +161,8 @@ namespace dr1762 { // dr1762: 14
159161
#endif
160162
}
161163

164+
// dr1772 is in dr177x.cpp
165+
162166
namespace dr1778 { // dr1778: 9
163167
// Superseded by P1286R2.
164168
#if __cplusplus >= 201103L
@@ -174,6 +178,8 @@ namespace dr1778 { // dr1778: 9
174178
#endif
175179
}
176180

181+
// dr1779 is in dr177x.cpp
182+
177183
namespace dr1794 { // dr1794: yes
178184
// NB: dup 1710
179185
#if __cplusplus >= 201103L

clang/test/CXX/drs/dr1xx.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ namespace dr116 { // dr116: yes
283283
}
284284

285285
// dr117: na
286-
// dr118 is in its own file.
286+
// dr118 is in dr118.cpp
287287
// dr119: na
288288
// dr120: na
289289

@@ -789,7 +789,7 @@ namespace dr155 { // dr155: dup 632
789789
// expected-warning@-1 {{braces around scalar initializer}}
790790
}
791791

792-
// dr158 is in its own file.
792+
// dr158 is in dr158.cpp
793793

794794
namespace dr159 { // dr159: 3.5
795795
namespace X { void f(); }

clang/test/CXX/drs/dr23xx.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ namespace dr2387 { // dr2387: 9
213213
#endif
214214
}
215215

216+
// dr2390 is in dr2390.cpp
217+
216218
namespace dr2394 { // dr2394: 15
217219

218220
struct A {};

clang/test/CXX/drs/dr4xx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ namespace dr410 { // dr410: no
282282
// expected-note@#dr410-z {{declared private here}}
283283
}
284284

285-
// dr412 is in its own file.
285+
// dr412 is in dr412.cpp
286286

287287
namespace dr413 { // dr413: yes
288288
struct S {

0 commit comments

Comments
 (0)