[libc++] Remove a few __has_foo defines in __config (#90511)

All the compilers we support implement those macros or builtins, so it's
not useful to have a fallback to 0 when they're not implemented.
This commit is contained in:
Louis Dionne
2024-05-02 08:37:13 -06:00
committed by GitHub
parent e020e287c7
commit 46a5de69c0

View File

@@ -334,26 +334,16 @@ _LIBCPP_HARDENING_MODE_DEBUG
# define _LIBCPP_CXX03_LANG
# endif
# ifndef __has_attribute
# define __has_attribute(__x) 0
# endif
# ifndef __has_builtin
# define __has_builtin(__x) 0
# endif
// TODO: Remove once we switch to GCC 14
# ifndef __has_extension
# define __has_extension(__x) 0
# endif
// TODO: Remove once we switch to GCC 14
# ifndef __has_feature
# define __has_feature(__x) 0
# endif
# ifndef __has_cpp_attribute
# define __has_cpp_attribute(__x) 0
# endif
# ifndef __has_constexpr_builtin
# define __has_constexpr_builtin(x) 0
# endif
@@ -375,10 +365,6 @@ _LIBCPP_HARDENING_MODE_DEBUG
# define __has_keyword(__x) !(__is_identifier(__x))
# ifndef __has_include
# define __has_include(...) 0
# endif
# ifndef __has_warning
# define __has_warning(...) 0
# endif