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()
21delete a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in ~S()
22delete b; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; d… in ~S()
23delete[] c; // expected-warning {{'delete[]' applied to a pointer that was allocated with 'new'; d… in ~S()
30delete a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in f()
31delete b; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in f()
44delete a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in ~S2()
50delete a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; did… in f()
51delete s->a; // expected-warning {{'delete' applied to a pointer that was allocated with 'new[]'; … in f()
52delete 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()
55delete 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()
96delete 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
110delete[] a; // expected-warning {{'delete[]' applied to a pointer that was allocated with… in f()
112 delete b; in f()
115delete [ ] c; // expected-warning {{'delete[]' applied to a pointer that was allocated with … in f()
117delete 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()
120DELETE(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()