Home
last modified time | relevance | path

Searched refs:MyIntPointer (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/clang/test/Sema/
Dwarn-lifetime-analysis-nocfg.cpp7 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()
[all …]
Dwarn-lifetime-analysis-nocfg-disabled.cpp8 struct [[gsl::Pointer(int)]] MyIntPointer { struct
9 MyIntPointer(int *p = nullptr);
10 MyIntPointer(const MyIntOwner &);
20 MyIntPointer g() { in g()