[clang] [Clang] Propagate elide safe context through [[clang::coro_must_await]] (PR #108474)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 13 23:21:49 PDT 2024


================
@@ -249,7 +249,10 @@ Attribute Changes in Clang
   (#GH106864)
 
 - Introduced a new attribute ``[[clang::coro_await_elidable]]`` on coroutine return types
-  to express elideability at call sites where the coroutine is co_awaited as a prvalue.
+  to express elideability at call sites where the coroutine is invoked under a safe elide context.
+
+- Introduced a new attribute ``[[clang::coro_must_await]]`` on function parameters to
----------------
ChuanqiXu9 wrote:

Or elidable `[[clang::coro_elideable_await_argument]]`. I do feel better with mentioning `elide` here

https://github.com/llvm/llvm-project/pull/108474


More information about the cfe-commits mailing list