[libcxx-commits] [libcxx] [libc++] Implement P2988R12: `std::optional<T&> (PR #155202)

via libcxx-commits libcxx-commits at lists.llvm.org
Sun Aug 24 21:26:16 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r HEAD~1...HEAD libcxx/utils/generate_feature_test_macro_components.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- generate_feature_test_macro_components.py	2025-08-25 04:03:37.000000 +0000
+++ generate_feature_test_macro_components.py	2025-08-25 04:25:47.517264 +0000
@@ -1003,11 +1003,11 @@
             "name": "__cpp_lib_optional",
             "values": {
                 "c++17": 201606,
                 "c++20": 202106,  # P2231R1 Missing constexpr in std::optional and std::variant
                 "c++23": 202110,  # P0798R8 Monadic operations for std::optional + LWG3621 Remove feature-test macro __cpp_lib_monadic_optional
-                "c++26": 202506   # P2988R12: std::optional<T&>
+                "c++26": 202506,  # P2988R12: std::optional<T&>
             },
             "headers": ["optional"],
         },
         {
             "name": "__cpp_lib_optional_range_support",

``````````

</details>


https://github.com/llvm/llvm-project/pull/155202


More information about the libcxx-commits mailing list