Home | History | Annotate | Download | only in SemaCXX

Lines Matching full:destructor

20     // expected-error{{destructor cannot be declared 'static'}}  \
21 // expected-error{{destructor cannot have any parameters}} \
22 // expected-error{{destructor cannot be variadic}} \
23 // expected-error{{destructor cannot have a return type}} \
24 // expected-error{{'const' qualifier is not allowed on a destructor}}
29 // expected-error{{destructor cannot have a return type}}
37 ~E_typedef(); // expected-error{{destructor cannot be declared using a typedef 'E_typedef' (aka 'E') of the class name}}
42 ~F(); // expected-error {{destructor cannot be redeclared}}
45 ~; // expected-error {{expected a class name after '~' to name a destructor}}
46 ~undef(); // expected-error {{expected the class name after '~' to name a destructor}}
47 ~operator+(int, int); // expected-error {{expected a class name after '~' to name a destructor}}
48 ~F(){} // expected-error {{destructor must be a non-static member function}}
94 // destructor.
114 ~A() const; // expected-error {{'const' qualifier is not allowed on a destructor}}
125 struct S1 { // expected-warning {{has virtual functions but non-virtual destructor}}
130 ~S2(); // expected-warning {{has virtual functions but non-virtual destructor}}
134 struct S3 : public S1 { // expected-warning {{has virtual functions but non-virtual destructor}}
138 struct S4 : public S2 { // expected-warning {{has virtual functions but non-virtual destructor}}
169 template<class T> class TS2 { // expected-warning {{'nonvirtualdtor::TS2<int>' has virtual functions but non-virtual destructor}}
179 struct B { // expected-warning {{has virtual functions but non-virtual destructor}}
183 struct D: B {}; // expected-warning {{has virtual functions but non-virtual destructor}}
185 struct F final: B {}; // expected-warning {{has virtual functions but non-virtual destructor}}
201 // expected-warning {{delete called on 'dnvd::B' that has virtual functions but non-virtual destructor}} \
202 // expected-warning {{delete called on 'dnvd::D' that has virtual functions but non-virtual destructor}}
212 ~simple_ptr2() { delete _ptr; } // expected-warning {{delete called on 'dnvd::B' that has virtual functions but non-virtual destructor}}
298 delete b; // expected-warning {{delete called on 'dnvd::B' that has virtual functions but non-virtual destructor}}
302 delete b; // expected-warning {{delete called on 'dnvd::B' that has virtual functions but non-virtual destructor}}
306 delete d; // expected-warning {{delete called on 'dnvd::D' that has virtual functions but non-virtual destructor}}
362 b.~A(); // expected-error{{destructor type 'PR7900::A' in object destruction expression does not match the type 'PR7900::B' of the object being destroyed}}
363 (&b)->~A(); // expected-error{{destructor type 'PR7900::A' in object destruction expression does not match the type 'PR7900::B' of the object being destroyed}}