clang 22.0.0git
clang::lifetimes::internal::PathLoan Class Reference

PathLoan represents lending a storage location that is visible within the function's scope (e.g., a local variable on stack). More...

#include "clang/Analysis/Analyses/LifetimeSafety/Loans.h"

Inheritance diagram for clang::lifetimes::internal::PathLoan:
[legend]

Public Member Functions

 PathLoan (LoanID ID, AccessPath Path, const Expr *IssueExpr)
const AccessPathgetAccessPath () const
const ExprgetIssueExpr () const
void dump (llvm::raw_ostream &OS) const override
Public Member Functions inherited from clang::lifetimes::internal::Loan
 Loan (Kind K, LoanID ID)
virtual ~Loan ()=default
Kind getKind () const
LoanID getID () const

Static Public Member Functions

static bool classof (const Loan *L)

Additional Inherited Members

Public Types inherited from clang::lifetimes::internal::Loan
enum class  Kind : uint8_t { Path , Placeholder }
 TODO: Represent opaque loans. More...

Detailed Description

PathLoan represents lending a storage location that is visible within the function's scope (e.g., a local variable on stack).

Definition at line 67 of file Loans.h.

Constructor & Destructor Documentation

◆ PathLoan()

clang::lifetimes::internal::PathLoan::PathLoan ( LoanID ID,
AccessPath Path,
const Expr * IssueExpr )
inline

Definition at line 73 of file Loans.h.

References clang::lifetimes::internal::Loan::Loan().

Member Function Documentation

◆ classof()

bool clang::lifetimes::internal::PathLoan::classof ( const Loan * L)
inlinestatic

◆ dump()

void clang::lifetimes::internal::PathLoan::dump ( llvm::raw_ostream & OS) const
overridevirtual

Implements clang::lifetimes::internal::Loan.

Definition at line 13 of file Loans.cpp.

References clang::lifetimes::internal::Loan::getID().

◆ getAccessPath()

const AccessPath & clang::lifetimes::internal::PathLoan::getAccessPath ( ) const
inline

Definition at line 76 of file Loans.h.

◆ getIssueExpr()

const Expr * clang::lifetimes::internal::PathLoan::getIssueExpr ( ) const
inline

Definition at line 77 of file Loans.h.


The documentation for this class was generated from the following files: