Volodymyr Sapsai
dea80d5174
Emit an error when mixing <stdatomic.h> and <atomic>
...
Atomics in C and C++ are incompatible at the moment and mixing the
headers can result in confusing error messages.
Emit an error explicitly telling about the incompatibility. Introduce
the macro `__ALLOW_STDC_ATOMICS_IN_CXX__` that allows to choose in C++
between C atomics and C++ atomics.
rdar://problem/27435938
Reviewers: rsmith, EricWF, mclow.lists
Reviewed By: mclow.lists
Subscribers: jkorous-apple, christof, bumblebritches57, JonChesterfield, smeenai, cfe-commits
Differential Revision: https://reviews.llvm.org/D45470
llvm-svn: 331379
2018-05-02 17:56:45 +00:00
..
2018-04-23 21:54:06 +00:00
2017-05-10 21:40:58 +00:00
2018-04-13 18:14:57 +00:00
2017-05-31 22:07:49 +00:00
2017-08-03 02:50:43 +00:00
2017-08-03 02:50:43 +00:00
2018-04-19 22:12:10 +00:00
2018-01-05 20:48:29 +00:00
2017-01-16 21:01:00 +00:00
2018-04-25 23:38:41 +00:00
2018-01-02 19:01:45 +00:00
2018-01-08 22:57:12 +00:00
2018-01-03 15:40:29 +00:00
2018-04-13 18:14:57 +00:00
2018-01-02 19:23:30 +00:00
2017-05-31 22:07:49 +00:00
2018-03-22 04:42:56 +00:00
2017-05-31 22:07:49 +00:00
2018-02-06 18:58:05 +00:00
2018-02-21 21:36:18 +00:00
2017-08-18 12:57:36 +00:00
2017-04-19 01:23:39 +00:00
2017-05-31 22:07:49 +00:00
2018-02-06 18:58:05 +00:00
2017-04-12 22:51:27 +00:00
2018-02-07 23:50:25 +00:00
2018-05-02 17:56:45 +00:00
2017-11-27 22:27:22 +00:00
2018-01-02 17:17:01 +00:00
2018-04-09 04:36:04 +00:00
2017-07-07 05:13:36 +00:00
2018-04-07 04:28:11 +00:00
2018-02-19 15:41:36 +00:00
2017-03-02 03:22:18 +00:00
2017-11-14 01:14:53 +00:00
2017-04-07 02:20:52 +00:00
2017-04-06 04:47:49 +00:00
2017-05-10 20:57:45 +00:00
2017-11-15 05:51:26 +00:00
2017-10-09 19:25:17 +00:00
2017-11-15 05:51:26 +00:00
2018-01-23 02:07:27 +00:00
2018-04-25 23:38:41 +00:00
2018-03-20 22:37:37 +00:00
2017-04-18 23:09:36 +00:00
2018-02-14 00:29:38 +00:00
2018-01-11 23:23:49 +00:00
2017-12-11 13:54:58 +00:00
2017-06-01 02:29:37 +00:00
2018-01-25 00:02:48 +00:00
2018-03-29 01:18:53 +00:00
2018-02-10 02:53:47 +00:00
2018-05-01 03:05:40 +00:00
2018-03-22 04:42:56 +00:00
2018-04-23 21:54:06 +00:00
2018-01-02 17:17:01 +00:00
2018-03-22 04:42:56 +00:00
2018-01-05 01:31:57 +00:00
2018-02-06 20:56:55 +00:00
2018-03-22 18:27:28 +00:00
2018-01-24 22:42:25 +00:00
2018-01-16 14:54:36 +00:00
2018-01-02 17:17:01 +00:00
2018-01-24 12:45:18 +00:00
2017-11-26 02:55:38 +00:00
2018-02-10 02:53:47 +00:00
2017-05-31 22:07:49 +00:00
2017-12-19 23:33:16 +00:00
2018-01-24 22:42:25 +00:00
2017-02-10 01:27:42 +00:00
2017-06-01 02:29:37 +00:00
2018-01-23 18:53:33 +00:00
2017-05-10 20:57:45 +00:00
2018-02-01 03:55:27 +00:00
2018-03-21 00:36:05 +00:00
2018-03-21 00:36:05 +00:00
2017-04-18 23:38:41 +00:00
2018-01-02 17:17:01 +00:00
2018-02-12 19:13:24 +00:00
2018-03-20 22:37:37 +00:00
2018-02-06 20:56:55 +00:00
2018-02-06 20:56:55 +00:00
2018-01-26 01:22:17 +00:00
2017-11-15 05:51:26 +00:00
2017-11-15 05:51:26 +00:00
2018-02-11 21:51:49 +00:00
2018-03-22 04:42:56 +00:00
2018-03-23 23:42:30 +00:00
2017-11-15 05:51:26 +00:00
2018-04-03 15:48:24 +00:00
2017-09-15 18:49:34 +00:00