[libcxx-commits] [libcxx] [libcxx] renames local variable to avoid shadowing werror (PR #77672)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jan 10 14:29:53 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 5c9b713394486be91dc181062e5c01d696c30787 4fd5e776772500297f3e609373d15bd726076b84 -- libcxx/test/std/ranges/range.adaptors/range.join/range.join.sentinel/ctor.other.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/std/ranges/range.adaptors/range.join/range.join.sentinel/ctor.other.pass.cpp b/libcxx/test/std/ranges/range.adaptors/range.join/range.join.sentinel/ctor.other.pass.cpp
index 8e78c3732e..1fcbe02a52 100644
--- a/libcxx/test/std/ranges/range.adaptors/range.join/range.join.sentinel/ctor.other.pass.cpp
+++ b/libcxx/test/std/ranges/range.adaptors/range.join/range.join.sentinel/ctor.other.pass.cpp
@@ -71,7 +71,7 @@ constexpr bool test() {
         BufferView<forward_iterator<const Inner*>, sentinel_wrapper<forward_iterator<const Inner*>>,
                    bidirectional_iterator<Inner*>, sentinel_wrapper<bidirectional_iterator<Inner*>>>;
     using JoinView = std::ranges::join_view<ConstInconvertibleOuter>;
-    using sentinel_t     = std::ranges::sentinel_t<JoinView>;
+    using sentinel_t       = std::ranges::sentinel_t<JoinView>;
     using const_sentinel_t = std::ranges::sentinel_t<const JoinView>;
     static_assert(!std::constructible_from<sentinel_t, const_sentinel_t>);
     static_assert(!std::constructible_from<const_sentinel_t, sentinel_t>);

``````````

</details>


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


More information about the libcxx-commits mailing list