[clang] [clang][NFC] Refactor expected directives in C++ DRs 1-99 (PR #73879)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 29 16:51:09 PST 2023
================
@@ -80,14 +86,21 @@ namespace dr5 { // dr5: 3.1
namespace dr7 { // dr7: 3.4
class A { public: ~A(); };
- class B : virtual private A {}; // expected-note 2 {{declared private here}}
- class C : public B {} c; // expected-error 2 {{inherited virtual base class 'A' has private destructor}} \
- // expected-note {{implicit default constructor for 'dr7::C' first required here}} \
- // expected-note {{implicit destructor for 'dr7::C' first required here}}
+ class B : virtual private A {}; // #dr7-B
+ class C : public B {} c; // #dr7-C
+ // expected-error@#dr7-C {{inherited virtual base class 'A' has private destructor}}
+ // expected-note@#dr7-C {{in implicit default constructor for 'dr7::C' first required here}}
+ // expected-note@#dr7-B {{declared private here}}
----------------
Endilll wrote:
I had a thought of naming those markers `dr7-struct-C`, but decided to prioritize shorter markers. If you find this more accessible, we can do it this way.
https://github.com/llvm/llvm-project/pull/73879
More information about the cfe-commits
mailing list