Lines Matching refs:MyIntPointer
7 struct [[gsl::Pointer(int)]] MyIntPointer { struct
8 MyIntPointer(int *p = nullptr);
12 MyIntPointer(const MyIntOwner &);
17 struct MySpecialIntPointer : MyIntPointer {
22 struct [[gsl::Owner(int)]] MyOwnerIntPointer : MyIntPointer {
34 MyIntPointer releaseAsMyPointer();
40 …new MyIntPointer(MyIntOwner{}); // expected-warning {{object backing the pointer will be destroyed… in danglingHeapObject()
45 MyIntPointer p{&i}; in intentionalFalseNegative()
48 new MyIntPointer(p); in intentionalFalseNegative()
49 new MyIntPointer(MyIntPointer{p}); in intentionalFalseNegative()
52 MyIntPointer ownershipTransferToMyPointer() { in ownershipTransferToMyPointer()
67 MyIntPointer p = Y{}.a; // TODO in dangligGslPtrFromTemporary()
72 MyIntPointer p; // expected-note {{pointer member declared here}}
79 MyIntPointer danglingGslPtrFromLocal() { in danglingGslPtrFromLocal()
84 MyIntPointer returningLocalPointer() { in returningLocalPointer()
85 MyIntPointer localPointer; in returningLocalPointer()
89 MyIntPointer daglingGslPtrFromLocalOwner() { in daglingGslPtrFromLocalOwner()
99 MyIntPointer danglingGslPtrFromTemporary() { in danglingGslPtrFromTemporary()
105 MyIntPointer danglingGslPtrFromTemporary2() { in danglingGslPtrFromTemporary2()
114 MyIntPointer p = o; in noFalsePositive()
118 MyIntPointer global;
122 …MyIntPointer p = MyIntOwner{}; // expected-warning {{object backing the pointer will be destroyed … in initLocalGslPtrWithTempOwner()
446 MyIntPointer handleDerivedToBaseCast1(MySpecialIntPointer ptr) { in handleDerivedToBaseCast1()
450 MyIntPointer handleDerivedToBaseCast2(MyOwnerIntPointer ptr) { in handleDerivedToBaseCast2()