llvm-project/libcxx/test/std/algorithms
Arthur O'Dwyer be4c657b01 [libc++] Consistently replace `::new(__p) T` with `::new ((void*)__p) T`. NFCI.
Everywhere, normalize the whitespace to `::new (EXPR) T`.
Everywhere, normalize the spelling of the cast to `(void*)EXPR`.

Without the cast to `(void*)`, the expression triggers ADL on GCC.
(I think this is a GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98249)
Even if it doesn't trigger ADL, it still seems incorrect to use any argument
that's not exactly `(void*)` because that opens the possibility of overload
resolution picking a user-defined overload of `operator new`, which would be
wrong.

Differential Revision: https://reviews.llvm.org/D93153
2020-12-14 12:08:34 -05:00
..
alg.c.library Support tests in freestanding 2019-02-04 20:31:13 +00:00
alg.modifying.operations [libc++] s/constpexr/constexpr/ in some comments. NFC. 2020-11-27 18:53:08 -05:00
alg.nonmodifying [libc++] s/constpexr/constexpr/ in some comments. NFC. 2020-11-27 18:53:08 -05:00
alg.sorting [libc++] [P0202] constexpr set_union, set_difference, set_symmetric_difference, merge 2020-12-04 17:53:54 -05:00
algorithms.general Support tests in freestanding 2019-02-04 20:31:13 +00:00
robust_against_adl.pass.cpp [libc++] Mark my new <algorithm> test unsupported on clang-8. 2020-12-08 17:25:23 -05:00
robust_against_adl_on_new.pass.cpp [libc++] Consistently replace `::new(__p) T` with `::new ((void*)__p) T`. NFCI. 2020-12-14 12:08:34 -05:00