[libcxx-commits] [libcxx] Improvements to std::array<T, 0>. (PR #74657)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Dec 6 14:00:57 PST 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 92fccea2e50030ac849313010e2d3914b953c6c6 51e7c79ee94a2bd0a5661a0b6de6fa680a2c1e00 -- libcxx/include/__config libcxx/include/array libcxx/test/std/concepts/concepts.lang/concept.default.init/default_initializable.compile.pass.cpp libcxx/test/std/containers/sequences/array/array.cons/implicit_copy.pass.cpp libcxx/test/std/containers/sequences/array/size_and_alignment.pass.cpp libcxx/test/std/containers/views/mdspan/extents/CtorTestCombinations.h
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/std/containers/sequences/array/size_and_alignment.pass.cpp b/libcxx/test/std/containers/sequences/array/size_and_alignment.pass.cpp
index 0477cef42e..eaeb8f99eb 100644
--- a/libcxx/test/std/containers/sequences/array/size_and_alignment.pass.cpp
+++ b/libcxx/test/std/containers/sequences/array/size_and_alignment.pass.cpp
@@ -41,7 +41,6 @@ struct test {
   static_assert(TEST_ALIGNOF(ArrayT) == TEST_ALIGNOF(MyArrayT), "");
 };
 
-
 #ifdef _LIBCPP_ABI_ZERO_SIZE_ARRAY_HAS_NO_DATA
 template <class T>
 struct test<T, 0> {

``````````

</details>


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


More information about the libcxx-commits mailing list