[clang] [llvm] [Coroutines] Introduce [[clang::coro_only_destroy_when_complete]] (PR #71014)
Erich Keane via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 2 07:03:30 PDT 2023
================
@@ -7416,3 +7416,69 @@ that ``p->array`` must have at least ``p->count`` number of elements available:
}];
}
+
+def CoroOnlyDestroyWhenCompleteDocs : Documentation {
+ let Category = DocCatDecl;
+ let Content = [{
+The `coro_only_destroy_when_complete` attribute should be marked on a C++ class. The coroutines
+whose return type is marked as the attribute are assumed to be destroyed only after then coroutines
----------------
erichkeane wrote:
```suggestion
whose return type is marked with the attribute are assumed to be destroyed only after the coroutine has
```
https://github.com/llvm/llvm-project/pull/71014
More information about the llvm-commits
mailing list