1- // RUN: %check_clang_tidy %s fuchsia -multiple-inheritance %t
1+ // RUN: %check_clang_tidy %s misc -multiple-inheritance %t
22
33class Base_A {
44public:
@@ -45,16 +45,16 @@ class Interface_with_A_Parent : public Base_A {
4545class Bad_Child1 ;
4646
4747// Inherits from multiple concrete classes.
48- // CHECK-MESSAGES: [[@LINE+2]]:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [fuchsia -multiple-inheritance]
48+ // CHECK-MESSAGES: [[@LINE+2]]:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [misc -multiple-inheritance]
4949// CHECK-NEXT: class Bad_Child1 : public Base_A, Base_B {};
5050class Bad_Child1 : public Base_A , Base_B {};
5151
52- // CHECK-MESSAGES: [[@LINE+1]]:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [fuchsia -multiple-inheritance]
52+ // CHECK-MESSAGES: [[@LINE+1]]:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [misc -multiple-inheritance]
5353class Bad_Child2 : public Base_A , Interface_A_with_member {
5454 virtual int foo () override { return 0 ; }
5555};
5656
57- // CHECK-MESSAGES: [[@LINE+2]]:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [fuchsia -multiple-inheritance]
57+ // CHECK-MESSAGES: [[@LINE+2]]:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [misc -multiple-inheritance]
5858// CHECK-NEXT: class Bad_Child3 : public Interface_with_A_Parent, Base_B {
5959class Bad_Child3 : public Interface_with_A_Parent , Base_B {
6060 virtual int baz () override { return 0 ; }
@@ -83,7 +83,7 @@ class Good_Child3 : public Base_A_child, Interface_C, Interface_B {
8383
8484struct B1 { int x; };
8585struct B2 { int x;};
86- // CHECK-MESSAGES: [[@LINE+2]]:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [fuchsia -multiple-inheritance]
86+ // CHECK-MESSAGES: [[@LINE+2]]:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [misc -multiple-inheritance]
8787// CHECK-NEXT: struct D : B1, B2 {};
8888struct D1 : B1, B2 {};
8989
@@ -100,7 +100,7 @@ struct D3 : V3, V4 {};
100100struct Base3 {};
101101struct V5 : virtual Base3 { virtual void f (); };
102102struct V6 : virtual Base3 { virtual void g (); };
103- // CHECK-MESSAGES: [[@LINE+2]]:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [fuchsia -multiple-inheritance]
103+ // CHECK-MESSAGES: [[@LINE+2]]:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [misc -multiple-inheritance]
104104// CHECK-NEXT: struct D4 : V5, V6 {};
105105struct D4 : V5, V6 {};
106106
@@ -118,7 +118,7 @@ struct Base6 { virtual void f(); };
118118struct Base7 { virtual void g (); };
119119struct V15 : virtual Base6 { virtual void f () = 0; };
120120struct V16 : virtual Base7 { virtual void g () = 0; };
121- // CHECK-MESSAGES: [[@LINE+2]]:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [fuchsia -multiple-inheritance]
121+ // CHECK-MESSAGES: [[@LINE+2]]:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [misc -multiple-inheritance]
122122// CHECK-NEXT: struct D9 : V15, V16 {};
123123struct D9 : V15, V16 {};
124124
@@ -159,7 +159,7 @@ namespace N {
159159struct S1 { int i; };
160160struct S2 { int i; };
161161
162- // CHECK-MESSAGES: [[@LINE+1]]:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [fuchsia -multiple-inheritance]
162+ // CHECK-MESSAGES: [[@LINE+1]]:1: warning: inheriting multiple classes that aren't pure virtual is discouraged [misc -multiple-inheritance]
163163struct S3 : S1, S2 {};
164164
165165} // namespace N
0 commit comments