File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 4343#endif // __SANITIZE_ADDRESS__
4444#endif // __GNUC__
4545
46+ #if __has_cpp_attribute(clang::coro_only_destroy_when_complete)
47+ #define CORO_ONLY_DESTROY_WHEN_DONE [[clang::coro_only_destroy_when_complete]]
48+ #else
4649#if defined(__alibaba_clang__) && \
4750 __has_cpp_attribute (ACC::coro_only_destroy_when_complete)
4851#define CORO_ONLY_DESTROY_WHEN_DONE [[ACC::coro_only_destroy_when_complete]]
4952#else
5053#define CORO_ONLY_DESTROY_WHEN_DONE
5154#endif
55+ #endif
5256
57+ #if __has_cpp_attribute(clang::coro_await_elidable)
58+ #define ELIDEABLE_AFTER_AWAIT [[clang::coro_await_elidable]]
59+ #else
5360#if defined(__alibaba_clang__) && \
5461 __has_cpp_attribute (ACC::elideable_after_await)
5562#define ELIDEABLE_AFTER_AWAIT [[ACC::elideable_after_await]]
5663#else
5764#define ELIDEABLE_AFTER_AWAIT
5865#endif
66+ #endif
5967
6068#endif
You can’t perform that action at this time.
0 commit comments