[libcxx-commits] [libcxx] [libc++] Disallow character types being index types of `extents` (PR #105832)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 23 06:49:35 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 f142f8afe21bceb00fb495468aa0b5043e98c419 9cf646fc6ff097f618be0df6d90f91e7be80f4a8 --extensions cpp,h -- libcxx/test/std/containers/views/mdspan/extents/index_type.verify.cpp libcxx/include/__mdspan/extents.h
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/__mdspan/extents.h b/libcxx/include/__mdspan/extents.h
index 54577f2c58..4152fb69db 100644
--- a/libcxx/include/__mdspan/extents.h
+++ b/libcxx/include/__mdspan/extents.h
@@ -18,8 +18,8 @@
 #define _LIBCPP___MDSPAN_EXTENTS_H
 
 #include <__assert>
-#include <__config>
 #include <__concepts/arithmetic.h>
+#include <__config>
 #include <__type_traits/common_type.h>
 #include <__type_traits/is_convertible.h>
 #include <__type_traits/is_nothrow_constructible.h>

``````````

</details>


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


More information about the libcxx-commits mailing list