Repository navigation
WiP - [libc++] Added FTMs from Búzios 202611 - #246833
Open
H-G-Hristov wants to merge 1 commit into
Open
H-G-Hristov wants to merge 1 commit into
H-G-Hristov wants to merge 1 commit into
Conversation
|
@llvm/pr-subscribers-libcxx Author: Hristo Hristov (H-G-Hristov) ChangesReferencesPatch is 39.38 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/246833.diff 11 Files Affected:
diff --git a/libcxx/docs/FeatureTestMacroTable.md b/libcxx/docs/FeatureTestMacroTable.md
index 1b20bf42983e58..58508cfe7d9a11 100644
--- a/libcxx/docs/FeatureTestMacroTable.md
+++ b/libcxx/docs/FeatureTestMacroTable.md
@@ -328,12 +328,16 @@ This file documents the feature test macros currently supported by libc++.
| `__cpp_lib_variant` | `202306L` |
| **C++29** | |
| `__cpp_lib_bitops` | `202606L` |
+| `__cpp_lib_clmul` | *unimplemented* |
| `__cpp_lib_expected` | `202606L` |
| `__cpp_lib_map_lookup` | *unimplemented* |
| `__cpp_lib_mdspan_copy` | *unimplemented* |
| `__cpp_lib_pointer_tag_pair` | *unimplemented* |
+| `__cpp_lib_ranges_slice` | *unimplemented* |
| `__cpp_lib_simd_bitops` | *unimplemented* |
+| `__cpp_lib_simd_clmul` | *unimplemented* |
| `__cpp_lib_simd_complex` | *unimplemented* |
+| `__cpp_lib_structural_types` | *unimplemented* |
| `__cpp_lib_thread_attributes` | *unimplemented* |
| `__cpp_lib_view_interface` | `202606L` |
:::
diff --git a/libcxx/include/version b/libcxx/include/version
index 884356b61617b1..2be01ea9bf6d66 100644
--- a/libcxx/include/version
+++ b/libcxx/include/version
@@ -62,6 +62,7 @@ __cpp_lib_char8_t 201907L <atomic> <filesy
__cpp_lib_chrono 201611L <chrono>
__cpp_lib_chrono_udls 201304L <chrono>
__cpp_lib_clamp 201603L <algorithm>
+__cpp_lib_clmul 202611L <numeric>
__cpp_lib_common_reference 202302L <type_traits>
__cpp_lib_common_reference_wrapper 202302L <functional>
__cpp_lib_complex_udls 201309L <complex>
@@ -264,6 +265,7 @@ __cpp_lib_ranges_iota 202202L <numeric>
__cpp_lib_ranges_join_with 202202L <ranges>
__cpp_lib_ranges_repeat 202207L <ranges>
__cpp_lib_ranges_reserve_hint 202502L <ranges>
+__cpp_lib_ranges_slice 202611L <ranges>
__cpp_lib_ranges_slide 202202L <ranges>
__cpp_lib_ranges_starts_ends_with 202106L <algorithm>
__cpp_lib_ranges_stride 202207L <ranges>
@@ -292,6 +294,7 @@ __cpp_lib_shift 202202L <algorithm>
201806L // C++20
__cpp_lib_simd 202411L <simd>
__cpp_lib_simd_bitops 202607L <simd>
+__cpp_lib_simd_clmul 202611L <simd>
__cpp_lib_simd_complex 202502L <simd>
__cpp_lib_simd_permutations 202506L <simd>
__cpp_lib_smart_ptr_for_overwrite 202002L <memory>
@@ -312,6 +315,8 @@ __cpp_lib_string_udls 201304L <string>
__cpp_lib_string_view 202403L <string> <string_view>
201803L // C++20
201606L // C++17
+__cpp_lib_structural_types 202611L <optional> <span> <string_view>
+ <tuple> <variant>
__cpp_lib_submdspan 202306L <mdspan>
__cpp_lib_syncbuf 201803L <syncstream>
__cpp_lib_task 202506L <execution>
@@ -750,13 +755,17 @@ __cpp_lib_void_t 201411L <type_traits>
#if _LIBCPP_STD_VER >= 29
# undef __cpp_lib_bitops
# define __cpp_lib_bitops 202606L
+// # define __cpp_lib_clmul 202611L
# undef __cpp_lib_expected
# define __cpp_lib_expected 202606L
// # define __cpp_lib_map_lookup 202606L
// # define __cpp_lib_mdspan_copy 202606L
// # define __cpp_lib_pointer_tag_pair 202606L
+// # define __cpp_lib_ranges_slice 202611L
// # define __cpp_lib_simd_bitops 202607L
+// # define __cpp_lib_simd_clmul 202611L
// # define __cpp_lib_simd_complex 202502L
+// # define __cpp_lib_structural_types 202611L
// # define __cpp_lib_thread_attributes 202606L
# define __cpp_lib_view_interface 202606L
#endif
diff --git a/libcxx/test/std/language.support/support.limits/support.limits.general/numeric.version.compile.pass.cpp b/libcxx/test/std/language.support/support.limits/support.limits.general/numeric.version.compile.pass.cpp
index 3770febcd52935..05212f723be9ee 100644
--- a/libcxx/test/std/language.support/support.limits/support.limits.general/numeric.version.compile.pass.cpp
+++ b/libcxx/test/std/language.support/support.limits/support.limits.general/numeric.version.compile.pass.cpp
@@ -20,6 +20,10 @@
#if TEST_STD_VER < 14
+# ifdef __cpp_lib_clmul
+# error "__cpp_lib_clmul should not be defined before c++29"
+# endif
+
# ifdef __cpp_lib_constexpr_numeric
# error "__cpp_lib_constexpr_numeric should not be defined before c++20"
# endif
@@ -46,6 +50,10 @@
#elif TEST_STD_VER == 14
+# ifdef __cpp_lib_clmul
+# error "__cpp_lib_clmul should not be defined before c++29"
+# endif
+
# ifdef __cpp_lib_constexpr_numeric
# error "__cpp_lib_constexpr_numeric should not be defined before c++20"
# endif
@@ -72,6 +80,10 @@
#elif TEST_STD_VER == 17
+# ifdef __cpp_lib_clmul
+# error "__cpp_lib_clmul should not be defined before c++29"
+# endif
+
# ifdef __cpp_lib_constexpr_numeric
# error "__cpp_lib_constexpr_numeric should not be defined before c++20"
# endif
@@ -110,6 +122,10 @@
#elif TEST_STD_VER == 20
+# ifdef __cpp_lib_clmul
+# error "__cpp_lib_clmul should not be defined before c++29"
+# endif
+
# ifndef __cpp_lib_constexpr_numeric
# error "__cpp_lib_constexpr_numeric should be defined in c++20"
# endif
@@ -154,6 +170,10 @@
#elif TEST_STD_VER == 23
+# ifdef __cpp_lib_clmul
+# error "__cpp_lib_clmul should not be defined before c++29"
+# endif
+
# ifndef __cpp_lib_constexpr_numeric
# error "__cpp_lib_constexpr_numeric should be defined in c++23"
# endif
@@ -201,6 +221,10 @@
#elif TEST_STD_VER == 26
+# ifdef __cpp_lib_clmul
+# error "__cpp_lib_clmul should not be defined before c++29"
+# endif
+
# ifndef __cpp_lib_constexpr_numeric
# error "__cpp_lib_constexpr_numeric should be defined in c++26"
# endif
@@ -251,6 +275,19 @@
#elif TEST_STD_VER > 26
+# if !defined(_LIBCPP_VERSION)
+# ifndef __cpp_lib_clmul
+# error "__cpp_lib_clmul should be defined in c++29"
+# endif
+# if __cpp_lib_clmul != 202611L
+# error "__cpp_lib_clmul should have the value 202611L in c++29"
+# endif
+# else
+# ifdef __cpp_lib_clmul
+# error "__cpp_lib_clmul should not be defined because it is unimplemented in libc++!"
+# endif
+# endif
+
# ifndef __cpp_lib_constexpr_numeric
# error "__cpp_lib_constexpr_numeric should be defined in c++29"
# endif
diff --git a/libcxx/test/std/language.support/support.limits/support.limits.general/optional.version.compile.pass.cpp b/libcxx/test/std/language.support/support.limits/support.limits.general/optional.version.compile.pass.cpp
index 3c88eaaee5cd3c..6d88df6f5e9bd8 100644
--- a/libcxx/test/std/language.support/support.limits/support.limits.general/optional.version.compile.pass.cpp
+++ b/libcxx/test/std/language.support/support.limits/support.limits.general/optional.version.compile.pass.cpp
@@ -44,6 +44,10 @@
# error "__cpp_lib_optional_range_support should not be defined before c++26"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER == 14
# ifdef __cpp_lib_constexpr_exceptions
@@ -70,6 +74,10 @@
# error "__cpp_lib_optional_range_support should not be defined before c++26"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER == 17
# ifdef __cpp_lib_constexpr_exceptions
@@ -99,6 +107,10 @@
# error "__cpp_lib_optional_range_support should not be defined before c++26"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER == 20
# ifdef __cpp_lib_constexpr_exceptions
@@ -128,6 +140,10 @@
# error "__cpp_lib_optional_range_support should not be defined before c++26"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER == 23
# ifdef __cpp_lib_constexpr_exceptions
@@ -157,6 +173,10 @@
# error "__cpp_lib_optional_range_support should not be defined before c++26"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER == 26
# if !defined(_LIBCPP_VERSION)
@@ -225,6 +245,10 @@
# endif
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER > 26
# if !defined(_LIBCPP_VERSION)
@@ -293,6 +317,19 @@
# endif
# endif
+# if !defined(_LIBCPP_VERSION)
+# ifndef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should be defined in c++29"
+# endif
+# if __cpp_lib_structural_types != 202611L
+# error "__cpp_lib_structural_types should have the value 202611L in c++29"
+# endif
+# else
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined because it is unimplemented in libc++!"
+# endif
+# endif
+
#endif // TEST_STD_VER > 26
// clang-format on
diff --git a/libcxx/test/std/language.support/support.limits/support.limits.general/ranges.version.compile.pass.cpp b/libcxx/test/std/language.support/support.limits/support.limits.general/ranges.version.compile.pass.cpp
index dfa7188e9a3243..b8ffcbaffa8019 100644
--- a/libcxx/test/std/language.support/support.limits/support.limits.general/ranges.version.compile.pass.cpp
+++ b/libcxx/test/std/language.support/support.limits/support.limits.general/ranges.version.compile.pass.cpp
@@ -80,6 +80,10 @@
# error "__cpp_lib_ranges_reserve_hint should not be defined before c++26"
# endif
+# ifdef __cpp_lib_ranges_slice
+# error "__cpp_lib_ranges_slice should not be defined before c++29"
+# endif
+
# ifdef __cpp_lib_ranges_slide
# error "__cpp_lib_ranges_slide should not be defined before c++23"
# endif
@@ -162,6 +166,10 @@
# error "__cpp_lib_ranges_reserve_hint should not be defined before c++26"
# endif
+# ifdef __cpp_lib_ranges_slice
+# error "__cpp_lib_ranges_slice should not be defined before c++29"
+# endif
+
# ifdef __cpp_lib_ranges_slide
# error "__cpp_lib_ranges_slide should not be defined before c++23"
# endif
@@ -244,6 +252,10 @@
# error "__cpp_lib_ranges_reserve_hint should not be defined before c++26"
# endif
+# ifdef __cpp_lib_ranges_slice
+# error "__cpp_lib_ranges_slice should not be defined before c++29"
+# endif
+
# ifdef __cpp_lib_ranges_slide
# error "__cpp_lib_ranges_slide should not be defined before c++23"
# endif
@@ -329,6 +341,10 @@
# error "__cpp_lib_ranges_reserve_hint should not be defined before c++26"
# endif
+# ifdef __cpp_lib_ranges_slice
+# error "__cpp_lib_ranges_slice should not be defined before c++29"
+# endif
+
# ifdef __cpp_lib_ranges_slide
# error "__cpp_lib_ranges_slide should not be defined before c++23"
# endif
@@ -447,6 +463,10 @@
# error "__cpp_lib_ranges_reserve_hint should not be defined before c++26"
# endif
+# ifdef __cpp_lib_ranges_slice
+# error "__cpp_lib_ranges_slice should not be defined before c++29"
+# endif
+
# if !defined(_LIBCPP_VERSION)
# ifndef __cpp_lib_ranges_slide
# error "__cpp_lib_ranges_slide should be defined in c++23"
@@ -634,6 +654,10 @@
# endif
# endif
+# ifdef __cpp_lib_ranges_slice
+# error "__cpp_lib_ranges_slice should not be defined before c++29"
+# endif
+
# if !defined(_LIBCPP_VERSION)
# ifndef __cpp_lib_ranges_slide
# error "__cpp_lib_ranges_slide should be defined in c++26"
@@ -821,6 +845,19 @@
# endif
# endif
+# if !defined(_LIBCPP_VERSION)
+# ifndef __cpp_lib_ranges_slice
+# error "__cpp_lib_ranges_slice should be defined in c++29"
+# endif
+# if __cpp_lib_ranges_slice != 202611L
+# error "__cpp_lib_ranges_slice should have the value 202611L in c++29"
+# endif
+# else
+# ifdef __cpp_lib_ranges_slice
+# error "__cpp_lib_ranges_slice should not be defined because it is unimplemented in libc++!"
+# endif
+# endif
+
# if !defined(_LIBCPP_VERSION)
# ifndef __cpp_lib_ranges_slide
# error "__cpp_lib_ranges_slide should be defined in c++29"
diff --git a/libcxx/test/std/language.support/support.limits/support.limits.general/span.version.compile.pass.cpp b/libcxx/test/std/language.support/support.limits/support.limits.general/span.version.compile.pass.cpp
index 6f7715c4952dc3..15740e290fa4e9 100644
--- a/libcxx/test/std/language.support/support.limits/support.limits.general/span.version.compile.pass.cpp
+++ b/libcxx/test/std/language.support/support.limits/support.limits.general/span.version.compile.pass.cpp
@@ -32,6 +32,10 @@
# error "__cpp_lib_span_at should not be defined before c++26"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER == 14
# ifdef __cpp_lib_hardened_span
@@ -46,6 +50,10 @@
# error "__cpp_lib_span_at should not be defined before c++26"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER == 17
# ifdef __cpp_lib_hardened_span
@@ -60,6 +68,10 @@
# error "__cpp_lib_span_at should not be defined before c++26"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER == 20
# ifdef __cpp_lib_hardened_span
@@ -77,6 +89,10 @@
# error "__cpp_lib_span_at should not be defined before c++26"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER == 23
# ifdef __cpp_lib_hardened_span
@@ -94,6 +110,10 @@
# error "__cpp_lib_span_at should not be defined before c++26"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER == 26
# if !defined(_LIBCPP_VERSION)
@@ -123,6 +143,10 @@
# error "__cpp_lib_span_at should have the value 202311L in c++26"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER > 26
# if !defined(_LIBCPP_VERSION)
@@ -152,6 +176,19 @@
# error "__cpp_lib_span_at should have the value 202311L in c++29"
# endif
+# if !defined(_LIBCPP_VERSION)
+# ifndef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should be defined in c++29"
+# endif
+# if __cpp_lib_structural_types != 202611L
+# error "__cpp_lib_structural_types should have the value 202611L in c++29"
+# endif
+# else
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined because it is unimplemented in libc++!"
+# endif
+# endif
+
#endif // TEST_STD_VER > 26
// clang-format on
diff --git a/libcxx/test/std/language.support/support.limits/support.limits.general/string_view.version.compile.pass.cpp b/libcxx/test/std/language.support/support.limits/support.limits.general/string_view.version.compile.pass.cpp
index aa2b26287ea970..434ceba6d141df 100644
--- a/libcxx/test/std/language.support/support.limits/support.limits.general/string_view.version.compile.pass.cpp
+++ b/libcxx/test/std/language.support/support.limits/support.limits.general/string_view.version.compile.pass.cpp
@@ -52,6 +52,10 @@
# error "__cpp_lib_string_view should not be defined before c++17"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER == 14
# ifdef __cpp_lib_char8_t
@@ -86,6 +90,10 @@
# error "__cpp_lib_string_view should not be defined before c++17"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER == 17
# ifdef __cpp_lib_char8_t
@@ -123,6 +131,10 @@
# error "__cpp_lib_string_view should have the value 201606L in c++17"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER == 20
# if defined(__cpp_char8_t)
@@ -175,6 +187,10 @@
# error "__cpp_lib_string_view should have the value 201803L in c++20"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER == 23
# if defined(__cpp_char8_t)
@@ -230,6 +246,10 @@
# error "__cpp_lib_string_view should have the value 201803L in c++23"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER == 26
# if defined(__cpp_char8_t)
@@ -306,6 +326,10 @@
# error "__cpp_lib_string_view should have the value 202403L in c++26"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
#elif TEST_STD_VER > 26
# if defined(__cpp_char8_t)
@@ -382,6 +406,19 @@
# error "__cpp_lib_string_view should have the value 202403L in c++29"
# endif
+# if !defined(_LIBCPP_VERSION)
+# ifndef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should be defined in c++29"
+# endif
+# if __cpp_lib_structural_types != 202611L
+# error "__cpp_lib_structural_types should have the value 202611L in c++29"
+# endif
+# else
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined because it is unimplemented in libc++!"
+# endif
+# endif
+
#endif // TEST_STD_VER > 26
// clang-format on
diff --git a/libcxx/test/std/language.support/support.limits/support.limits.general/tuple.version.compile.pass.cpp b/libcxx/test/std/language.support/support.limits/support.limits.general/tuple.version.compile.pass.cpp
index 9f499f074c30a7..56370155f5e945 100644
--- a/libcxx/test/std/language.support/support.limits/support.limits.general/tuple.version.compile.pass.cpp
+++ b/libcxx/test/std/language.support/support.limits/support.limits.general/tuple.version.compile.pass.cpp
@@ -40,6 +40,10 @@
# error "__cpp_lib_ranges_zip should not be defined before c++23"
# endif
+# ifdef __cpp_lib_structural_types
+# error "__cpp_lib_structural_types should not be defined before c++29"
+# endif
+
# ifdef __cpp_lib_tuple_element_t
# error "__cpp_lib_tuple_element_t should not be defined before c++14"
# e...
[truncated]
|
Contributor
eisenwave
reviewed
Nov 28, 2026
eisenwave
left a comment
Contributor
There was a problem hiding this comment.
Shouldn't there be a commented-out bump of __cpp_lib_contracts for always-enforced contracts?
This comment was marked as outdated.
This comment was marked as outdated.
H-G-Hristov
force-pushed
the
hgh/libcxx/FTMs-Buzios-202611
branch
from
November 29, 2026 14:17
2154e47 to
8cb385b
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
References