[libcxx-commits] [libcxx] [llvm] [libc++] Update the CI to Clang-20 and drop Clang-17 support (PR #117429)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 25 02:16:48 PST 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 aaa0dd2f05ff957a171a87e78578dddc59fc49c2 d272a3738347b665a7aa01d98367968de8721c55 --extensions cpp,h -- libcxx/include/__configuration/compiler.h libcxx/include/__type_traits/promote.h libcxx/src/experimental/time_zone.cpp libcxx/test/libcxx/atomics/diagnose_invalid_memory_order.verify.cpp libcxx/test/libcxx/gdb/gdb_pretty_printer_test.sh.cpp libcxx/test/libcxx/ranges/range.adaptors/range.lazy.split/no_unique_address.compile.pass.cpp libcxx/test/libcxx/ranges/range.adaptors/range.split/no_unique_address.compile.pass.cpp libcxx/test/libcxx/ranges/range.factories/range.istream.view/no_unique_address.compile.pass.cpp libcxx/test/std/atomics/atomics.types.generic/atomics.types.float/fetch_add.pass.cpp libcxx/test/std/atomics/atomics.types.generic/atomics.types.float/fetch_sub.pass.cpp libcxx/test/std/atomics/atomics.types.generic/atomics.types.float/operator.minus_equals.pass.cpp libcxx/test/std/atomics/atomics.types.generic/atomics.types.float/operator.plus_equals.pass.cpp libcxx/test/std/containers/views/mdspan/mdspan/index_operator.pass.cpp libcxx/test/std/containers/views/views.span/span.cons/array.pass.cpp libcxx/test/std/experimental/simd/simd.class/simd_copy.pass.cpp libcxx/test/std/experimental/simd/simd.class/simd_unary.pass.cpp libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array14.pass.cpp libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete14.pass.cpp libcxx/test/std/numerics/c.math/signbit.pass.cpp libcxx/test/std/utilities/expected/expected.expected/ctor/ctor.copy.pass.cpp libcxx/test/std/utilities/format/format.arguments/format.arg/visit.pass.cpp libcxx/test/std/utilities/format/format.arguments/format.arg/visit.return_type.pass.cpp libcxx/test/std/utilities/format/format.arguments/format.arg/visit_format_arg.deprecated.verify.cpp libcxx/test/std/utilities/meta/meta.rel/is_virtual_base_of.pass.cpp libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_implicit_lifetime.pass.cpp libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_implicit_lifetime.verify.cpp libcxx/test/std/utilities/utility/pairs/pairs.pair/nttp.equivalence.compile.pass.cpp libcxx/test/std/utilities/utility/pairs/pairs.pair/nttp.verify.cpp libcxx/test/std/utilities/variant/variant.visit.member/robust_against_adl.pass.cpp libcxx/test/std/utilities/variant/variant.visit.member/visit.pass.cpp libcxx/test/std/utilities/variant/variant.visit.member/visit_return_type.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/std/containers/views/views.span/span.cons/array.pass.cpp b/libcxx/test/std/containers/views/views.span/span.cons/array.pass.cpp
index 5bbdf3ce2a..2b4d856eea 100644
--- a/libcxx/test/std/containers/views/views.span/span.cons/array.pass.cpp
+++ b/libcxx/test/std/containers/views/views.span/span.cons/array.pass.cpp
@@ -93,8 +93,8 @@ constexpr bool testSpan()
     assert(s3.data() == val && s3.size() == 2);
     assert(s4.data() == val && s4.size() == 2);
 
-TEST_DIAGNOSTIC_PUSH
-TEST_CLANG_DIAGNOSTIC_IGNORED("-Wdangling")
+    TEST_DIAGNOSTIC_PUSH
+    TEST_CLANG_DIAGNOSTIC_IGNORED("-Wdangling")
     std::span<const int> s5 = {{1,2}};
 #if TEST_STD_VER >= 26
     std::span<const int, 2> s6({1, 2});
@@ -103,7 +103,7 @@ TEST_CLANG_DIAGNOSTIC_IGNORED("-Wdangling")
 #endif
     assert(s5.size() == 2);  // and it dangles
     assert(s6.size() == 2);  // and it dangles
-TEST_DIAGNOSTIC_POP
+    TEST_DIAGNOSTIC_POP
 
     return true;
 }

``````````

</details>


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


More information about the libcxx-commits mailing list