[C++20] [Coroutines] Conform the updates for CWG issue 2585
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Wed, 25 May 2022 02:30:32 +0000 (10:30 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Wed, 25 May 2022 02:31:26 +0000 (10:31 +0800)
commita1ffba8d528681d55c901a997beedbc69946eb90
tree035648f96a1760ad569065cfb2c826cba25ff784
parent269e3f7369d2286a1e711a7fa0442ca64817ff9f
[C++20] [Coroutines] Conform the updates for CWG issue 2585

According to the updates in CWG issue 2585
https://cplusplus.github.io/CWG/issues/2585.html, we shouldn't find an
allocation function with (size, p0, …, pn) in global scope.

Reviewed By: erichkeane

Differential Revision: https://reviews.llvm.org/D126187
clang/docs/ReleaseNotes.rst
clang/lib/Sema/SemaCoroutine.cpp
clang/test/CodeGenCoroutines/coro-alloc-2.cpp [new file with mode: 0644]