clang 23.0.0git
clang::lifetimes::internal::AccessPath Struct Reference

Represents the storage location being borrowed, e.g., a specific stack variable. More...

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

Public Member Functions

 AccessPath (const clang::ValueDecl *D)
 AccessPath (const clang::MaterializeTemporaryExpr *MTE)
const clang::ValueDeclgetAsValueDecl () const
const clang::MaterializeTemporaryExprgetAsMaterializeTemporaryExpr () const

Detailed Description

Represents the storage location being borrowed, e.g., a specific stack variable.

TODO: Model access paths of other types, e.g., s.field, heap and globals.

Definition at line 33 of file Loans.h.

Constructor & Destructor Documentation

◆ AccessPath() [1/2]

clang::lifetimes::internal::AccessPath::AccessPath ( const clang::ValueDecl * D)
inline

Definition at line 45 of file Loans.h.

◆ AccessPath() [2/2]

clang::lifetimes::internal::AccessPath::AccessPath ( const clang::MaterializeTemporaryExpr * MTE)
inline

Definition at line 46 of file Loans.h.

Member Function Documentation

◆ getAsMaterializeTemporaryExpr()

const clang::MaterializeTemporaryExpr * clang::lifetimes::internal::AccessPath::getAsMaterializeTemporaryExpr ( ) const
inline

Definition at line 52 of file Loans.h.

◆ getAsValueDecl()

const clang::ValueDecl * clang::lifetimes::internal::AccessPath::getAsValueDecl ( ) const
inline

Definition at line 48 of file Loans.h.


The documentation for this struct was generated from the following file: