[llvm] [ADT] Make concat able to handle ranges with iterators that return by value (such as zip) (PR #112783)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 17 14:53:53 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 23da16933b8ad48a967905369f576e5ec45b985f dfb8a466d49f79db9b9b775a927cc4c4b1c28da3 --extensions h,cpp -- llvm/include/llvm/ADT/STLExtras.h llvm/unittests/ADT/STLExtrasTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/unittests/ADT/STLExtrasTest.cpp b/llvm/unittests/ADT/STLExtrasTest.cpp
index 406ff2bc16..4f37087663 100644
--- a/llvm/unittests/ADT/STLExtrasTest.cpp
+++ b/llvm/unittests/ADT/STLExtrasTest.cpp
@@ -532,7 +532,7 @@ TEST(STLExtrasTest, ValueReturn) {
 }
 
 TEST(STLExtrasTest, ReferenceReturn) {
-  RangeWithValueType<const int&> R(1);
+  RangeWithValueType<const int &> R(1);
   auto C = concat<const int>(R, R);
   auto I = C.begin();
   ASSERT_NE(I, C.end());

``````````

</details>


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


More information about the llvm-commits mailing list