Skip to content

Commit 9596784

Browse files
committed
[libc++][nfc] Add TEST_HAS_NO_UNICODE_CHARS.
This avoids using an libc++ internal macro in our tests. Reviewed By: #libc, philnik, ldionne Differential Revision: https://reviews.llvm.org/D118832
1 parent 823fa09 commit 9596784

File tree

92 files changed

+127
-135
lines changed

Some content is hidden

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

92 files changed

+127
-135
lines changed

libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ constexpr bool test() {
342342
#ifndef _LIBCPP_HAS_NO_CHAR8_T
343343
test<char8_t>();
344344
#endif
345-
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
345+
#ifndef TEST_HAS_NO_UNICODE_CHARS
346346
test<char16_t>();
347347
test<char32_t>();
348348
#endif

libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string_non_unicode.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ constexpr bool test() {
9797
#ifndef _LIBCPP_HAS_NO_CHAR8_T
9898
test<char8_t>();
9999
#endif
100-
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
100+
#ifndef TEST_HAS_NO_UNICODE_CHARS
101101
test<char16_t>();
102102
test<char32_t>();
103103
#endif

libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_string_unicode.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ constexpr bool test() {
260260
#ifndef _LIBCPP_HAS_NO_CHAR8_T
261261
test<char8_t>();
262262
#endif
263-
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
263+
#ifndef TEST_HAS_NO_UNICODE_CHARS
264264
test<char16_t>();
265265
test<char32_t>();
266266
#endif

libcxx/test/std/atomics/atomics.types.generic/integral.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ int main(int, char**)
177177
#if TEST_STD_VER > 17 && defined(__cpp_char8_t)
178178
test<std::atomic_char8_t, char8_t>();
179179
#endif
180-
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
180+
#ifndef TEST_HAS_NO_UNICODE_CHARS
181181
test<std::atomic_char16_t, char16_t>();
182182
test<std::atomic_char32_t, char32_t>();
183183
#endif
@@ -205,7 +205,7 @@ int main(int, char**)
205205
test<volatile std::atomic_ulong, unsigned long>();
206206
test<volatile std::atomic_llong, long long>();
207207
test<volatile std::atomic_ullong, unsigned long long>();
208-
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
208+
#ifndef TEST_HAS_NO_UNICODE_CHARS
209209
test<volatile std::atomic_char16_t, char16_t>();
210210
test<volatile std::atomic_char32_t, char32_t>();
211211
#endif

libcxx/test/std/atomics/atomics.types.generic/integral_typedefs.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ int main(int, char**)
6060
#if TEST_STD_VER > 17 && defined(__cpp_char8_t)
6161
static_assert((std::is_same<std::atomic<char8_t>, std::atomic_char8_t>::value), "");
6262
#endif
63-
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
63+
#ifndef TEST_HAS_NO_UNICODE_CHARS
6464
static_assert((std::is_same<std::atomic<char16_t>, std::atomic_char16_t>::value), "");
6565
static_assert((std::is_same<std::atomic<char32_t>, std::atomic_char32_t>::value), "");
6666
#endif

libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static_assert(std::three_way_comparable<wchar_t&>);
3030
#ifndef _LIBCPP_HAS_NO_CHAR8_T
3131
static_assert(std::three_way_comparable<char8_t const&>);
3232
#endif
33-
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
33+
#ifndef TEST_HAS_NO_UNICODE_CHARS
3434
static_assert(std::three_way_comparable<char16_t volatile&>);
3535
static_assert(std::three_way_comparable<char32_t const volatile&>);
3636
#endif

libcxx/test/std/language.support/support.limits/limits/is_specialized.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int main(int, char**)
4949
#if TEST_STD_VER > 17 && defined(__cpp_char8_t)
5050
test<char8_t>();
5151
#endif
52-
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
52+
#ifndef TEST_HAS_NO_UNICODE_CHARS
5353
test<char16_t>();
5454
test<char32_t>();
5555
#endif

libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/denorm_min.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ int main(int, char**)
3636
#if TEST_STD_VER > 17 && defined(__cpp_char8_t)
3737
test<char8_t>(0);
3838
#endif
39-
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
39+
#ifndef TEST_HAS_NO_UNICODE_CHARS
4040
test<char16_t>(0);
4141
test<char32_t>(0);
4242
#endif

libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int main(int, char**)
3535
#if TEST_STD_VER > 17 && defined(__cpp_char8_t)
3636
test<char8_t, 8>();
3737
#endif
38-
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
38+
#ifndef TEST_HAS_NO_UNICODE_CHARS
3939
test<char16_t, 16>();
4040
test<char32_t, 32>();
4141
#endif

libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/digits10.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ int main(int, char**)
3939
#if TEST_STD_VER > 17 && defined(__cpp_char8_t)
4040
test<char8_t, 2>();
4141
#endif
42-
#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
42+
#ifndef TEST_HAS_NO_UNICODE_CHARS
4343
test<char16_t, 4>();
4444
test<char32_t, 9>();
4545
#endif

0 commit comments

Comments
 (0)