[libcxx][NFC] Strip trailing whitespace, fix typo.
diff --git a/libcxx/test/std/numerics/bit/bit.pow.two/floor2.pass.cpp b/libcxx/test/std/numerics/bit/bit.pow.two/floor2.pass.cpp
index 9b4251c..2a514f3 100644
--- a/libcxx/test/std/numerics/bit/bit.pow.two/floor2.pass.cpp
+++ b/libcxx/test/std/numerics/bit/bit.pow.two/floor2.pass.cpp
@@ -48,7 +48,7 @@
{
ASSERT_SAME_TYPE(T, decltype(std::floor2(T(0))));
ASSERT_NOEXCEPT( std::floor2(T(0)));
-
+
assert( std::floor2(T(121)) == T(64));
assert( std::floor2(T(122)) == T(64));
assert( std::floor2(T(123)) == T(64));
@@ -63,7 +63,7 @@
int main()
{
-
+
{
auto lambda = [](auto x) -> decltype(std::floor2(x)) {};
using L = decltype(lambda);
diff --git a/libcxx/test/std/numerics/bit/bit.pow.two/ispow2.pass.cpp b/libcxx/test/std/numerics/bit/bit.pow.two/ispow2.pass.cpp
index 6d60539..d9442ec 100644
--- a/libcxx/test/std/numerics/bit/bit.pow.two/ispow2.pass.cpp
+++ b/libcxx/test/std/numerics/bit/bit.pow.two/ispow2.pass.cpp
@@ -46,7 +46,7 @@
{
ASSERT_SAME_TYPE(bool, decltype(std::ispow2(T(0))));
ASSERT_NOEXCEPT( std::ispow2(T(0)));
-
+
assert(!std::ispow2(T(121)));
assert(!std::ispow2(T(122)));
assert(!std::ispow2(T(123)));
@@ -61,7 +61,7 @@
int main()
{
-
+
{
auto lambda = [](auto x) -> decltype(std::ispow2(x)) {};
using L = decltype(lambda);
@@ -158,5 +158,5 @@
assert(!std::ispow2(val+1));
}
#endif
-
+
}
diff --git a/libcxx/test/std/numerics/bit/bit.pow.two/log2p1.pass.cpp b/libcxx/test/std/numerics/bit/bit.pow.two/log2p1.pass.cpp
index 55df3f1..bf39838 100644
--- a/libcxx/test/std/numerics/bit/bit.pow.two/log2p1.pass.cpp
+++ b/libcxx/test/std/numerics/bit/bit.pow.two/log2p1.pass.cpp
@@ -48,7 +48,7 @@
{
ASSERT_SAME_TYPE(T, decltype(std::log2p1(T(0))));
ASSERT_NOEXCEPT( std::log2p1(T(0)));
-
+
assert( std::log2p1(T(0)) == T(0));
assert( std::log2p1(T(1)) == T(1));
assert( std::log2p1(T(2)) == T(2));
@@ -75,7 +75,7 @@
int main()
{
-
+
{
auto lambda = [](auto x) -> decltype(std::log2p1(x)) {};
using L = decltype(lambda);
diff --git a/libcxx/test/std/numerics/bit/bitops.count/countl_one.pass.cpp b/libcxx/test/std/numerics/bit/bitops.count/countl_one.pass.cpp
index f7d837e..7a40a19 100644
--- a/libcxx/test/std/numerics/bit/bitops.count/countl_one.pass.cpp
+++ b/libcxx/test/std/numerics/bit/bitops.count/countl_one.pass.cpp
@@ -53,7 +53,7 @@
ASSERT_SAME_TYPE(int, decltype(std::countl_one(T(0))));
ASSERT_NOEXCEPT( std::countl_one(T(0)));
const int dig = std::numeric_limits<T>::digits;
-
+
assert( std::countl_one(T(~121)) == dig - 7);
assert( std::countl_one(T(~122)) == dig - 7);
assert( std::countl_one(T(~123)) == dig - 7);
diff --git a/libcxx/test/std/numerics/bit/bitops.count/countl_zero.pass.cpp b/libcxx/test/std/numerics/bit/bitops.count/countl_zero.pass.cpp
index d984f4d..106ab35 100644
--- a/libcxx/test/std/numerics/bit/bitops.count/countl_zero.pass.cpp
+++ b/libcxx/test/std/numerics/bit/bitops.count/countl_zero.pass.cpp
@@ -53,7 +53,7 @@
ASSERT_SAME_TYPE(int, decltype(std::countl_zero(T(0))));
ASSERT_NOEXCEPT( std::countl_zero(T(0)));
const int dig = std::numeric_limits<T>::digits;
-
+
assert( std::countl_zero(T(121)) == dig - 7);
assert( std::countl_zero(T(122)) == dig - 7);
assert( std::countl_zero(T(123)) == dig - 7);
@@ -68,7 +68,7 @@
int main()
{
-
+
{
auto lambda = [](auto x) -> decltype(std::countl_zero(x)) {};
using L = decltype(lambda);
diff --git a/libcxx/test/std/numerics/bit/bitops.count/countr_one.pass.cpp b/libcxx/test/std/numerics/bit/bitops.count/countr_one.pass.cpp
index 96d1a93..1bc1db3 100644
--- a/libcxx/test/std/numerics/bit/bitops.count/countr_one.pass.cpp
+++ b/libcxx/test/std/numerics/bit/bitops.count/countr_one.pass.cpp
@@ -52,7 +52,7 @@
{
ASSERT_SAME_TYPE(int, decltype(std::countr_one(T(0))));
ASSERT_NOEXCEPT( std::countr_one(T(0)));
-
+
assert( std::countr_one(T(121)) == 1);
assert( std::countr_one(T(122)) == 0);
assert( std::countr_one(T(123)) == 2);
@@ -67,7 +67,7 @@
int main()
{
-
+
{
auto lambda = [](auto x) -> decltype(std::countr_one(x)) {};
using L = decltype(lambda);
diff --git a/libcxx/test/std/numerics/bit/bitops.count/countr_zero.pass.cpp b/libcxx/test/std/numerics/bit/bitops.count/countr_zero.pass.cpp
index 730b645..0fe4037 100644
--- a/libcxx/test/std/numerics/bit/bitops.count/countr_zero.pass.cpp
+++ b/libcxx/test/std/numerics/bit/bitops.count/countr_zero.pass.cpp
@@ -52,7 +52,7 @@
{
ASSERT_SAME_TYPE(int, decltype(std::countr_zero(T(0))));
ASSERT_NOEXCEPT( std::countr_zero(T(0)));
-
+
assert( std::countr_zero(T(121)) == 0);
assert( std::countr_zero(T(122)) == 1);
assert( std::countr_zero(T(123)) == 0);
@@ -67,7 +67,7 @@
int main()
{
-
+
{
auto lambda = [](auto x) -> decltype(std::countr_zero(x)) {};
using L = decltype(lambda);
diff --git a/libcxx/test/std/numerics/bit/bitops.count/popcount.pass.cpp b/libcxx/test/std/numerics/bit/bitops.count/popcount.pass.cpp
index adc044c..24fe37a 100644
--- a/libcxx/test/std/numerics/bit/bitops.count/popcount.pass.cpp
+++ b/libcxx/test/std/numerics/bit/bitops.count/popcount.pass.cpp
@@ -50,7 +50,7 @@
{
ASSERT_SAME_TYPE(int, decltype(std::popcount(T(0))));
ASSERT_NOEXCEPT( std::popcount(T(0)));
-
+
assert( std::popcount(T(121)) == 5);
assert( std::popcount(T(122)) == 5);
assert( std::popcount(T(123)) == 6);
@@ -65,7 +65,7 @@
int main()
{
-
+
{
auto lambda = [](auto x) -> decltype(std::popcount(x)) {};
using L = decltype(lambda);
diff --git a/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/ctor.fail.cpp b/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/ctor.fail.cpp
index afde185..fe7808b 100644
--- a/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/ctor.fail.cpp
+++ b/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/ctor.fail.cpp
@@ -25,8 +25,8 @@
{
{
std::optional<char &> o1; // expected-error-re@optional:* {{static_assert failed{{.*}} "instantiation of optional with a reference type is ill-formed"}}
- std::optional<NonDestructible> o2; // expected-error-re@optional:* {{static_assert failed{{.*}} "instantiation of optional with a non-destructible type is ill-formed"}}
- std::optional<char[20]> o3; // expected-error-re@optional:* {{static_assert failed{{.*}} "instantiation of optional with an array type is ill-formed"}}
+ std::optional<NonDestructible> o2; // expected-error-re@optional:* {{static_assert failed{{.*}} "instantiation of optional with a non-destructible type is ill-formed"}}
+ std::optional<char[20]> o3; // expected-error-re@optional:* {{static_assert failed{{.*}} "instantiation of optional with an array type is ill-formed"}}
}
{
diff --git a/libcxx/test/std/utilities/time/time.hms/time.12/is_am.pass.cpp b/libcxx/test/std/utilities/time/time.hms/time.12/is_am.pass.cpp
index f10707b..f228020 100644
--- a/libcxx/test/std/utilities/time/time.hms/time.12/is_am.pass.cpp
+++ b/libcxx/test/std/utilities/time/time.hms/time.12/is_am.pass.cpp
@@ -26,7 +26,7 @@
static_assert( std::chrono::is_am(hours(11)), "");
static_assert(!std::chrono::is_am(hours(12)), "");
static_assert(!std::chrono::is_am(hours(23)), "");
-
+
for (int i = 0; i < 12; ++i)
assert( std::chrono::is_am(hours(i)));
for (int i = 12; i < 24; ++i)
diff --git a/libcxx/test/std/utilities/time/time.hms/time.hms.members/is_negative.pass.cpp b/libcxx/test/std/utilities/time/time.hms/time.hms.members/is_negative.pass.cpp
index 94eb8be..0220115 100644
--- a/libcxx/test/std/utilities/time/time.hms/time.hms.members/is_negative.pass.cpp
+++ b/libcxx/test/std/utilities/time/time.hms/time.hms.members/is_negative.pass.cpp
@@ -29,10 +29,10 @@
int main(int, char**)
{
using microfortnights = std::chrono::duration<int, std::ratio<756, 625>>;
-
+
static_assert(!check_neg(std::chrono::minutes( 1)), "");
static_assert( check_neg(std::chrono::minutes(-1)), "");
-
+
assert(!check_neg(std::chrono::seconds( 5000)));
assert( check_neg(std::chrono::seconds(-5000)));
assert(!check_neg(std::chrono::minutes( 5000)));
diff --git a/libcxx/test/std/utilities/time/time.hms/time.hms.members/precision.pass.cpp b/libcxx/test/std/utilities/time/time.hms/time.hms.members/precision.pass.cpp
index e3dc30e..ba20882 100644
--- a/libcxx/test/std/utilities/time/time.hms/time.hms.members/precision.pass.cpp
+++ b/libcxx/test/std/utilities/time/time.hms/time.hms.members/precision.pass.cpp
@@ -45,7 +45,7 @@
1000000000000000000ULL,
10000000000000000000ULL
};
-
+
template <typename Duration, unsigned width>
constexpr bool check_precision()
{
diff --git a/libcxx/test/std/utilities/time/time.hms/time.hms.members/precision_type.pass.cpp b/libcxx/test/std/utilities/time/time.hms/time.hms.members/precision_type.pass.cpp
index e3dc30e..ba20882 100644
--- a/libcxx/test/std/utilities/time/time.hms/time.hms.members/precision_type.pass.cpp
+++ b/libcxx/test/std/utilities/time/time.hms/time.hms.members/precision_type.pass.cpp
@@ -45,7 +45,7 @@
1000000000000000000ULL,
10000000000000000000ULL
};
-
+
template <typename Duration, unsigned width>
constexpr bool check_precision()
{