[clang] [clang] Introduce [[clang::lifetime_capture_by(X)]] (PR #111499)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 7 08:32:07 PST 2024
================
@@ -1909,6 +1911,12 @@ void TypePrinter::printAttributedAfter(const AttributedType *T,
OS << " [[clang::lifetimebound]]";
return;
}
+ if (T->getAttrKind() == attr::LifetimeCaptureBy) {
+ // FIXME: Print the attribute arguments once we have a way to retrieve these
----------------
Xazax-hun wrote:
I think it should be possible since https://github.com/llvm/llvm-project/pull/108631 was merged.
https://github.com/llvm/llvm-project/pull/111499
More information about the cfe-commits
mailing list