[libcxx-commits] [libcxx] [libc++] Remove outdated _LIBCPP_CLANG_VER check (PR #71759)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 8 22:13:35 PST 2023


================
@@ -15,13 +15,13 @@
 #  pragma GCC system_header
 #endif
 
-#define ATOMIC_FLAG_INIT {false}
-#define ATOMIC_VAR_INIT(__v) {__v}
+#define ATOMIC_FLAG_INIT                                                                                               \
+  { false }
+#define ATOMIC_VAR_INIT(__v)                                                                                           \
+  { __v }
 
 #if _LIBCPP_STD_VER >= 20 && !defined(_LIBCPP_DISABLE_DEPRECATION_WARNINGS)
-# if defined(_LIBCPP_CLANG_VER) && _LIBCPP_CLANG_VER >= 1400
 #  pragma clang deprecated(ATOMIC_VAR_INIT)
-# endif
 #endif // _LIBCPP_STD_VER >= 20 && !defined(_LIBCPP_DISABLE_DEPRECATION_WARNINGS)
----------------
AdvenamTacet wrote:

As it's only one line inside `#if` now, we can remove the comment after `#endif`. It doesn't make it easier to rad.

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


More information about the libcxx-commits mailing list