[clang] [coroutines] Introduce [[clang::coro_lifetimebound]] (PR #72851)
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 21 07:32:01 PST 2023
================
@@ -334,6 +334,10 @@ Attribute Changes in Clang
[[clang::code_align(A)]] for(;;) { }
}
+- Clang now introduced ``[[clang::coro_lifetimebound]]`` attribute.
+ All arguments to a function are considered to be lifetime bound if the function
----------------
ilya-biryukov wrote:
```suggestion
All parameters to a function are considered to be lifetime bound if the function
```
Since the original attribute is applied to parameters, I believe this would be more accurate.
I also suggest adding something like:
```
See documentation of ``[[clang::lifetimebound]]`` for more details.
```
https://github.com/llvm/llvm-project/pull/72851
More information about the cfe-commits
mailing list