[libcxx-commits] [libcxx] [libc++] <experimental/simd> Add compound assignment operators for simd reference (PR #86761)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 26 20:06:27 PDT 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 5c663aa9ae4656c46d09914994859118759b426b 45a9453e7168b2d440031a1b49e06308c4a45d9a -- libcxx/test/std/experimental/simd/simd.reference/reference_operators.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 ea8a374290..83a7c5a3da 100644
--- a/libcxx/include/experimental/__simd/reference.h
+++ b/libcxx/include/experimental/__simd/reference.h
@@ -58,9 +58,10 @@ public:
 
 #  define _LIBCXX_SIMD_REFERENCE_OP_(__op)                                                                             \
     template <class _Up>                                                                                               \
-    enable_if_t<is_void_v<void_t<decltype(std::declval<value_type&>() __op## = std::declval<_Up>())>>,                 \
-                __simd_reference> _LIBCPP_HIDE_FROM_ABI                                                                \
-    operator __op##=(_Up&& __v)&& noexcept {                                                                           \
+        enable_if_t<is_void_v<void_t<decltype(std::declval<value_type&>() __op## = std::declval<_Up>())>>,             \
+                    __simd_reference> _LIBCPP_HIDE_FROM_ABI                                                            \
+        operator __op##=(_Up&& __v) &&                                                                                 \
+        noexcept {                                                                                                     \
       __set(__get() __op static_cast<value_type>(std::forward<_Up>(__v)));                                             \
       return {__s_, __idx_};                                                                                           \
     }

``````````

</details>


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


More information about the libcxx-commits mailing list