/external/llvm-project/clang/test/CodeGenCoroutines/ |
D | coro-alloc.cpp | 48 struct promise_type { struct 49 void get_return_object() {} in get_return_object() 50 suspend_always initial_suspend() { return {}; } in initial_suspend() 51 suspend_always final_suspend() noexcept { return {}; } in final_suspend() 52 void return_void() {} in return_void() 88 struct promise_type { struct 90 void get_return_object() {} in get_return_object() 91 suspend_always initial_suspend() { return {}; } in initial_suspend() 92 suspend_always final_suspend() noexcept { return {}; } in final_suspend() 93 void return_void() {} in return_void() [all …]
|
D | coro-await-resume-eh.cpp | 22 struct promise_type { struct 23 auto get_return_object() { return throwing_task{}; } in get_return_object() 24 auto initial_suspend() { return throwing_awaitable{}; } in initial_suspend() 25 auto final_suspend() noexcept { return coro::suspend_never{}; } in final_suspend() 26 void return_void() {} in return_void() 27 void unhandled_exception() {} in unhandled_exception() 90 struct promise_type { struct 91 auto get_return_object() { return noexcept_task{}; } in get_return_object() 92 auto initial_suspend() { return noexcept_awaitable{}; } in initial_suspend() 93 auto final_suspend() noexcept { return coro::suspend_never{}; } in final_suspend() [all …]
|
D | coro-symmetric-transfer-02.cpp | 8 struct promise_type { struct 9 Task get_return_object() noexcept { in get_return_object() 13 void return_void() noexcept {} in return_void() 15 struct final_awaiter { 24 void unhandled_exception() noexcept {} in unhandled_exception() 26 final_awaiter final_suspend() noexcept { return {}; } in final_suspend() 28 coro::suspend_always initial_suspend() noexcept { return {}; } in initial_suspend() 31 auto await_transform(Awaitable &&awaitable) { in await_transform()
|
D | coro-symmetric-transfer-01.cpp | 8 struct promise_type { struct 9 detached_task get_return_object() noexcept { in get_return_object() 13 void return_void() noexcept {} in return_void() 15 struct final_awaiter { 24 void unhandled_exception() noexcept {} in unhandled_exception() 26 final_awaiter final_suspend() noexcept { return {}; } in final_suspend() 28 coro::suspend_always initial_suspend() noexcept { return {}; } in initial_suspend()
|
D | coro-params.cpp | 29 struct promise_type { struct 140 struct promise_type { struct 141 promise_type(promise_matching_constructor, int, float, double) {} in promise_type() function 143 void get_return_object() {} in get_return_object() 144 suspend_always initial_suspend() { return {}; } in initial_suspend() 145 suspend_always final_suspend() noexcept { return {}; } in final_suspend() 146 void return_void() {} in return_void() 147 void unhandled_exception() {} in unhandled_exception() 165 struct promise_type { struct
|
D | coro-unhandled-exception.cpp | 14 struct promise_type { struct 15 coro_t get_return_object() { in get_return_object() 19 coro::suspend_never initial_suspend() { return {}; } in initial_suspend() 20 coro::suspend_never final_suspend() noexcept { return {}; } in final_suspend() 21 void return_void(){} in return_void()
|
D | coro-newpm-pipeline.cpp | 46 struct promise_type { struct 47 awaitable initial_suspend() { return {}; } in initial_suspend() 48 awaitable final_suspend() noexcept { return {}; } in final_suspend() 49 void return_void() {} in return_void() 50 T get_return_object() { return T(); } in get_return_object() 51 void unhandled_exception() {} in unhandled_exception()
|
D | coro-always-inline.cpp | 30 struct promise_type { struct 31 awaitable initial_suspend() { return {}; } in initial_suspend() 32 awaitable final_suspend() noexcept { return {}; } in final_suspend() 33 void return_void() {} in return_void() 34 T get_return_object() { return T(); } in get_return_object() 35 void unhandled_exception() {} in unhandled_exception()
|
/external/libcxx/test/libcxx/experimental/language.support/support.coroutines/ |
D | dialect_support.sh.cpp | 28 struct promise_type { struct 29 typedef coro::coroutine_handle<promise_type> HandleT; 30 coro::suspend_never initial_suspend() { return sn; } in initial_suspend() 31 coro::suspend_always final_suspend() { return sa; } in final_suspend() 32 coro::suspend_never yield_value(int) { return sn; } in yield_value() 33 MyFuture get_return_object() { in get_return_object() 37 void return_void() {} in return_void() 38 void unhandled_exception() {} in unhandled_exception()
|
/external/llvm-project/libcxx/test/libcxx/experimental/language.support/support.coroutines/ |
D | dialect_support.pass.cpp | 27 struct promise_type { struct 28 typedef coro::coroutine_handle<promise_type> HandleT; 29 coro::suspend_never initial_suspend() { return sn; } in initial_suspend() 30 coro::suspend_always final_suspend() TEST_NOEXCEPT { return sa; } in final_suspend() 31 coro::suspend_never yield_value(int) { return sn; } in yield_value() 32 MyFuture get_return_object() { in get_return_object() 36 void return_void() {} in return_void() 37 void unhandled_exception() {} in unhandled_exception()
|
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/ |
D | promise.pass.cpp | 32 struct promise_type { struct 33 void unhandled_exception() {} in unhandled_exception() 34 void return_void() {} in return_void() 35 coro::suspend_never initial_suspend() { return {}; } in initial_suspend() 36 coro::suspend_never final_suspend() { return {}; } in final_suspend() 37 MyCoro get_return_object() { in get_return_object() 41 void do_runtime_test() { in do_runtime_test()
|
/external/llvm-project/clang/test/AST/ |
D | coroutine-locals-cleanup.cpp | 8 struct promise_type { struct 9 Task get_return_object() noexcept { in get_return_object() 13 void return_void() noexcept {} in return_void() 15 struct final_awaiter { 24 void unhandled_exception() noexcept {} in unhandled_exception() 26 final_awaiter final_suspend() noexcept { return {}; } in final_suspend() 28 suspend_always initial_suspend() noexcept { return {}; } in initial_suspend() 31 auto await_transform(Awaitable &&awaitable) { in await_transform()
|
/external/llvm-project/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/ |
D | promise.pass.cpp | 31 struct promise_type { struct 32 void unhandled_exception() {} in unhandled_exception() 33 void return_void() {} in return_void() 34 coro::suspend_never initial_suspend() { return {}; } in initial_suspend() 35 coro::suspend_never final_suspend() noexcept { return {}; } in final_suspend() 36 MyCoro get_return_object() { in get_return_object() 40 void do_runtime_test() { in do_runtime_test()
|
/external/llvm-project/clang/test/SemaCXX/ |
D | coroutine-uninitialized-warning-crash.cpp | 16 struct promise_type { struct 17 coro_t get_return_object() { return {}; } in get_return_object() 18 suspend_never initial_suspend() { return {}; } in initial_suspend() 19 suspend_never final_suspend() noexcept { return {}; } in final_suspend() 20 A yield_value(int) { return {}; } in yield_value() 21 void return_void() {} in return_void() 22 static void unhandled_exception() {} in unhandled_exception()
|
D | coroutine_handle-addres-return-type.cpp | 30 using promise_type = typename T::promise_type; typedef 44 struct promise_type { struct 55 struct coroutine_handle<task::promise_type> : public coroutine_handle<> {
|
D | coroutine-rvo.cpp | 28 using promise_type = typename T::promise_type; typedef 50 struct promise_type { struct 51 auto initial_suspend() { return suspend_never{}; } in initial_suspend() 52 auto final_suspend() noexcept { return suspend_never{}; } in final_suspend() 53 auto get_return_object() { return task{}; } in get_return_object() 54 static void unhandled_exception() {} in unhandled_exception() 55 void return_value(T&& value) {} in return_value()
|
/external/libcxx/test/support/ |
D | coroutine_types.h | 17 struct promise_type { struct 18 Ty current_value; 19 std::experimental::suspend_always yield_value(Ty value) { in yield_value() 23 std::experimental::suspend_always initial_suspend() { return {}; } in initial_suspend() 24 std::experimental::suspend_always final_suspend() { return {}; } in final_suspend() 25 generator get_return_object() { return generator{this}; }; in get_return_object() 26 void return_void() {} in return_void() 27 void unhandled_exception() {} in unhandled_exception()
|
/external/llvm-project/libcxx/test/support/ |
D | coroutine_types.h | 16 struct promise_type { struct 17 Ty current_value; 18 std::experimental::suspend_always yield_value(Ty value) { in yield_value() 22 std::experimental::suspend_always initial_suspend() { return {}; } in initial_suspend() 23 std::experimental::suspend_always final_suspend() noexcept { return {}; } in final_suspend() 24 generator get_return_object() { return generator{this}; }; in get_return_object() 25 void return_void() {} in return_void() 26 void unhandled_exception() {} in unhandled_exception()
|
/external/llvm-project/clang/test/CodeGenCXX/ |
D | ubsan-coroutines.cpp | 9 using promise_type = typename R::promise_type; typedef 32 struct promise_type { struct 33 task get_return_object() { return task(); } in get_return_object() 34 suspend_always initial_suspend() { return {}; } in initial_suspend() 35 suspend_always final_suspend() noexcept { return {}; } in final_suspend() 36 void return_void() {} in return_void() 37 void unhandled_exception() {} in unhandled_exception()
|
/external/libcxx/test/std/experimental/language.support/support.coroutines/end.to.end/ |
D | multishot_func.pass.cpp | 23 struct promise_type { struct 24 Input* I; 25 R result; 26 func get_return_object() { return {this}; } in get_return_object() 27 suspend_always initial_suspend() { return {}; } in initial_suspend() 28 suspend_never final_suspend() { return {}; } in final_suspend() 29 void return_void() {} in return_void() 31 suspend_always yield_value(F&& f) { in yield_value() 35 void unhandled_exception() {} in unhandled_exception()
|
D | fullexpr-dtor.pass.cpp | 47 struct promise_type { struct 48 suspend_never initial_suspend() { return{}; } in initial_suspend() 49 suspend_never final_suspend() { return{}; } in final_suspend() 50 coro2 get_return_object() { return{}; } in get_return_object() 51 void return_void() {} in return_void() 52 Bug yield_value(int) { return {}; } in yield_value() 53 void unhandled_exception() {} in unhandled_exception()
|
D | generator.pass.cpp | 25 struct promise_type { struct 26 int current_value; 27 suspend_always yield_value(int value) { in yield_value() 31 suspend_always initial_suspend() { return {}; } in initial_suspend() 32 suspend_always final_suspend() { return {}; } in final_suspend() 33 minig get_return_object() { return minig{this}; }; in get_return_object() 34 void return_void() {} in return_void() 35 void unhandled_exception() {} in unhandled_exception()
|
/external/llvm-project/libcxx/test/std/experimental/language.support/support.coroutines/end.to.end/ |
D | multishot_func.pass.cpp | 24 struct promise_type { struct 25 Input* I; 26 R result; 27 func get_return_object() { return {this}; } in get_return_object() 28 suspend_always initial_suspend() { return {}; } in initial_suspend() 29 suspend_never final_suspend() noexcept { return {}; } in final_suspend() 30 void return_void() {} in return_void() 32 suspend_always yield_value(F&& f) { in yield_value() 36 void unhandled_exception() {} in unhandled_exception()
|
D | fullexpr-dtor.pass.cpp | 46 struct promise_type { struct 47 suspend_never initial_suspend() { return{}; } in initial_suspend() 48 suspend_never final_suspend() noexcept { return {}; } in final_suspend() 49 coro2 get_return_object() { return{}; } in get_return_object() 50 void return_void() {} in return_void() 51 Bug yield_value(int) { return {}; } in yield_value() 52 void unhandled_exception() {} in unhandled_exception()
|
D | generator.pass.cpp | 25 struct promise_type { struct 26 int current_value; 27 suspend_always yield_value(int value) { in yield_value() 31 suspend_always initial_suspend() { return {}; } in initial_suspend() 32 suspend_always final_suspend() noexcept { return {}; } in final_suspend() 33 minig get_return_object() { return minig{this}; }; in get_return_object() 34 void return_void() {} in return_void() 35 void unhandled_exception() {} in unhandled_exception()
|