[libcxx-commits] [libcxx] [libc++] tests with picolibc: Fix iterator diff_type to std::streamoff (PR #74072)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Dec 1 06:41:23 PST 2023
Dominik =?utf-8?q?Wójt?= <dominik.wojt at arm.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/74072 at github.com>
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 e59a0cd7d80a9f1ab803c4ff7416c77e9a34ed1d df185028ba3c787bc4cf5d26a1e28dfc3e93b85b -- libcxx/test/std/iterators/iterator.primitives/iterator.traits/cxx20_iterator_traits.compile.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/iterators/iterator.primitives/iterator.traits/cxx20_iterator_traits.compile.pass.cpp b/libcxx/test/std/iterators/iterator.primitives/iterator.traits/cxx20_iterator_traits.compile.pass.cpp
index 5dea3a00bf..e8e3350777 100644
--- a/libcxx/test/std/iterators/iterator.primitives/iterator.traits/cxx20_iterator_traits.compile.pass.cpp
+++ b/libcxx/test/std/iterators/iterator.primitives/iterator.traits/cxx20_iterator_traits.compile.pass.cpp
@@ -148,7 +148,8 @@ static_assert(testConst<std::istream_iterator<int, char>, std::input_iterator_ta
#if !defined(TEST_HAS_NO_LOCALIZATION)
// libc++-specific since pointer type is unspecified:
-LIBCPP_STATIC_ASSERT(test<std::istreambuf_iterator<char>, std::input_iterator_tag, char, std::streamoff, char, char*>());
+LIBCPP_STATIC_ASSERT(
+ test<std::istreambuf_iterator<char>, std::input_iterator_tag, char, std::streamoff, char, char*>());
static_assert(test<std::move_iterator<int*>, std::random_access_iterator_tag, int, std::ptrdiff_t, int&&, int*>());
static_assert(testIOIterator<std::ostream_iterator<int, char>, std::output_iterator_tag>());
static_assert(testIOIterator<std::ostreambuf_iterator<int, char>, std::output_iterator_tag>());
``````````
</details>
https://github.com/llvm/llvm-project/pull/74072
More information about the libcxx-commits
mailing list