Home
last modified time | relevance | path

Searched defs:promise_type (Results 1 – 25 of 68) sorted by relevance

123

/external/llvm-project/clang/test/CodeGenCoroutines/
Dcoro-alloc.cpp48 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 …]
Dcoro-await-resume-eh.cpp22 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 …]
Dcoro-symmetric-transfer-02.cpp8 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()
Dcoro-symmetric-transfer-01.cpp8 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()
Dcoro-unhandled-exception.cpp14 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()
Dcoro-params.cpp29 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
Dcoro-newpm-pipeline.cpp46 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()
Dcoro-always-inline.cpp30 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/
Ddialect_support.sh.cpp28 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/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/
Dpromise.pass.cpp32 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/libcxx/test/libcxx/experimental/language.support/support.coroutines/
Ddialect_support.pass.cpp27 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/llvm-project/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/
Dpromise.pass.cpp31 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/AST/
Dcoroutine-locals-cleanup.cpp8 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/clang/test/SemaCXX/
Dcoroutine-uninitialized-warning-crash.cpp16 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()
Dcoroutine_handle-addres-return-type.cpp30 using promise_type = typename T::promise_type; typedef
44 struct promise_type { struct
55 struct coroutine_handle<task::promise_type> : public coroutine_handle<> {
Dcoroutine-rvo.cpp28 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/
Dcoroutine_types.h17 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/
Dcoroutine_types.h16 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/
Dubsan-coroutines.cpp9 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/
Dmultishot_func.pass.cpp23 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()
Dfullexpr-dtor.pass.cpp47 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()
Dgenerator.pass.cpp25 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/
Dmultishot_func.pass.cpp24 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()
Dfullexpr-dtor.pass.cpp46 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()
Dgenerator.pass.cpp25 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()

123