[libcxx-commits] [libcxx] [libc++] P3029R1: Better `mdspan`'s CTAD (PR #87873)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Apr 6 02:05:32 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 770202343ebce1f2bc0745c78e298e251f204bee 730a76d3693abb5394315fd3f9210bd2e719b691 -- libcxx/include/__fwd/span.h libcxx/include/__mdspan/mdspan.h libcxx/include/mdspan libcxx/include/span libcxx/test/std/containers/views/mdspan/mdspan/deduction.pass.cpp libcxx/test/std/containers/views/views.span/span.cons/deduct.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/__mdspan/mdspan.h b/libcxx/include/__mdspan/mdspan.h
index ed029ae0a0..7d57bf199f 100644
--- a/libcxx/include/__mdspan/mdspan.h
+++ b/libcxx/include/__mdspan/mdspan.h
@@ -275,8 +275,8 @@ explicit mdspan(_ElementType*, _OtherIndexTypes...)
 #  else
 template <class _ElementType, class... _OtherIndexTypes>
   requires((is_convertible_v<_OtherIndexTypes, size_t> && ...) && (sizeof...(_OtherIndexTypes) > 0))
-explicit mdspan(_ElementType*, _OtherIndexTypes...)
-    -> mdspan<_ElementType, extents<size_t, __maybe_static_ext<_OtherIndexTypes>...>>;
+explicit mdspan(_ElementType*,
+                _OtherIndexTypes...) -> mdspan<_ElementType, extents<size_t, __maybe_static_ext<_OtherIndexTypes>...>>;
 #  endif
 
 template <class _Pointer>

``````````

</details>


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


More information about the libcxx-commits mailing list