[llvm] Inline operator== and operator!= (PR #67958)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 3 00:44:49 PDT 2023


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 53179129edbff13644b7c46336773fb8740899c9 8494fea5ad62645bcdc93e4e886795d9de65379c -- llvm/include/llvm/ADT/PagedVector.h
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/ADT/PagedVector.h b/llvm/include/llvm/ADT/PagedVector.h
index 39d569b8df8b..d1ef628c48ad 100644
--- a/llvm/include/llvm/ADT/PagedVector.h
+++ b/llvm/include/llvm/ADT/PagedVector.h
@@ -217,9 +217,9 @@ public:
 
   private:
     void verify() {
-      assert(ElementIdx == PV->Size ||
-             (ElementIdx < PV->Size &&
-              PV->PageToDataPtrs[ElementIdx / PageSize]));
+      assert(
+          ElementIdx == PV->Size ||
+          (ElementIdx < PV->Size && PV->PageToDataPtrs[ElementIdx / PageSize]));
     }
 
     bool equals(const MaterializedIterator &Other) const {

``````````

</details>


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


More information about the llvm-commits mailing list