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

Kashika Akhouri via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 28 02:24:47 PST 2025


================
@@ -31,7 +31,7 @@ inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, LoanID ID) {
 struct AccessPath {
   const clang::ValueDecl *D;
 
-  AccessPath(const clang::ValueDecl *D) : D(D) {}
+  AccessPath(const clang::ValueDecl *D = nullptr) : D(D) {}
----------------
kashika0112 wrote:

Have refactored the code and introduced new classes. 

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


More information about the cfe-commits mailing list