[libcxx-commits] [libcxx] [libc++] <experimental/simd> Add assignment operator of simd reference (PR #70020)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 24 23:22:03 PDT 2023


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 f9306f6de3bd19a2dcacd64566852a5f92c86e77 542045c743fdc68f8d84419efc49e0e279d50928 -- libcxx/test/std/experimental/simd/simd.reference/reference_assignment.pass.cpp libcxx/include/experimental/__simd/reference.h
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/experimental/__simd/reference.h b/libcxx/include/experimental/__simd/reference.h
index 99a5eab30796..dc772663d582 100644
--- a/libcxx/include/experimental/__simd/reference.h
+++ b/libcxx/include/experimental/__simd/reference.h
@@ -46,8 +46,7 @@ public:
   _LIBCPP_HIDE_FROM_ABI operator value_type() const noexcept { return __get(); }
 
   template <class _Up, std::enable_if_t<is_assignable_v<value_type&, _Up&&>, int> = 0>
-  _LIBCPP_HIDE_FROM_ABI __simd_reference
-  operator=(_Up&& __v) && noexcept {
+  _LIBCPP_HIDE_FROM_ABI __simd_reference operator=(_Up&& __v) && noexcept {
     __set(static_cast<value_type>(std::forward<_Up>(__v)));
     return {__s_, __idx_};
   }

``````````

</details>


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


More information about the libcxx-commits mailing list