[libcxx-commits] [libcxx] [libc++] P2655R3 common_reference_t of reference_wrapper Should Be a Reference Type (PR #141408)

via libcxx-commits libcxx-commits at lists.llvm.org
Sun May 25 06:13:39 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

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

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- libcxx/test/std/utilities/function.objects/refwrap/common_reference.compile.pass.cpp libcxx/include/__functional/reference_wrapper.h libcxx/include/__type_traits/common_reference.h libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/common_reference.compile.pass.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/test/std/utilities/function.objects/refwrap/common_reference.compile.pass.cpp b/libcxx/test/std/utilities/function.objects/refwrap/common_reference.compile.pass.cpp
index 142841a60..ea23f5a4a 100644
--- a/libcxx/test/std/utilities/function.objects/refwrap/common_reference.compile.pass.cpp
+++ b/libcxx/test/std/utilities/function.objects/refwrap/common_reference.compile.pass.cpp
@@ -144,7 +144,6 @@ struct Test {
 template struct Test<int>;
 template struct Test<std::reference_wrapper<int>>;
 
-
 // reference_wrapper as both args is unaffected.
 // subject to simple first rule of
 static_assert(check<Ref<int>&, Ref<int>&, Ref<int>&>);

``````````

</details>


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


More information about the libcxx-commits mailing list