[clang] [Lifetime Safety] Distinguish attributed/inferred lifetimebound diagnostics (PR #220248)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 1 08:22:15 PDT 2026
================
@@ -66,6 +66,12 @@ bool implicitObjectParamIsLifetimeBound(const FunctionDecl *FD);
using LifetimeBoundParamInfo =
llvm::PointerUnion<const ParmVarDecl *, const CXXMethodDecl *>;
+/// Describes why an argument is tracked as lifetimebound-like.
+struct LifetimeBoundArgInfo {
+ LifetimeBoundParamInfo Param;
+ bool IsInferred = false;
+};
+
----------------
NeKon69 wrote:
Or, we could still have an alias but name it like ` LifetimeBoundParam` since it's used further in the code.
https://github.com/llvm/llvm-project/pull/220248
More information about the cfe-commits
mailing list