summaryrefslogtreecommitdiff
path: root/libcxx/test/support/test.support/make_string_header.pass.cpp
AgeCommit message (Collapse)Author
2024-10-12[libc++][RFC] Always define internal feature test macros (#89178)Nikolas Klauser
Currently, the library-internal feature test macros are only defined if the feature is not available, and always have the prefix `_LIBCPP_HAS_NO_`. This patch changes that, so that they are always defined and have the prefix `_LIBCPP_HAS_` instead. This changes the canonical use of these macros to `#if _LIBCPP_HAS_FEATURE`, which means that using an undefined macro (e.g. due to a missing include) is diagnosed now. While this is rather unlikely currently, a similar change in `<__configuration/availability.h>` caught a few bugs. This also improves readability, since it removes the double-negation of `#ifndef _LIBCPP_HAS_NO_FEATURE`. The current patch only touches the macros defined in `<__config>`. If people are happy with this approach, I'll make a follow-up PR to also change the macros defined in `<__config_site>`.
2024-07-31[libc++][NFC] Add missing license headersLouis Dionne
Also standardize the license comment in several files where it was different from what we normally do.
2022-06-14[libc++] Remove macros for IBM compilerLouis Dionne
It's not tested or used anymore -- instead a Clang-based compiler is used on IBM nowadays. Differential Revision: https://reviews.llvm.org/D127650
2022-05-27[runtimes] Rename various libcpp-has-no-XYZ Lit features to just no-XYZLouis Dionne
Since those features are general properties of the environment, it makes sense to use them from libc++abi too, and so the name libcpp-has-no-xxx doesn't make sense. Differential Revision: https://reviews.llvm.org/D126482
2022-02-03[libc++][nfc] Add TEST_HAS_NO_UNICODE_CHARS.Mark de Wever
This avoids using an libc++ internal macro in our tests. Reviewed By: #libc, philnik, ldionne Differential Revision: https://reviews.llvm.org/D118832
2021-10-12[libc++] Add an option to disable wide character support in libc++Louis Dionne
Some embedded platforms do not wish to support the C library functionality for handling wchar_t because they have no use for it. It makes sense for libc++ to work properly on those platforms, so this commit adds a carve-out of functionality for wchar_t. Unfortunately, unlike some other carve-outs (e.g. random device), this patch touches several parts of the library. However, despite the wide impact of this patch, I still think it is important to support this configuration since it makes it much simpler to port libc++ to some embedded platforms. Differential Revision: https://reviews.llvm.org/D111265
2021-04-21[libc++] s/_LIBCPP_NO_HAS_CHAR8_T/_LIBCPP_HAS_NO_CHAR8_T/gArthur O'Dwyer
This was raised in D94511. Differential Revision: https://reviews.llvm.org/D100736
2021-02-04[libc++] Adds a make_string test helper function.Mark de Wever
These function makes it easier to write generic unit tests for the format header. It solves the issue where it's not possible to use `templated_prefix"foo"` where `templated_prefix` resolves to: nothing, `L`, `u8`, `u`, or `U`. The templated_prefix would be more faster during execution. Reviewed By: ldionne, #libc, curdeius Differential Revision: https://reviews.llvm.org/D93414