Home
last modified time | relevance | path

Searched refs:promise_type (Results 1 – 16 of 16) sorted by relevance

/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.traits/
Dpromise_type.pass.cpp17 template <class T, class = typename T::promise_type>
25 using promise_type = A*; typedef
32 using promise_type = void; typedef
39 using promise_type = int*; typedef
43 using promise_type = B*; typedef
47 using promise_type = void; typedef
55 static_assert(std::is_same<typename Traits::promise_type, Expect>::value, ""); in check_type()
/external/libcxx/test/support/
Dcoroutine_types.h17 struct promise_type { struct
31 std::experimental::coroutine_handle<promise_type> _Coro;
34 iterator(std::experimental::coroutine_handle<promise_type> Coro, bool Done) in iterator()
69 explicit generator(promise_type *p) in generator()
70 : p(std::experimental::coroutine_handle<promise_type>::from_promise(*p)) {} in generator()
72 std::experimental::coroutine_handle<promise_type> p;
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/
Dvoid_handle.pass.cpp18 using promise_type = A*; typedef
27 using promise_type = int*; typedef
31 using promise_type = B*; typedef
35 using promise_type = void; typedef
41 using P = typename coro::coroutine_traits<T, Args...>::promise_type ; in check_type()
/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; argument
40 typedef promise_type::HandleT HandleT;
44 coro::coroutine_handle<promise_type> p;
/external/libcxx/test/std/experimental/language.support/support.coroutines/end.to.end/
Dbool_await_suspend.pass.cpp22 struct promise_type { struct
24 return coroutine_handle<promise_type>::from_promise(*this); in get_return_object()
31 coro_t(coroutine_handle<promise_type> hh) : h(hh) {} in coro_t()
32 coroutine_handle<promise_type> h;
Dgenerator.pass.cpp25 struct promise_type { struct
52 explicit minig(promise_type *p) in minig()
53 : p(coroutine_handle<promise_type>::from_promise(*p)) {} in minig()
55 coroutine_handle<promise_type> p;
Doneshot_func.pass.cpp23 struct promise_type { struct
64 func(promise_type *promise) in func()
65 : h(coroutine_handle<promise_type>::from_promise(*promise)) {} in func()
66 coroutine_handle<promise_type> h;
Dmultishot_func.pass.cpp23 struct promise_type { struct
73 func(promise_type *promise) in func()
74 : h(coroutine_handle<promise_type>::from_promise(*promise)) {} in func()
75 coroutine_handle<promise_type> h;
Dawait_result.pass.cpp19 struct promise_type { struct
21 coroutine_handle<promise_type>{}; in get_return_object()
Dexpected.pass.cpp38 struct promise_type { struct
49 void await_suspend(coroutine_handle<promise_type> h) { in await_suspend()
Dgo.pass.cpp43 struct promise_type struct
61 coroutine_handle<goroutine::promise_type> workaround; argument
Dfullexpr-dtor.pass.cpp47 struct promise_type { struct
/external/clang/test/SemaCXX/
Dcoroutines.cpp32 using promise_type = Promise; typedef
45 template<> struct std::coroutine_traits<double, double> { typedef int promise_type; }; typedef
51 struct promise_type {}; struct
58 template<typename ...T> struct std::coroutine_traits<void, T...> { using promise_type = promise; }; typedef
187 struct promise_type { struct
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/
Dpromise.pass.cpp32 struct promise_type { struct
45 using CH = coro::coroutine_handle<promise_type>; in do_runtime_test()
46 using CCH = coro::coroutine_handle<const promise_type>; in do_runtime_test()
/external/libcxx/include/experimental/
Dcoroutine79 _Tp, typename __void_t<typename _Tp::promise_type>::type>
81 using promise_type = typename _Tp::promise_type;
240 "coroutine_handle<promise_type>::from_address cannot be called with "
247 "coroutine_handle<promise_type>::from_address cannot be used with "
/external/clang/include/clang/Basic/
DDiagnosticSemaKinds.td8443 "this function cannot be a coroutine: %q0 has no member named 'promise_type'">;