[clang] [clang][NFC] Refactor expected directives in C++ DRs 1-99 (PR #73879)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 30 07:46:18 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}}
----------------
shafik wrote:

This is not a sticking point for me, just an observation and to see how others felt.

https://github.com/llvm/llvm-project/pull/73879


More information about the cfe-commits mailing list