[libcxx-commits] [libcxx] 553ae2f - [libc++] Remove outdated _LIBCPP_CLANG_VER check (#71759)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Nov 9 11:09:42 PST 2023
Author: Louis Dionne
Date: 2023-11-09T09:09:39-10:00
New Revision: 553ae2f86667c35c5ee4a3824c910db1cb615507
URL: https://github.com/llvm/llvm-project/commit/553ae2f86667c35c5ee4a3824c910db1cb615507
DIFF: https://github.com/llvm/llvm-project/commit/553ae2f86667c35c5ee4a3824c910db1cb615507.diff
LOG: [libc++] Remove outdated _LIBCPP_CLANG_VER check (#71759)
We always use Clang >= 16 now, so the check for Clang >= 14 is
tautological. As a drive-by, clang-format the header.
Added:
Modified:
libcxx/include/__atomic/atomic_init.h
libcxx/utils/data/ignore_format.txt
Removed:
################################################################################
diff --git a/libcxx/include/__atomic/atomic_init.h b/libcxx/include/__atomic/atomic_init.h
index 14310aee10c11db..8ef5958bfedaa9f 100644
--- a/libcxx/include/__atomic/atomic_init.h
+++ b/libcxx/include/__atomic/atomic_init.h
@@ -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)
+#endif
#endif // _LIBCPP___ATOMIC_ATOMIC_INIT_H
diff --git a/libcxx/utils/data/ignore_format.txt b/libcxx/utils/data/ignore_format.txt
index 123d06d56e29a5b..48b3c04adb54238 100644
--- a/libcxx/utils/data/ignore_format.txt
+++ b/libcxx/utils/data/ignore_format.txt
@@ -89,7 +89,6 @@ libcxx/include/array
libcxx/include/__atomic/atomic_base.h
libcxx/include/__atomic/atomic_flag.h
libcxx/include/__atomic/atomic.h
-libcxx/include/__atomic/atomic_init.h
libcxx/include/__atomic/atomic_lock_free.h
libcxx/include/__atomic/atomic_sync.h
libcxx/include/__atomic/check_memory_order.h
More information about the libcxx-commits
mailing list