[llvm] [ADT] Allow std::next to work on BitVector's set_bits_iterator (PR #80830)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 6 05:12:08 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 42b5b720caf62e0710b9c1e32e894d8606106a19 cf599172f1cfbda42db420d8babd1c4b3bf47950 -- llvm/include/llvm/ADT/BitVector.h llvm/unittests/ADT/BitVectorTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/ADT/BitVector.h b/llvm/include/llvm/ADT/BitVector.h
index 0eaa77b6dd..0d8ebc46d8 100644
--- a/llvm/include/llvm/ADT/BitVector.h
+++ b/llvm/include/llvm/ADT/BitVector.h
@@ -42,7 +42,7 @@ template <typename BitVectorT> class const_set_bits_iterator_impl {
public:
using iterator_category = std::forward_iterator_tag;
- using difference_type = std::ptrdiff_t;
+ using difference_type = std::ptrdiff_t;
using value_type = int;
using pointer = value_type*;
using reference = value_type&;
``````````
</details>
https://github.com/llvm/llvm-project/pull/80830
More information about the llvm-commits
mailing list