clang 22.0.0git
|
Information about a single borrow, or "Loan". More...
Public Member Functions | |
Loan (LoanID id, AccessPath path, const Expr *IssueExpr) | |
void | dump (llvm::raw_ostream &OS) const |
Public Attributes | |
LoanID | ID |
TODO: Represent opaque loans. | |
AccessPath | Path |
const Expr * | IssueExpr |
The expression that creates the loan, e.g., &x. |
Information about a single borrow, or "Loan".
A loan is created when a reference or pointer is created.
Definition at line 43 of file LifetimeSafety.cpp.
|
inline |
Definition at line 52 of file LifetimeSafety.cpp.
|
inline |
Definition at line 55 of file LifetimeSafety.cpp.
Referenced by clang::lifetimes::internal::ExpireFact::dump(), and clang::lifetimes::internal::IssueFact::dump().
LoanID clang::lifetimes::internal::Loan::ID |
TODO: Represent opaque loans.
TODO: Represent nullptr: loans to no path. Accessing it UB! Currently it is represented as empty LoanSet
Definition at line 47 of file LifetimeSafety.cpp.
const Expr* clang::lifetimes::internal::Loan::IssueExpr |
The expression that creates the loan, e.g., &x.
Definition at line 50 of file LifetimeSafety.cpp.
Referenced by clang::lifetimes::internal::LifetimeChecker::issuePendingWarnings(), and Loan().
AccessPath clang::lifetimes::internal::Loan::Path |
Definition at line 48 of file LifetimeSafety.cpp.