[libcxx-commits] [libcxx] [libc++] re-enable clang-tidy in the CI and fix any issues (PR #102658)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Aug 9 12:40:10 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 edf45e4eddbc5a10cc3db4397b3b7100e8f03dcf f1e9f22b6cf64da1437909a170603cdc84714003 --extensions ,inc,cpp,h -- libcxx/include/__atomic/atomic_ref.h libcxx/include/__bit/rotate.h libcxx/include/__chrono/zoned_time.h libcxx/include/__format/format_context.h libcxx/include/__memory_resource/polymorphic_allocator.h libcxx/include/memory_resource libcxx/modules/std/mdspan.inc libcxx/modules/std/new.inc libcxx/test/tools/clang_tidy_checks/header_exportable_declarations.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/modules/std/mdspan.inc b/libcxx/modules/std/mdspan.inc
index 194a1b0682..5e65993383 100644
--- a/libcxx/modules/std/mdspan.inc
+++ b/libcxx/modules/std/mdspan.inc
@@ -15,10 +15,10 @@ export namespace std {
// [mdspan.extents.dextents], alias template dextents
using std::dextents;
-#if _LIBCPP_STD_VER >= 26
+# if _LIBCPP_STD_VER >= 26
// [mdspan.extents.dims]
using std::dims;
-#endif // _LIBCPP_STD_VER >= 26
+# endif // _LIBCPP_STD_VER >= 26
// [mdspan.layout], layout mapping
using std::layout_left;
``````````
</details>
https://github.com/llvm/llvm-project/pull/102658
More information about the libcxx-commits
mailing list