[libcxx-commits] [libcxx] [libcxx] <experimental/simd> Add generate constructor of class simd (PR #66737)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 6 23:46:13 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 859f2d032386632562521a99db20923217d98988 692943ee947e0de3064ff1599e74ab341c61fd87 -- libcxx/test/std/experimental/simd/simd.class/simd_ctor_generator.pass.cpp libcxx/include/experimental/__simd/simd.h libcxx/include/experimental/__simd/utility.h libcxx/include/experimental/__simd/vec_ext.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 790046701..954f94c90 100644
--- a/libcxx/include/experimental/__simd/simd.h
+++ b/libcxx/include/experimental/__simd/simd.h
@@ -45,8 +45,7 @@ public:
   _LIBCPP_HIDE_FROM_ABI simd(_Up&& __v) noexcept : __s_(_Impl::__broadcast(static_cast<value_type>(__v))) {}
 
   // generator constructor
-  template <class _Generator,
-            enable_if_t<__can_generate_v<value_type, _Generator, size()>, int> = 0>
+  template <class _Generator, enable_if_t<__can_generate_v<value_type, _Generator, size()>, int> = 0>
   explicit _LIBCPP_HIDE_FROM_ABI simd(_Generator&& __g) : __s_(_Impl::__generate(std::forward<_Generator>(__g))) {}
 
   // scalar access [simd.subscr]

``````````

</details>


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


More information about the libcxx-commits mailing list