================
@@ -178,6 +190,10 @@ class OriginManager {
llvm::DenseMap<const clang::ValueDecl *, OriginList *> DeclToList;
llvm::DenseMap<const clang::Expr *, OriginList *> ExprToList;
std::optional<OriginList *> ThisOrigins;
+ /// Types that are not inherently pointer-like but require origin tracking
+ /// because they are returned from functions with [[clang::lifetimebound]]
----------------
Xazax-hun wrote:
Small nit, I think these are not specific to `lifetimebound` only,
`lifetime_capture_by` has similar effects. It is fine to not handle that in
this PR, but I wonder if the comment should reflect this.
https://github.com/llvm/llvm-project/pull/187917
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits