|
clang 23.0.0git
|
Represents lending a storage location. More...
#include "clang/Analysis/Analyses/LifetimeSafety/Loans.h"
Public Member Functions | |
| Loan (LoanID ID, AccessPath Path, const Expr *IssuingExpr) | |
| LoanID | getID () const |
| const AccessPath & | getAccessPath () const |
| const Expr * | getIssuingExpr () const |
| void | dump (llvm::raw_ostream &OS) const |
Represents lending a storage location.
A loan tracks the borrowing relationship created by operations like taking a pointer/reference (&x), creating a view (std::string_view sv = s), or receiving a parameter.
Examples:
|
inline |
| void clang::lifetimes::internal::Loan::dump | ( | llvm::raw_ostream & | OS | ) | const |
Definition at line 34 of file Loans.cpp.
References getID().
Referenced by clang::lifetimes::internal::IssueFact::dump().
|
inline |
|
inline |
Definition at line 122 of file Loans.h.
Referenced by dump(), clang::lifetimes::internal::FactsGenerator::VisitDeclRefExpr(), and clang::lifetimes::internal::FactsGenerator::VisitMaterializeTemporaryExpr().
|
inline |