forked from OSchip/llvm-project
![]() <string.h> and wcschr, wcspbrk, wcsrchr, wmemchr, and wcsstr from <wchar.h> to provide a const-correct overload set even when the underlying C library does not. This change adds a new macro, _LIBCPP_PREFERRED_OVERLOAD, which (if defined) specifies that a given overload is a better match than an otherwise equally good function declaration without the overload. This is implemented in modern versions of Clang via __attribute__((enable_if)), and not elsewhere. We use this new macro to define overloads in the global namespace for these functions that displace the overloads provided by the C library, unless we believe the C library is already providing the correct signatures. llvm-svn: 260337 |
||
---|---|---|
.. | ||
assert_h.pass.cpp | ||
ciso646.pass.cpp | ||
complex.h.pass.cpp | ||
ctype_h.pass.cpp | ||
errno_h.pass.cpp | ||
extern_c.pass.cpp | ||
fenv_h.pass.cpp | ||
float_h.pass.cpp | ||
inttypes_h.pass.cpp | ||
iso646_h.pass.cpp | ||
limits_h.pass.cpp | ||
locale_h.pass.cpp | ||
math_h.pass.cpp | ||
math_h_isinf.pass.cpp | ||
math_h_isnan.pass.cpp | ||
setjmp_h.pass.cpp | ||
signal_h.pass.cpp | ||
stdarg_h.pass.cpp | ||
stdbool_h.pass.cpp | ||
stddef_h.pass.cpp | ||
stdint_h.pass.cpp | ||
stdio_h.pass.cpp | ||
stdlib_h.pass.cpp | ||
string_h.pass.cpp | ||
tgmath_h.pass.cpp | ||
time_h.pass.cpp | ||
uchar_h.pass.cpp | ||
wchar_h.pass.cpp | ||
wctype_h.pass.cpp |