[libcxx-commits] [libcxx] [libc++][modules] Uses _LIBCPP_USING_IF_EXISTS. (PR #90409)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 1 09:16:49 PDT 2024


================
@@ -10,132 +10,132 @@
 export namespace std {
 
   // [atomics.order], order and consistency
-  using std::memory_order;
-  using std::memory_order_acq_rel;
-  using std::memory_order_acquire;
-  using std::memory_order_consume;
-  using std::memory_order_relaxed;
-  using std::memory_order_release;
-  using std::memory_order_seq_cst;
+  using std::memory_order _LIBCPP_USING_IF_EXISTS;
----------------
philnik777 wrote:

I looked at atomic, since the file is called `atomic.inc`, not `stdatomic.inc`. I guess I'm fine with it since it's marked as such in `stdatomic.h`. We should still audit the code base for unnecessary `_LIBCPP_USING_IF_EXISTS`.

https://github.com/llvm/llvm-project/pull/90409


More information about the libcxx-commits mailing list