Lines Matching refs:MyIntOwner
2 struct [[gsl::Owner(int)]] MyIntOwner { struct
3 MyIntOwner();
12 MyIntPointer(const MyIntOwner &);
14 MyIntOwner toOwner();
40 …new MyIntPointer(MyIntOwner{}); // expected-warning {{object backing the pointer will be destroyed… in danglingHeapObject()
76 …DanglingGslPtrField(double) : p(MyIntOwner{}) {} // expected-warning {{initializing pointer member… in DanglingGslPtrField()
90 MyIntOwner localOwner; in daglingGslPtrFromLocalOwner()
100 return MyIntOwner{}; // expected-warning {{returning address of local temporary object}} in danglingGslPtrFromTemporary()
103 MyIntOwner makeTempOwner();
113 int *noFalsePositive(MyIntOwner &o) { in noFalsePositive()
122 …MyIntPointer p = MyIntOwner{}; // expected-warning {{object backing the pointer will be destroyed … in initLocalGslPtrWithTempOwner()
123 p = MyIntOwner{}; // TODO ? in initLocalGslPtrWithTempOwner()
124 global = MyIntOwner{}; // TODO ? in initLocalGslPtrWithTempOwner()