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
..
2021-06-01 14:45:25 -04:00
2021-01-21 20:45:54 -08:00
2013-12-20 00:21:47 +00:00
2019-08-23 22:51:23 +00:00
2018-02-02 14:13:37 +00:00
2017-04-27 13:47:03 +00:00
2017-10-16 23:43:02 +00:00
2018-08-03 01:21:16 +00:00
2015-08-05 17:23:59 +00:00
2019-11-18 11:09:23 +01:00
2013-08-12 12:51:05 +00:00
2015-08-05 17:23:59 +00:00
2019-05-10 17:57:22 +00:00
2015-06-26 05:28:36 +00:00
2017-12-11 18:14:51 +00:00
2015-11-20 03:36:21 +00:00
2017-03-10 15:04:58 +00:00
2018-08-23 09:48:11 +00:00
2015-07-07 03:58:14 +00:00
2014-02-02 15:28:46 +00:00
2017-12-11 18:14:51 +00:00
2018-04-24 08:39:46 +00:00
2017-12-11 18:14:51 +00:00
2018-01-03 14:35:48 +00:00
2015-07-07 03:58:14 +00:00
2013-08-12 12:51:05 +00:00
2013-09-25 00:14:38 +00:00
2015-08-10 20:33:56 +00:00
2019-03-13 16:16:54 +00:00
2018-11-12 02:44:33 +00:00
2016-04-27 12:48:25 +00:00
2016-05-31 23:22:04 +00:00
2017-12-11 18:14:51 +00:00
2015-08-05 17:23:59 +00:00
2015-08-05 17:23:59 +00:00
2013-07-18 14:23:12 +00:00
2015-08-05 17:23:59 +00:00
2016-01-06 15:12:51 +00:00
2017-09-08 09:31:13 +00:00
2014-10-22 09:50:23 +00:00
2017-11-16 01:28:25 +00:00
2014-04-27 22:53:03 +00:00
2015-08-05 17:23:59 +00:00
2014-10-15 16:18:20 +00:00
2013-08-23 18:03:40 +00:00
2019-04-08 19:52:45 +00:00
2018-04-12 16:00:05 +00:00
2019-08-13 18:11:44 +00:00
2017-08-17 13:41:55 +00:00
2019-12-21 14:52:21 +01:00
2019-04-08 19:52:45 +00:00
2019-12-21 14:52:21 +01:00
2018-07-30 15:19:05 +00:00
2018-10-22 08:47:31 +00:00
2018-05-17 09:21:07 +00:00
2018-06-13 12:37:08 +00:00
2014-10-18 06:23:50 +00:00
2017-07-17 17:31:44 +00:00
2018-11-20 22:06:54 +00:00
2018-11-20 22:06:54 +00:00
2019-04-04 11:34:18 +00:00
2017-01-23 17:23:23 +00:00
2018-06-21 12:39:24 +00:00
2017-09-08 10:23:08 +00:00
2018-11-01 15:54:18 +00:00
2018-11-01 15:54:18 +00:00
2017-01-03 11:56:40 +00:00
2013-08-12 12:51:05 +00:00
2013-08-12 12:51:05 +00:00
2013-08-12 12:51:05 +00:00
2019-07-13 06:27:35 +00:00
2018-01-22 20:44:47 +00:00
2015-01-28 14:17:22 +00:00
2017-11-14 01:46:24 +00:00
2016-12-08 16:49:05 +00:00
2019-07-18 07:17:49 +00:00
2019-07-18 07:17:49 +00:00
2018-11-20 22:06:54 +00:00
2020-06-25 13:58:27 -04:00
2014-09-30 20:00:18 +00:00
2015-11-20 03:36:21 +00:00
2016-07-27 14:56:59 +00:00
2017-01-24 14:15:08 +00:00
2017-07-19 10:45:40 +00:00
2020-06-25 13:58:27 -04:00
2018-09-19 09:34:55 +00:00
2015-08-05 17:23:59 +00:00
2015-01-28 14:17:22 +00:00
2015-12-15 09:30:31 +00:00
2017-02-13 16:16:43 +00:00
2021-05-27 08:57:47 -04:00
2018-11-20 22:06:54 +00:00
2015-10-22 18:38:17 +00:00
2019-07-18 16:24:09 +00:00
2017-09-22 19:07:37 +00:00
2016-07-27 14:56:59 +00:00
2019-06-04 09:26:08 +00:00
2017-10-24 13:46:58 +00:00
2016-07-27 14:56:59 +00:00
2020-11-23 11:08:28 +01:00
2015-01-15 02:27:20 +00:00
2018-10-15 12:37:23 +00:00
2018-11-07 10:02:31 +00:00
2018-08-03 01:21:16 +00:00
2021-09-03 10:22:55 +08:00
2018-02-02 08:40:08 +00:00
2017-04-15 05:53:49 +00:00
2019-09-13 22:12:27 +00:00
2017-04-15 05:53:49 +00:00
2017-04-15 05:53:49 +00:00
2018-04-07 00:03:27 +00:00
2018-04-07 00:03:27 +00:00
2013-07-04 16:16:58 +00:00
2017-06-27 10:35:30 +00:00
2017-04-27 17:23:04 +00:00
2018-12-19 13:44:41 +00:00
2020-09-22 02:32:09 -04:00
2020-05-02 22:18:36 +02:00
2020-05-02 22:18:31 +02:00
2021-03-12 20:11:26 +00:00
2020-08-05 13:54:37 +01:00
2020-07-08 13:10:16 -07:00
2017-03-10 15:04:58 +00:00
2015-09-24 01:21:01 +00:00
2014-10-22 09:50:23 +00:00
2017-12-11 18:14:51 +00:00
2015-03-13 04:40:07 +00:00
2018-05-11 19:46:31 +00:00
2017-05-10 15:10:36 +00:00
2020-05-11 08:46:18 +02:00
2018-04-06 15:14:32 +00:00
2020-10-16 09:51:13 +02:00
2017-12-11 18:14:51 +00:00
2019-06-11 14:14:24 +00:00
2019-06-11 14:14:24 +00:00
2021-02-08 13:14:43 +01:00
2019-05-29 10:11:14 +00:00
2017-05-24 14:57:17 +00:00
2017-05-24 14:57:17 +00:00
2018-08-03 05:03:22 +00:00
2017-02-17 04:49:41 +00:00
2020-05-21 09:47:36 +02:00
2016-04-27 12:48:25 +00:00
2015-07-13 23:27:56 +00:00
2018-10-04 11:03:55 +00:00
2019-05-10 17:57:22 +00:00
2019-05-10 17:57:22 +00:00
2019-12-03 15:44:01 -08:00
2017-05-28 21:07:22 +00:00
2014-06-21 18:28:44 +00:00
2015-08-18 20:39:29 +00:00
2017-10-06 23:09:55 +00:00
2019-02-18 11:30:43 +00:00
2016-03-09 02:12:46 +00:00
2018-02-12 17:42:09 +00:00
2018-09-23 08:23:48 +00:00
2017-10-10 21:09:49 +00:00
2019-10-01 14:08:51 +00:00
2018-12-07 20:29:54 +00:00
2019-03-07 10:13:50 +00:00
2019-03-07 10:13:50 +00:00
2017-05-04 13:56:51 +00:00
2017-07-01 00:06:27 +00:00
2019-08-13 13:38:15 +00:00
2017-12-14 22:01:50 +00:00
2014-02-02 15:28:46 +00:00
2014-02-02 15:28:46 +00:00
2016-11-04 12:04:16 +00:00
2015-02-26 18:29:41 +00:00
2014-03-03 19:40:52 +00:00
2019-04-29 22:57:15 +00:00
2019-02-27 01:37:43 +00:00
2015-12-12 02:17:54 +00:00
2020-12-07 17:19:20 -05:00
2018-08-03 03:03:20 +00:00
2021-03-12 20:11:26 +00:00
2021-02-16 09:45:07 -08:00
2018-05-16 12:58:13 +00:00
2017-04-11 16:46:03 +00:00
2018-05-01 20:45:25 +00:00
2021-02-08 09:42:44 +01:00
2015-08-09 08:48:41 +00:00
2020-12-12 15:09:17 -05:00
2016-07-13 22:03:47 +00:00
2016-07-13 20:35:26 +00:00
2016-07-13 20:35:26 +00:00
2020-03-31 13:50:12 -07:00
2013-08-07 21:17:33 +00:00
2015-07-08 01:00:30 +00:00
2018-04-27 10:37:04 +00:00
2016-10-27 08:37:14 +00:00
2016-10-27 08:37:14 +00:00
2019-12-03 21:21:27 +01:00
2014-10-10 20:01:05 +00:00
2017-08-21 12:03:08 +00:00
2017-09-12 08:35:57 +00:00
2017-11-03 09:40:07 +00:00
2017-11-03 09:40:07 +00:00
2017-08-21 12:03:08 +00:00
2021-07-24 07:55:10 -04:00
2013-12-05 20:13:27 +00:00
2014-03-10 06:02:13 +00:00
2014-03-10 06:02:13 +00:00
2013-12-05 20:13:27 +00:00
2016-02-11 17:04:42 +00:00
2014-03-07 07:47:58 +00:00
2016-02-06 22:36:34 +00:00
2019-11-15 10:40:38 +01:00
2015-10-08 00:01:20 +00:00
2017-09-22 16:58:57 +00:00
2013-12-12 16:07:11 +00:00
2017-07-12 11:35:11 +00:00
2019-05-07 14:40:37 +00:00
2019-02-26 15:04:18 +00:00
2021-02-22 14:16:43 -08:00
2021-09-02 15:04:34 -07:00
2019-01-24 00:11:35 +00:00
2016-07-01 19:10:54 +00:00
2018-08-03 05:38:29 +00:00
2017-07-07 10:25:12 +00:00
2017-12-07 20:37:50 +00:00
2017-12-05 23:04:12 +00:00
2017-10-06 17:54:46 +00:00
2017-03-10 15:04:58 +00:00
2013-12-05 20:13:27 +00:00
2013-12-05 20:13:27 +00:00
2016-04-20 01:02:18 +00:00
2014-08-18 19:32:45 +00:00
2018-03-13 00:41:44 +00:00
2016-04-20 01:02:18 +00:00
2019-08-27 22:15:32 +00:00
2017-06-21 18:52:44 +00:00
2017-12-28 13:05:46 +00:00
2017-12-20 14:32:38 +00:00
2018-10-24 08:29:24 +00:00
2017-12-14 14:51:17 +00:00
2017-09-11 20:47:42 +00:00
2013-08-19 07:13:02 +00:00
2021-03-15 17:33:02 -04:00
2017-04-28 15:56:39 +00:00
2013-08-12 12:51:05 +00:00
2015-08-05 17:52:57 +00:00
2014-12-08 08:48:33 +00:00
2019-02-26 14:23:12 +00:00
2017-07-01 20:44:49 +00:00
2015-09-05 18:53:43 +00:00
2019-11-09 17:54:58 +01:00