[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 4 23:51:25 PST 2025


================
@@ -34,46 +34,116 @@ struct AccessPath {
   AccessPath(const clang::ValueDecl *D) : D(D) {}
 };
 
-/// Information about a single borrow, or "Loan". A loan is created when a
-/// reference or pointer is created.
-struct Loan {
+/// An abstract base class for a single "Loan" which represents a lifetime
+/// dependency.
----------------
usx95 wrote:

nit: which represents lending a storage in memory.

https://github.com/llvm/llvm-project/pull/169767


More information about the cfe-commits mailing list