[clang] [Lifetime Safety] Highlight lifetimebound calls in alias chain diagnostics (PR #206337)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 13 02:01:20 PDT 2026


================
@@ -664,20 +664,66 @@ class LifetimeSafetySemaHelperImpl : public LifetimeSafetySemaHelper {
     return CurrExpr->getSourceRange() != LastExpr->getSourceRange();
   }
 
+  bool shouldCarryHiddenLifetimeBound(const Expr *HiddenExpr,
----------------
NeKon69 wrote:

I thought both expressions that we pass into this function are aliases of the original call expression (e.g. after applying implicit casts), is that not the case?

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


More information about the cfe-commits mailing list