[libcxx-commits] [libcxx] [llvm] [libc++] Deprecate and remove meaningless `<cxxx>` headers (PR #111615)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 14 00:30:23 PDT 2024


================
@@ -23,4 +23,17 @@
 #  pragma GCC system_header
 #endif
 
+#if _LIBCPP_STD_VER >= 17
+#  if _LIBCPP_STD_VER >= 20
+#    define _DEPRECATION_ANNOTATION _LIBCPP_DEPRECATED_("removed in C++20")
+#  else
+#    define _DEPRECATION_ANNOTATION _LIBCPP_DEPRECATED
+#  endif
+
+using __standard_header_ccomplex _DEPRECATION_ANNOTATION = void;
+using __use_standard_header_ccomplex                     = __standard_header_ccomplex;
+
+#  undef _DEPRECATION_ANNOTATION
+#endif
----------------
philnik777 wrote:

Yeah, we should probably slap a `&& !defined(_LIBCPP_DISABLE_DEPRECATION_WARNINGS)` at the end.

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


More information about the libcxx-commits mailing list