[llvm] [ADT] Allow reverse to find free rbegin/rend functions (PR #87840)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 5 16:31:02 PDT 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 5748ad84e5e8e5621f221199cc290666f00e2a30 40c47d8a3126a64b2b89ea8f909cffb38531a681 -- llvm/include/llvm/ADT/ADL.h llvm/include/llvm/ADT/STLExtras.h llvm/unittests/ADT/IteratorTest.cpp llvm/unittests/ADT/RangeAdapterTest.cpp llvm/unittests/ADT/STLExtrasTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/ADT/ADL.h b/llvm/include/llvm/ADT/ADL.h
index 812d9a4b52..b4a79e178c 100644
--- a/llvm/include/llvm/ADT/ADL.h
+++ b/llvm/include/llvm/ADT/ADL.h
@@ -40,16 +40,16 @@ constexpr auto end_impl(RangeT &&range)
using std::rbegin;
template <typename RangeT>
-constexpr auto rbegin_impl(RangeT &&range)
- -> decltype(rbegin(std::forward<RangeT>(range))) {
+constexpr auto
+rbegin_impl(RangeT &&range) -> decltype(rbegin(std::forward<RangeT>(range))) {
return rbegin(std::forward<RangeT>(range));
}
using std::rend;
template <typename RangeT>
-constexpr auto rend_impl(RangeT &&range)
- -> decltype(rend(std::forward<RangeT>(range))) {
+constexpr auto
+rend_impl(RangeT &&range) -> decltype(rend(std::forward<RangeT>(range))) {
return rend(std::forward<RangeT>(range));
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/87840
More information about the llvm-commits
mailing list