Lines Matching defs:MyIntOwner
3 struct [[gsl::Owner(int)]] MyIntOwner {
4 MyIntOwner();
13 MyIntPointer(const MyIntOwner &);
15 MyIntOwner toOwner();
41 new MyIntPointer(MyIntOwner{}); // expected-warning {{object backing the pointer will be destroyed at the end of the full-expression}}
77 DanglingGslPtrField(double) : p(MyIntOwner{}) {} // expected-warning {{initializing pointer member 'p' to point to a temporary object whose lifetime is shorter than the lifetime of the constructed object}}
91 MyIntOwner localOwner;
101 return MyIntOwner{}; // expected-warning {{returning address of local temporary object}}
104 MyIntOwner makeTempOwner();
114 int *noFalsePositive(MyIntOwner &o) {
123 MyIntPointer p = MyIntOwner{}; // expected-warning {{object backing the pointer will be destroyed at the end of the full-expression}}
124 MyIntPointer pp = p = MyIntOwner{}; // expected-warning {{object backing the pointer p will be}}
125 p = MyIntOwner{}; // expected-warning {{object backing the pointer p }}
127 global = MyIntOwner{}; // expected-warning {{object backing the pointer global }}