[libcxx-commits] [libcxx] [libc+][ranges] Applied `[[nodiscard]]` to `repeat_view` (PR #173712)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Dec 27 00:19:40 PST 2025


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 h,cpp -- libcxx/test/libcxx/ranges/range.factories/range.repeat.view/nodiscard.verify.cpp libcxx/include/__ranges/repeat_view.h --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/libcxx/ranges/range.factories/range.repeat.view/nodiscard.verify.cpp b/libcxx/test/libcxx/ranges/range.factories/range.repeat.view/nodiscard.verify.cpp
index 3008df940..2b1d14991 100644
--- a/libcxx/test/libcxx/ranges/range.factories/range.repeat.view/nodiscard.verify.cpp
+++ b/libcxx/test/libcxx/ranges/range.factories/range.repeat.view/nodiscard.verify.cpp
@@ -14,7 +14,7 @@
 
 void test() {
   auto uv = std::views::repeat(49);
-  auto v = std::views::repeat(94, 82);
+  auto v  = std::views::repeat(94, 82);
 
   // [range.repeat.view]
 

``````````

</details>


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


More information about the libcxx-commits mailing list