[llvm] [DenseMap] Introduce keys, values iterators (PR #138848)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 7 04:01:14 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,cpp -- llvm/include/llvm/ADT/DenseMap.h llvm/unittests/ADT/DenseMapTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/ADT/DenseMapTest.cpp b/llvm/unittests/ADT/DenseMapTest.cpp
index f4a627a65..b9d519a23 100644
--- a/llvm/unittests/ADT/DenseMapTest.cpp
+++ b/llvm/unittests/ADT/DenseMapTest.cpp
@@ -373,7 +373,7 @@ TYPED_TEST(DenseMapTest, KeysValuesIterator) {
SmallSet<typename TypeParam::key_type, 10> ActualKeys;
SmallSet<typename TypeParam::mapped_type, 10> ActualValues;
- for (auto K: this->Map.keys())
+ for (auto K : this->Map.keys())
ActualKeys.insert(K);
for (auto V : this->Map.values())
ActualValues.insert(V);
``````````
</details>
https://github.com/llvm/llvm-project/pull/138848
More information about the llvm-commits
mailing list