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

Yuxuan Chen via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 16 10:30:53 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
----------------
yuxuanchen1997 wrote:

I prefer `[[clang::coro_await_elideable_argument]]`. Thanks for the ideas. 

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


More information about the cfe-commits mailing list