summaryrefslogtreecommitdiff
path: root/libcxx/test/std/strings/c.strings/cuchar.compile.pass.cpp
AgeCommit message (Collapse)Author
2025-10-27Revert "[libcxx] Define `_LIBCPP_HAS_C8RTOMB_MBRTOC8` to true if compiling ↵Nikolas Klauser
with clang" (#165268) Reverts llvm/llvm-project#152724 The PR was merged with broken pre-commit CI.
2025-10-24[libcxx] Define `_LIBCPP_HAS_C8RTOMB_MBRTOC8` to true if compiling with ↵Victor Campos
clang (#152724) Define `_LIBCPP_HAS_C8RTOMB_MBRTOC8` to `1` if compiling with clang. Some tests involving functionality from `uchar.h`/`cuchar` fail when the platform or the supporting C library does not provide support for the corresponding features. These have been xfailed. This patch will enable the adoption of newer picolibc versions.
2023-11-29[libc++] Add initial support for picolibcMichael Platings
Picolibc is a C Standard Library that is commonly used in embedded environments. This patch adds initial support for this configuration along with pre-commit CI. As of this patch, the test suite only builds the tests and nothing is run. A follow-up patch will make the test suite actually run the tests. Differential Revision: https://reviews.llvm.org/D154246
2023-04-13[libcxx][AIX] Reverting XFAILs for test cases after OS updateNicole Rabjohn
These test cases were fixed with AIX 73TL1, and are currently passing on AIX machines with that fix. This fix has also been backported to the 7.2 service line. These were tested on a machine with AIX 7.2 TL 5 SP4 installed. Differential Revision: https://reviews.llvm.org/D148040
2023-03-21[libc++] Qualifies size_t.Mark de Wever
This has been done using the following command find libcxx/test -type f -exec perl -pi -e 's|^([^/]+?)((?<!::)size_t)|\1std::\2|' \{} \; And manually removed some false positives in std/depr/depr.c.headers. The `std` module doesn't export `::size_t`, this is a preparation for that module. Reviewed By: ldionne, #libc, EricWF, philnik Differential Revision: https://reviews.llvm.org/D146088
2022-09-10[libc++][cuchar] Declare std::c8rtomb and std::mbrtoc8 in <cuchar> if available.Tom Honermann
This change implements the C library dependent portions of P0482R6 (char8_t: A type for UTF-8 characters and strings (Revision 6)) by declaring std::c8rtomb() and std::mbrtoc8() in the <cuchar> header when implementations are provided by the C library as specified by WG14 N2653 (char8_t: A type for UTF-8 characters and strings (Revision 1)) as adopted for C23. A _LIBCPP_HAS_NO_C8RTOMB_MBRTOC8 macro is defined by the libc++ __config header unless it is known that the C library provides these functions in the current compilation mode. This macro is used for testing purposes and may be of use to libc++ users. At present, the only C library known to implement these functions is GNU libc as of its 2.36 release. Reviewed By: ldionne Differential Revision: https://reviews.llvm.org/D130946
2022-03-07[libc++] Add missing header <cuchar>Louis Dionne
Fixes llvm-project#44216 Differential Revision: https://reviews.llvm.org/D97870