[libcxx-commits] [libcxx] [libc++] Implement `std::function_ref` (PR #186692)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Apr 18 05:46:07 PDT 2026


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 origin/main...HEAD libcxx/utils/generate_feature_test_macro_components.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
--- generate_feature_test_macro_components.py	2026-04-18 12:43:57.000000 +0000
+++ generate_feature_test_macro_components.py	2026-04-18 12:45:23.793555 +0000
@@ -696,11 +696,11 @@
             "libcxx_guard": "_LIBCPP_HAS_FILESYSTEM && _LIBCPP_HAS_LOCALIZATION",
         },
         {
             "name": "__cpp_lib_function_ref",
             "values": {
-                "c++26": 202603 # P3948R1 constant_wrapper is the only tool needed for passing constant expressions via function arguments
+                "c++26": 202603  # P3948R1 constant_wrapper is the only tool needed for passing constant expressions via function arguments
             },
             "headers": ["functional"],
         },
         {
             "name": "__cpp_lib_gcd_lcm",

``````````

</details>


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


More information about the libcxx-commits mailing list