[libcxx-commits] [libcxx] 275ff33 - [libc++][test] _VSTD => std:: in test code
Casey Carter via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 9 15:09:34 PST 2023
Author: Casey Carter
Date: 2023-01-09T15:09:20-08:00
New Revision: 275ff33abf22689b8eef15a2d03d0025ba35a9c2
URL: https://github.com/llvm/llvm-project/commit/275ff33abf22689b8eef15a2d03d0025ba35a9c2
DIFF: https://github.com/llvm/llvm-project/commit/275ff33abf22689b8eef15a2d03d0025ba35a9c2.diff
LOG: [libc++][test] _VSTD => std:: in test code
No `_VSTD` allowed in test code!
Differential Revision: https://reviews.llvm.org/D141269
Added:
Modified:
libcxx/test/std/language.support/cmp/cmp.alg/compare_strong_order_fallback.pass.cpp
libcxx/test/std/language.support/cmp/cmp.alg/compare_weak_order_fallback.pass.cpp
libcxx/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/language.support/cmp/cmp.alg/compare_strong_order_fallback.pass.cpp b/libcxx/test/std/language.support/cmp/cmp.alg/compare_strong_order_fallback.pass.cpp
index 5f3800603f7e6..2ad05cb1ec6dd 100644
--- a/libcxx/test/std/language.support/cmp/cmp.alg/compare_strong_order_fallback.pass.cpp
+++ b/libcxx/test/std/language.support/cmp/cmp.alg/compare_strong_order_fallback.pass.cpp
@@ -348,10 +348,10 @@ constexpr bool test_1_3()
// at compile-time, so the NAN-related tests must be runtime-only.
if (!std::is_constant_evaluated()) {
- F nq = _VSTD::copysign(std::numeric_limits<F>::quiet_NaN(), F(-1));
- F ns = _VSTD::copysign(std::numeric_limits<F>::signaling_NaN(), F(-1));
- F ps = _VSTD::copysign(std::numeric_limits<F>::signaling_NaN(), F(+1));
- F pq = _VSTD::copysign(std::numeric_limits<F>::quiet_NaN(), F(+1));
+ F nq = std::copysign(std::numeric_limits<F>::quiet_NaN(), F(-1));
+ F ns = std::copysign(std::numeric_limits<F>::signaling_NaN(), F(-1));
+ F ps = std::copysign(std::numeric_limits<F>::signaling_NaN(), F(+1));
+ F pq = std::copysign(std::numeric_limits<F>::quiet_NaN(), F(+1));
assert(std::compare_strong_order_fallback(nq, nq) == std::strong_ordering::equal);
#ifndef TEST_BUGGY_SIGNALING_NAN
diff --git a/libcxx/test/std/language.support/cmp/cmp.alg/compare_weak_order_fallback.pass.cpp b/libcxx/test/std/language.support/cmp/cmp.alg/compare_weak_order_fallback.pass.cpp
index a6575b1d81773..65674b4006fc8 100644
--- a/libcxx/test/std/language.support/cmp/cmp.alg/compare_weak_order_fallback.pass.cpp
+++ b/libcxx/test/std/language.support/cmp/cmp.alg/compare_weak_order_fallback.pass.cpp
@@ -347,10 +347,10 @@ constexpr bool test_1_3()
// at compile-time, so the NAN-related tests must be runtime-only.
if (!std::is_constant_evaluated()) {
- F nq = _VSTD::copysign(std::numeric_limits<F>::quiet_NaN(), F(-1));
- F ns = _VSTD::copysign(std::numeric_limits<F>::signaling_NaN(), F(-1));
- F ps = _VSTD::copysign(std::numeric_limits<F>::signaling_NaN(), F(+1));
- F pq = _VSTD::copysign(std::numeric_limits<F>::quiet_NaN(), F(+1));
+ F nq = std::copysign(std::numeric_limits<F>::quiet_NaN(), F(-1));
+ F ns = std::copysign(std::numeric_limits<F>::signaling_NaN(), F(-1));
+ F ps = std::copysign(std::numeric_limits<F>::signaling_NaN(), F(+1));
+ F pq = std::copysign(std::numeric_limits<F>::quiet_NaN(), F(+1));
assert(std::compare_weak_order_fallback(nq, nq) == std::weak_ordering::equivalent);
assert(std::compare_weak_order_fallback(nq, ns) == std::weak_ordering::equivalent);
diff --git a/libcxx/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp b/libcxx/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp
index 08fb15927aea8..1bf833b151dd3 100644
--- a/libcxx/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp
+++ b/libcxx/test/std/utilities/function.objects/func.not_fn/not_fn.pass.cpp
@@ -396,7 +396,7 @@ bool call_operator_noexcept_test()
using T = NoExceptCallable<bool>;
T value(true);
auto ret = std::not_fn(value);
- LIBCPP_STATIC_ASSERT(noexcept(!_VSTD::__invoke(value)), "");
+ LIBCPP_STATIC_ASSERT(noexcept(!std::__invoke(value)), "");
#if TEST_STD_VER > 14
static_assert(noexcept(!std::invoke(value)), "");
#endif
More information about the libcxx-commits
mailing list