[libcxx-commits] [libcxx] [libc++][test] Use `TEST_MEOW_DIAGNOSTIC_IGNORED` instead of `ADDITIONAL_COMPILE_FLAGS` (PR #75133)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Dec 11 19:44: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 87e2e89019ec4405fa47c3b4585be4e67473b590 644380be1f2d949b693851394362eb65bb4d6082 -- libcxx/test/std/algorithms/alg.modifying.operations/alg.replace/ranges.replace.pass.cpp libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal.pass.cpp libcxx/test/std/algorithms/alg.nonmodifying/alg.find/find.pass.cpp libcxx/test/std/algorithms/alg.nonmodifying/alg.find/ranges.find.pass.cpp libcxx/test/std/atomics/atomics.types.generic/general.compile.pass.cpp libcxx/test/std/atomics/atomics.types.generic/pointer.compile.pass.cpp libcxx/test/std/concepts/concepts.lang/concept.default.init/default_initializable.compile.pass.cpp libcxx/test/std/containers/associative/map/map.modifiers/insert_range.pass.cpp libcxx/test/std/containers/associative/multimap/multimap.modifiers/insert_range.pass.cpp libcxx/test/std/containers/associative/multiset/insert_range.pass.cpp libcxx/test/std/containers/associative/set/insert_range.pass.cpp libcxx/test/std/containers/sequences/array/array.tuple/get.verify.cpp libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/insert_range.pass.cpp libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/insert_range.pass.cpp libcxx/test/std/containers/unord/unord.multiset/insert_range.pass.cpp libcxx/test/std/containers/unord/unord.set/insert_range.pass.cpp libcxx/test/std/containers/views/mdspan/layout_stride/deduction.pass.cpp libcxx/test/std/containers/views/mdspan/mdspan/conversion.pass.cpp libcxx/test/std/depr/depr.c.headers/setjmp_h.compile.pass.cpp libcxx/test/std/depr/depr.numeric.limits.has.denorm/deprecated.verify.cpp libcxx/test/std/input.output/file.streams/fstreams/ifstream.members/buffered_reads.pass.cpp libcxx/test/std/input.output/file.streams/fstreams/ofstream.members/buffered_writes.pass.cpp libcxx/test/std/iterators/iterator.primitives/iterator.operations/advance.pass.cpp libcxx/test/std/language.support/support.runtime/csetjmp.pass.cpp libcxx/test/std/ranges/range.adaptors/range.lazy.split/constraints.compile.pass.cpp libcxx/test/std/ranges/range.utility/range.utility.conv/to.pass.cpp libcxx/test/std/strings/basic.string/string.cons/from_range_deduction.pass.cpp libcxx/test/std/thread/thread.condition/notify_all_at_thread_exit_lwg3343.pass.cpp libcxx/test/std/thread/thread.jthread/assign.move.pass.cpp libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp libcxx/test/std/utilities/meta/meta.unary/dependent_return_type.compile.pass.cpp libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/move.pass.cpp libcxx/test/std/utilities/variant/variant.variant/implicit_ctad.pass.cpp libcxx/test/support/msvc_stdlib_force_include.h libcxx/test/support/test_macros.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal.pass.cpp b/libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal.pass.cpp
index 1f9cb9b9ce..ec71319627 100644
--- a/libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal.pass.cpp
+++ b/libcxx/test/std/algorithms/alg.nonmodifying/alg.equal/equal.pass.cpp
@@ -64,9 +64,9 @@ struct Test {
struct TestNarrowingEqualTo {
template <class UnderlyingType>
TEST_CONSTEXPR_CXX20 void operator()() {
- TEST_DIAGNOSTIC_PUSH
- // MSVC warning C4310: cast truncates constant value
- TEST_MSVC_DIAGNOSTIC_IGNORED(4310)
+ TEST_DIAGNOSTIC_PUSH
+ // MSVC warning C4310: cast truncates constant value
+ TEST_MSVC_DIAGNOSTIC_IGNORED(4310)
UnderlyingType a[] = {
UnderlyingType(0x1000),
@@ -81,7 +81,7 @@ struct TestNarrowingEqualTo {
UnderlyingType(0x1603),
UnderlyingType(0x1604)};
- TEST_DIAGNOSTIC_POP
+ TEST_DIAGNOSTIC_POP
assert(std::equal(a, a + 5, b, std::equal_to<char>()));
#if TEST_STD_VER >= 14
``````````
</details>
https://github.com/llvm/llvm-project/pull/75133
More information about the libcxx-commits
mailing list