[libcxx-commits] [libcxx] [libc++] Refactor for_each_n (PR #150635)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 25 08:45:20 PDT 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 HEAD~1 HEAD --extensions h -- libcxx/include/__algorithm/for_each_n.h libcxx/include/__algorithm/for_each_n_segment.h libcxx/include/__algorithm/ranges_for_each_n.h libcxx/include/__iterator/segmented_iterator.h libcxx/include/__iterator/unreachable_sentinel.h
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/__iterator/unreachable_sentinel.h b/libcxx/include/__iterator/unreachable_sentinel.h
index 0351b88d4..543676d8a 100644
--- a/libcxx/include/__iterator/unreachable_sentinel.h
+++ b/libcxx/include/__iterator/unreachable_sentinel.h
@@ -22,7 +22,8 @@
 
 _LIBCPP_BEGIN_NAMESPACE_STD
 
-inline constexpr struct __unreachable_sentinel_t {} __unreachable_sentinel;
+inline constexpr struct __unreachable_sentinel_t {
+} __unreachable_sentinel;
 
 template <class _UnreachableSentinel,
           class _Iter,

``````````

</details>


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


More information about the libcxx-commits mailing list