[clang-tools-extra] [clang-tidy] Fix virtual inheritance FP in misc-multiple-inheritance (PR #186103)

Zeyi Xu via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 12 05:03:07 PDT 2026


================
@@ -163,3 +163,22 @@ struct S2 { int i; };
 struct S3 : S1, S2 {};
 
 } // namespace N
+
+namespace M {
+
+class basic_ios { int state; };
+class ostream : virtual public basic_ios { int more_state; };
+class OStringStream final : public ostream {};
+
+struct A { int x; };
----------------
zeyi2 wrote:

These two cases are here to avoid regression :)

I think they are not covered before.

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


More information about the cfe-commits mailing list