llvm-project/libcxx/test/std/depr/depr.c.headers
Richard Smith 5fd17ab1b0 Fix overload sets of strchr, strpbrk, strrchr, memchr and strstr from
<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
2016-02-10 00:59:02 +00:00
..
assert_h.pass.cpp
ciso646.pass.cpp
complex.h.pass.cpp
ctype_h.pass.cpp
errno_h.pass.cpp
extern_c.pass.cpp Fix use of libc++ <foo.h> headers from within an 'extern "C"' context in C++98. 2015-10-13 23:12:22 +00:00
fenv_h.pass.cpp
float_h.pass.cpp
inttypes_h.pass.cpp Split <inttypes.h> out of <cinttypes>. 2015-10-08 20:38:53 +00:00
iso646_h.pass.cpp
limits_h.pass.cpp
locale_h.pass.cpp Cleanup warnings in test/std/depr 2015-07-18 22:51:51 +00:00
math_h.pass.cpp Split <math.h> out of <cmath>. 2015-10-08 20:40:34 +00:00
math_h_isinf.pass.cpp Split <math.h> out of <cmath>. 2015-10-08 20:40:34 +00:00
math_h_isnan.pass.cpp Split <math.h> out of <cmath>. 2015-10-08 20:40:34 +00:00
setjmp_h.pass.cpp Split <setjmp.h> out of <csetjmp>. 2015-10-08 20:41:26 +00:00
signal_h.pass.cpp Cleanup warnings in test/std/depr 2015-07-18 22:51:51 +00:00
stdarg_h.pass.cpp Cleanup warnings in test/std/depr 2015-07-18 22:51:51 +00:00
stdbool_h.pass.cpp
stddef_h.pass.cpp Fix test failure in C++98 mode due to imperfect static_assert emulation. 2015-10-08 23:44:26 +00:00
stdint_h.pass.cpp std:: qualify ptrdiff_t in the test. Thanks to Walter for the catch 2015-11-10 16:04:13 +00:00
stdio_h.pass.cpp Split <stdio.h> out of <cstdio>. 2015-10-09 01:29:09 +00:00
stdlib_h.pass.cpp Split <stdlib.h> out of <cstdlib>. 2015-10-09 01:41:45 +00:00
string_h.pass.cpp Fix overload sets of strchr, strpbrk, strrchr, memchr and strstr from 2016-02-10 00:59:02 +00:00
tgmath_h.pass.cpp
time_h.pass.cpp Cleanup warnings in test/std/depr 2015-07-18 22:51:51 +00:00
uchar_h.pass.cpp [libcxx] Fixup a few fumbles in the initial no-exceptions XFAILs list. 2015-11-12 10:41:57 +00:00
wchar_h.pass.cpp Fix overload sets of strchr, strpbrk, strrchr, memchr and strstr from 2016-02-10 00:59:02 +00:00
wctype_h.pass.cpp