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

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 9 03:47:02 PDT 2026


================
@@ -49,6 +51,14 @@ enum class WarningScope {
   IntraTU  // For warnings on functions local to a Translation Unit.
 };
 
+using LifetimeBoundParamInfo =
+    llvm::PointerUnion<const ParmVarDecl *, const CXXMethodDecl *>;
+
+struct AliasChainEntry {
----------------
Xazax-hun wrote:

Do we actually need the `AliasChainEntry` now? Since we can rederive the lifetime bound info from an expression, any time we have an expression we can get the necessary annotaiton info. So I don't think it ever makes sense to store both. 

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


More information about the cfe-commits mailing list