Skip to content

Commit f1418c9

Browse files
committed
review comments
1 parent 4288367 commit f1418c9

File tree

70 files changed

+104
-104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+104
-104
lines changed

libcxx/test/std/containers/container.adaptors/flat.map/flat.map.access/at.pass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ constexpr void test() {
5050
assert(m.at(4) == 4.5);
5151
assert(m.at(5) == 5.5);
5252
#ifndef TEST_HAS_NO_EXCEPTIONS
53-
if (!std::is_constant_evaluated()) {
53+
if (!TEST_IS_CONSTANT_EVALUATED) {
5454
try {
5555
TEST_IGNORE_NODISCARD m.at(6);
5656
assert(false);
@@ -73,7 +73,7 @@ constexpr void test() {
7373
assert(m.at(4) == 4.5);
7474
assert(m.at(5) == 5.5);
7575
#ifndef TEST_HAS_NO_EXCEPTIONS
76-
if (!std::is_constant_evaluated()) {
76+
if (!TEST_IS_CONSTANT_EVALUATED) {
7777
try {
7878
TEST_IGNORE_NODISCARD m.at(6);
7979
assert(false);
@@ -90,7 +90,7 @@ constexpr void test() {
9090
constexpr bool test() {
9191
test<std::vector<int>, std::vector<double>>();
9292
#ifndef __cpp_lib_constexpr_deque
93-
if (!std::is_constant_evaluated())
93+
if (!TEST_IS_CONSTANT_EVALUATED)
9494
#endif
9595
{
9696
test<std::deque<int>, std::vector<double>>();

libcxx/test/std/containers/container.adaptors/flat.map/flat.map.access/at_transparent.pass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ constexpr void test() {
6060
assert(m.at(Transparent<int>{4}) == 4.5);
6161
assert(m.at(Transparent<int>{5}) == 5.5);
6262
#ifndef TEST_HAS_NO_EXCEPTIONS
63-
if (!std::is_constant_evaluated()) {
63+
if (!TEST_IS_CONSTANT_EVALUATED) {
6464
try {
6565
TEST_IGNORE_NODISCARD m.at(Transparent<int>{6});
6666
assert(false);
@@ -83,7 +83,7 @@ constexpr void test() {
8383
assert(m.at(Transparent<int>{4}) == 4.5);
8484
assert(m.at(Transparent<int>{5}) == 5.5);
8585
#ifndef TEST_HAS_NO_EXCEPTIONS
86-
if (!std::is_constant_evaluated()) {
86+
if (!TEST_IS_CONSTANT_EVALUATED) {
8787
try {
8888
TEST_IGNORE_NODISCARD m.at(Transparent<int>{6});
8989
assert(false);
@@ -100,7 +100,7 @@ constexpr void test() {
100100
constexpr bool test() {
101101
test<std::vector<int>, std::vector<double>>();
102102
#ifndef __cpp_lib_constexpr_deque
103-
if (!std::is_constant_evaluated())
103+
if (!TEST_IS_CONSTANT_EVALUATED)
104104
#endif
105105
{
106106
test<std::deque<int>, std::vector<double>>();

libcxx/test/std/containers/container.adaptors/flat.map/flat.map.access/index_key.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ constexpr void test() {
6262
constexpr bool test() {
6363
test<std::vector<int>, std::vector<double>>();
6464
#ifndef __cpp_lib_constexpr_deque
65-
if (!std::is_constant_evaluated())
65+
if (!TEST_IS_CONSTANT_EVALUATED)
6666
#endif
6767
{
6868
test<std::deque<int>, std::vector<double>>();
6969
}
7070
test<MinSequenceContainer<int>, MinSequenceContainer<double>>();
7171
test<std::vector<int, min_allocator<int>>, std::vector<double, min_allocator<double>>>();
7272

73-
if (!std::is_constant_evaluated()) {
73+
if (!TEST_IS_CONSTANT_EVALUATED) {
7474
auto index_func = [](auto& m, auto key_arg, auto value_arg) {
7575
using FlatMap = std::decay_t<decltype(m)>;
7676
const typename FlatMap::key_type key = key_arg;

libcxx/test/std/containers/container.adaptors/flat.map/flat.map.access/index_rv_key.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ constexpr void test() {
5353
constexpr bool test() {
5454
test<std::vector<MoveOnly>, std::vector<double>>();
5555
#ifndef __cpp_lib_constexpr_deque
56-
if (!std::is_constant_evaluated())
56+
if (!TEST_IS_CONSTANT_EVALUATED)
5757
#endif
5858
{
5959
test<std::deque<MoveOnly>, std::vector<double>>();
6060
}
6161
test<MinSequenceContainer<MoveOnly>, MinSequenceContainer<double>>();
6262
test<std::vector<MoveOnly, min_allocator<MoveOnly>>, std::vector<double, min_allocator<double>>>();
6363

64-
if (!std::is_constant_evaluated()) {
64+
if (!TEST_IS_CONSTANT_EVALUATED) {
6565
auto index_func = [](auto& m, auto key_arg, auto value_arg) {
6666
using FlatMap = std::decay_t<decltype(m)>;
6767
typename FlatMap::key_type key = key_arg;

libcxx/test/std/containers/container.adaptors/flat.map/flat.map.access/index_transparent.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ constexpr void test() {
8484
constexpr bool test() {
8585
test<std::vector<int>, std::vector<double>>();
8686
#ifndef __cpp_lib_constexpr_deque
87-
if (!std::is_constant_evaluated())
87+
if (!TEST_IS_CONSTANT_EVALUATED)
8888
#endif
8989
{
9090
test<std::deque<int>, std::vector<double>>();
@@ -108,7 +108,7 @@ constexpr bool test() {
108108
assert(x == 1);
109109
}
110110

111-
if (!std::is_constant_evaluated()) {
111+
if (!TEST_IS_CONSTANT_EVALUATED) {
112112
auto index_func = [](auto& m, auto key_arg, auto value_arg) {
113113
using FlatMap = std::decay_t<decltype(m)>;
114114
using Key = typename FlatMap::key_type;

libcxx/test/std/containers/container.adaptors/flat.map/flat.map.capacity/empty.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ constexpr void test() {
4242
constexpr bool test() {
4343
test<std::vector<int>, std::vector<double>>();
4444
#ifndef __cpp_lib_constexpr_deque
45-
if (!std::is_constant_evaluated())
45+
if (!TEST_IS_CONSTANT_EVALUATED)
4646
#endif
4747
{
4848
test<std::deque<int>, std::vector<double>>();

libcxx/test/std/containers/container.adaptors/flat.map/flat.map.capacity/size.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ constexpr void test() {
4646
}
4747
{
4848
M m;
49-
std::size_t s = std::is_constant_evaluated() ? 100 : 1000000;
49+
std::size_t s = TEST_IS_CONSTANT_EVALUATED ? 100 : 1000000;
5050
for (auto i = 0u; i < s; ++i) {
5151
m.emplace(i, 'a');
5252
}
@@ -59,7 +59,7 @@ constexpr void test() {
5959
constexpr bool test() {
6060
test<std::vector<int>, std::vector<char>>();
6161
#ifndef __cpp_lib_constexpr_deque
62-
if (!std::is_constant_evaluated())
62+
if (!TEST_IS_CONSTANT_EVALUATED)
6363
#endif
6464
{
6565
test<std::deque<int>, std::vector<char>>();

libcxx/test/std/containers/container.adaptors/flat.map/flat.map.cons/alloc.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ constexpr bool test() {
7373

7474
test<std::vector, std::vector>();
7575
#ifndef __cpp_lib_constexpr_deque
76-
if (!std::is_constant_evaluated())
76+
if (!TEST_IS_CONSTANT_EVALUATED)
7777
#endif
7878
{
7979
test<std::deque, std::deque>();

libcxx/test/std/containers/container.adaptors/flat.map/flat.map.cons/assign_initializer_list.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ constexpr bool test() {
5050
test<std::vector<int>, std::vector<int>>();
5151
test<std::vector<int>, std::vector<double>>();
5252
#ifndef __cpp_lib_constexpr_deque
53-
if (!std::is_constant_evaluated())
53+
if (!TEST_IS_CONSTANT_EVALUATED)
5454
#endif
5555
{
5656
test<std::deque<int>, std::vector<double>>();

libcxx/test/std/containers/container.adaptors/flat.map/flat.map.cons/compare.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ constexpr bool test() {
113113
test_compare_alloc<std::vector, std::vector>();
114114

115115
#ifndef __cpp_lib_constexpr_deque
116-
if (!std::is_constant_evaluated())
116+
if (!TEST_IS_CONSTANT_EVALUATED)
117117
#endif
118118
{
119119
test_compare<std::deque<int>, std::vector<double>>();

0 commit comments

Comments
 (0)