summaryrefslogtreecommitdiff
path: root/libcxx/utils
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2023-04-09 13:24:21 +0200
committerMark de Wever <koraq@xs4all.nl>2023-04-11 18:47:11 +0200
commitb23735407008948829ab24036d979427ddbbe121 (patch)
tree9c4eb23f1cf9c0482753b253600c1e201635bbd1 /libcxx/utils
parent2e9058ced9f154b972e0caac99bc20f284161250 (diff)
downloadllvm-b23735407008948829ab24036d979427ddbbe121.tar.gz
[libc++][format] Mark range formaters as complete.
The __cpp_lib_format_ranges feature-test macro only depends on P2286R8 and P2585R0. Note since LWG3750 only affects these two C++23 papers there is nothing to do for older language versions. (The __cpp_lib_format feature-test macro depends on the incomplete formatting for chrono. So this part can't be marked as complete yet.) This completes - P2286R8 Formatting ranges - P2585R0 Improving default container formatting This partly implements - LWG3750 Too many papers bump __cpp_lib_format Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D147880
Diffstat (limited to 'libcxx/utils')
-rwxr-xr-xlibcxx/utils/generate_feature_test_macro_components.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/libcxx/utils/generate_feature_test_macro_components.py b/libcxx/utils/generate_feature_test_macro_components.py
index d617352b2cfc..fb59395115e3 100755
--- a/libcxx/utils/generate_feature_test_macro_components.py
+++ b/libcxx/utils/generate_feature_test_macro_components.py
@@ -328,11 +328,17 @@ feature_test_macros = [ add_version_header(x) for x in [
"libcxx_guard": "!defined(_LIBCPP_HAS_NO_INCOMPLETE_FORMAT)",
"unimplemented": True,
}, {
+ "name": "__cpp_lib_format_ranges",
+ "values": { "c++2b": 202207 },
+ "headers": ["format"],
+ "test_suite_guard": "!defined(_LIBCPP_HAS_NO_INCOMPLETE_FORMAT)",
+ "libcxx_guard": "!defined(_LIBCPP_HAS_NO_INCOMPLETE_FORMAT)",
+ }, {
"name": "__cpp_lib_formatters",
"values": { "c++2b": 202302 },
"headers": ["stacktrace", "thread"],
- "test_suite_guard": "!defined(_LIBCPP_AVAILABILITY_DISABLE_FTM___cpp_lib_format) && !defined(_LIBCPP_HAS_NO_INCOMPLETE_FORMAT)",
- "libcxx_guard": "!defined(_LIBCPP_AVAILABILITY_DISABLE_FTM___cpp_lib_format) && !defined(_LIBCPP_HAS_NO_INCOMPLETE_FORMAT)",
+ "test_suite_guard": "!defined(_LIBCPP_HAS_NO_INCOMPLETE_FORMAT)",
+ "libcxx_guard": "!defined(_LIBCPP_HAS_NO_INCOMPLETE_FORMAT)",
"unimplemented": True,
}, {
"name": "__cpp_lib_forward_like",