clang 22.0.0git
|
Information about a single borrow, or "Loan". More...
Public Member Functions | |
Loan (LoanID id, AccessPath path, const Expr *IssueExpr) | |
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 42 of file LifetimeSafety.cpp.
|
inline |
Definition at line 51 of file LifetimeSafety.cpp.
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 46 of file LifetimeSafety.cpp.
Referenced by clang::lifetimes::internal::FactGenerator::VisitUnaryOperator().
const Expr* clang::lifetimes::internal::Loan::IssueExpr |
The expression that creates the loan, e.g., &x.
Definition at line 49 of file LifetimeSafety.cpp.
Referenced by clang::lifetimes::internal::LifetimeChecker::issuePendingWarnings().
AccessPath clang::lifetimes::internal::Loan::Path |
Definition at line 47 of file LifetimeSafety.cpp.