================
@@ -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:

I think this would be cleaner, since we aren't really talking about arguments 
here.
```suggestion
struct LifetimeBoundParamInfo {
  llvm::PointerUnion<const ParmVarDecl *, const CXXMethodDecl *> Param;
  bool IsInferred = false;
};
```

https://github.com/llvm/llvm-project/pull/220248
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to