[clang] [coroutines] Introduce [[clang::coro_return_type]] and [[clang::coro_wrapper]] (PR #71945)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 13 06:30:06 PST 2023
================
@@ -15811,6 +15813,32 @@ static void diagnoseImplicitlyRetainedSelf(Sema &S) {
<< FixItHint::CreateInsertion(P.first, "self->");
}
+// Return whether FD is `promise_type::get_return_object`.
+bool isGetReturnObject(FunctionDecl *FD) {
----------------
hokein wrote:
nit: this function is only used in this TU, add `static`
https://github.com/llvm/llvm-project/pull/71945
More information about the cfe-commits
mailing list