Lines Matching full:delete
2 // RUN: %clang_cc1 -fsyntax-only -include %S/delete-mismatch.h -fdiagnostics-parseable-fixits -std=…
5 // RUN: %clang_cc1 -x c++-header -std=c++11 -emit-pch -o %t %S/delete-mismatch.h
9 delete a; // expected-warning {{'delete' applied to a pointer-to-array type}} in f()
21 …delete a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in ~S()
22 …delete b; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; d… in ~S()
23 …delete[] c; // expected-warning {{'delete[]' applied to a pointer that was allocated with 'new'; d… in ~S()
30 …delete a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in f()
31 …delete b; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in f()
44 …delete a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in ~S2()
50 …delete a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in f()
51 …delete s->a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; … in f()
52 …delete s->b; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; … in f()
53 delete s->c; in f()
54 delete s->d; in f()
55 …delete S::d; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; … in f()
66 delete[] p; in ~MatchingNewIsOK()
68 delete p; in ~MatchingNewIsOK()
86 delete[] p; in ~CantProve_MissingCtorDefinition()
96 …delete p; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in ~InitList()
97 delete [] p; in ~InitList()
98 delete p2; in ~InitList()
99 delete [] p3; in ~InitList()
100 delete p4; in ~InitList()
106 #define DELETE_ARRAY(x) delete[] (x)
107 #define DELETE(x) delete (x) macro
110 …delete[] a; // expected-warning {{'delete[]' applied to a pointer that was allocated with… in f()
112 delete b; in f()
115 …delete [ ] c; // expected-warning {{'delete[]' applied to a pointer that was allocated with … in f()
117 …delete d; // expected-warning {{'delete' applied to a pointer that was allocated with 'n… in f()
119 …RRAY(a); // expected-warning {{'delete[]' applied to a pointer that was allocated with 'new'; d… in f()
120 …DELETE(d); // expected-warning {{'delete' applied to a pointer that was allocated with 'n… in f()
134 delete s.p1; in null_init()
135 delete s.p2; in null_init()