[libcxx-commits] [libcxx] [libc++] Add randomize unspecified stability in `__hash_table` (PR #105982)

via libcxx-commits libcxx-commits at lists.llvm.org
Sun Aug 25 05:23:10 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 99b85cae628c1cc5641944290712cd84ccf1f6c8 e60b49aea1ef150b05e5708ba375457e3b176d68 --extensions ,cpp -- libcxx/test/libcxx/containers/unord/hash_table_randomize_order.pass.cpp libcxx/include/__hash_table
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/libcxx/containers/unord/hash_table_randomize_order.pass.cpp b/libcxx/test/libcxx/containers/unord/hash_table_randomize_order.pass.cpp
index bec3c5d353..1db6857f58 100644
--- a/libcxx/test/libcxx/containers/unord/hash_table_randomize_order.pass.cpp
+++ b/libcxx/test/libcxx/containers/unord/hash_table_randomize_order.pass.cpp
@@ -72,8 +72,6 @@ int main(int, char**) {
   test_randomization<std::unordered_set<int>>([i]() mutable { return i++; });
   test_randomization<std::unordered_map<int, int>>([i, j]() mutable { return std::make_pair(i++, j++); });
   test_randomization<std::unordered_multiset<int>>([i]() mutable { return i++ % 32; });
-  test_randomization<std::unordered_multimap<int, int>>([i, j]() mutable {
-    return std::make_pair(i++ % 32, j++);
-  });
+  test_randomization<std::unordered_multimap<int, int>>([i, j]() mutable { return std::make_pair(i++ % 32, j++); });
   return 0;
 }

``````````

</details>


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


More information about the libcxx-commits mailing list