[libcxx-commits] [libcxx] [libc++] Add __detected_or_t and use it to implement some of the allocator traits aliases (PR #115654)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Nov 10 04:22:32 PST 2024
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 6b21cf8ccad84e2670e458d8bdaccbd0ae37b46b 6fe52ab98cfe6d8f92234f5f6b514444bb6b2c98 --extensions h -- libcxx/include/__type_traits/detected_or.h libcxx/include/__memory/allocator_traits.h libcxx/include/__memory/unique_ptr.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__memory/allocator_traits.h b/libcxx/include/__memory/allocator_traits.h
index 48c392a8bc..6ee609dcee 100644
--- a/libcxx/include/__memory/allocator_traits.h
+++ b/libcxx/include/__memory/allocator_traits.h
@@ -133,8 +133,7 @@ template <class _Tp>
using __propagate_on_container_swap_member = typename _Tp::propagate_on_container_swap;
template <class _Alloc>
-using __propagate_on_container_swap =
- __detected_or_t<false_type, __propagate_on_container_swap_member, _Alloc>;
+using __propagate_on_container_swap = __detected_or_t<false_type, __propagate_on_container_swap_member, _Alloc>;
// __is_always_equal
template <class _Tp>
``````````
</details>
https://github.com/llvm/llvm-project/pull/115654
More information about the libcxx-commits
mailing list