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

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 17 01:47:27 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 e483673246bdee06e54ec06fd04236bc9fee7f63 1a29e49e8c02714425c5f58558f28a505d1c7876 -- libcxx/test/std/experimental/simd/simd.class/simd_subscr.pass.cpp libcxx/test/std/experimental/simd/simd.mask.class/simd_mask_subscr.pass.cpp libcxx/test/std/experimental/simd/simd.reference/reference_value_type.pass.cpp libcxx/include/experimental/__simd/reference.h libcxx/include/experimental/__simd/simd.h libcxx/include/experimental/__simd/simd_mask.h
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/experimental/__simd/simd.h b/libcxx/include/experimental/__simd/simd.h
index fbc93d407f5f..c71dd625e46c 100644
--- a/libcxx/include/experimental/__simd/simd.h
+++ b/libcxx/include/experimental/__simd/simd.h
@@ -46,7 +46,8 @@ public:
 
   // generator constructor
   template <class _Generator, enable_if_t<__can_generate_v<value_type, _Generator, size()>, int> = 0>
-  explicit _LIBCPP_HIDE_FROM_ABI simd(_Generator&& __g) noexcept : __s_(_Impl::__generate(std::forward<_Generator>(__g))) {}
+  explicit _LIBCPP_HIDE_FROM_ABI simd(_Generator&& __g) noexcept
+      : __s_(_Impl::__generate(std::forward<_Generator>(__g))) {}
 
   // scalar access [simd.subscr]
   _LIBCPP_HIDE_FROM_ABI reference operator[](size_t __i) noexcept { return reference(__s_, __i); }

``````````

</details>


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


More information about the libcxx-commits mailing list