[libcxx-commits] [libcxx] [libc++] Disallow specializing `common_reference` (PR #141465)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed May 28 18:50:37 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/include/__type_traits/common_reference.h libcxx/test/libcxx/type_traits/no_specializations.verify.cpp libcxx/test/std/iterators/iterator.requirements/iterator.concepts/iterator.concept.readable/indirectly_readable.compile.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__type_traits/common_reference.h b/libcxx/include/__type_traits/common_reference.h
index a2e360405..7df55f7fe 100644
--- a/libcxx/include/__type_traits/common_reference.h
+++ b/libcxx/include/__type_traits/common_reference.h
@@ -188,7 +188,7 @@ _LIBCPP_DIAGNOSTIC_POP
// bullet 5 - Otherwise, there shall be no member `type`.
template <class...>
-struct _LIBCPP_NO_SPECIALIZATIONS common_reference{};
+struct _LIBCPP_NO_SPECIALIZATIONS common_reference {};
#endif // _LIBCPP_STD_VER >= 20
``````````
</details>
https://github.com/llvm/llvm-project/pull/141465
More information about the libcxx-commits
mailing list