[libcxx-commits] [libcxx] [libc++][ranges] Fix the LWG 3568 test for `basic_istream_view` (PR #215589)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Aug 12 23:18:21 PDT 2026
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 origin/main HEAD --extensions cpp -- libcxx/test/std/ranges/range.factories/range.istream.view/ctor.pass.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/ranges/range.factories/range.istream.view/ctor.pass.cpp b/libcxx/test/std/ranges/range.factories/range.istream.view/ctor.pass.cpp
index 77a28a7ab..7e9ec8bf6 100644
--- a/libcxx/test/std/ranges/range.factories/range.istream.view/ctor.pass.cpp
+++ b/libcxx/test/std/ranges/range.factories/range.istream.view/ctor.pass.cpp
@@ -33,7 +33,7 @@ struct NoopExtraction {
template <class CharT, class Traits>
std::basic_istream<CharT, Traits>& operator>>(std::basic_istream<CharT, Traits>& is, const NoopExtraction&) {
-return is; // intentionally doesn't modify the NoopExtraction object
+ return is; // intentionally doesn't modify the NoopExtraction object
}
template <class CharT>
@@ -48,7 +48,7 @@ void test() {
// LWG 3568. value_ must be initialized for basic_istream_view to be constexpr-constructible
{
- static auto fn_local_iss = make_string_stream<CharT>("");
+ static auto fn_local_iss = make_string_stream<CharT>("");
[[maybe_unused]] constexpr auto isv = std::views::istream<int>(fn_local_iss);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/215589
More information about the libcxx-commits
mailing list