hanchenye-llvm-project/libcxx/test
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
..
libcxx Emit an error when mixing <stdatomic.h> and <atomic> 2018-05-02 17:56:45 +00:00
std Fix return type of isinf(double) and isnan(double) where possible. 2018-05-01 03:05:40 +00:00
support [libcxx] [test] Avoid unary_function. 2018-04-12 23:56:10 +00:00
CMakeLists.txt Allow passing additional compiler/linker flags for the tests 2018-02-23 15:19:48 +00:00
lit.cfg
lit.site.cfg.in Allow passing additional compiler/linker flags for the tests 2018-02-23 15:19:48 +00:00
nothing_to_do.pass.cpp