llvm-project/clang/test/CodeGenCoroutines
Chuanqi Xu 2fbd254aa4 [Coroutines] [Clang] Look up coroutine component in std namespace first
Summary: Now in libcxx and clang, all the coroutine components are
defined in std::experimental namespace.
And now the coroutine TS is merged into C++20. So in the working draft
like N4892, we could find the coroutine components is defined in std
namespace instead of std::experimental namespace.
And the coroutine support in clang seems to be relatively stable. So I
think it may be suitable to move the coroutine component into the
experiment namespace now.

But move the coroutine component into the std namespace may be an break
change. So I planned to split this change into two patch. One in clang
and other in libcxx.

This patch would make clang lookup coroutine_traits in std namespace
first. For the compatibility consideration, clang would lookup in
std::experimental namespace if it can't find definitions in std
namespace and emit a warning in this case. So the existing codes
wouldn't be break after update compiler.

Test Plan: check-clang, check-libcxx

Reviewed By: lxfind

Differential Revision: https://reviews.llvm.org/D108696
2021-09-03 10:22:55 +08:00
..
Inputs [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-alloc.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-always-inline.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-await-domination.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-await-resume-eh.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-await.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-builtins-err.c
coro-builtins.c
coro-cleanup.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-dest-slot.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-dwarf.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-eh-cleanup.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-gro-nrvo.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-gro.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-lambda.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-newpm-pipeline.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-params.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-promise-dtor.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-ret-void.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-return-voidtype-initlist.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-return.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-symmetric-transfer-01.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-symmetric-transfer-02.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
coro-unhandled-exception.cpp [Coroutines] [Clang] Look up coroutine component in std namespace first 2021-09-03 10:22:55 +08:00
microsoft-abi-operator-coawait.cpp