[libcxx-commits] [libcxx] [libc++] Add std::hash support for wide _BitInt types (PR #193194)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 21 04:22:08 PDT 2026


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 origin/main HEAD --extensions h,cpp -- libcxx/test/std/utilities/function.objects/unord.hash/integral.bitint.pass.cpp libcxx/include/__functional/hash.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/libcxx/test/std/utilities/function.objects/unord.hash/integral.bitint.pass.cpp b/libcxx/test/std/utilities/function.objects/unord.hash/integral.bitint.pass.cpp
index 91532646d..184b2b211 100644
--- a/libcxx/test/std/utilities/function.objects/unord.hash/integral.bitint.pass.cpp
+++ b/libcxx/test/std/utilities/function.objects/unord.hash/integral.bitint.pass.cpp
@@ -95,7 +95,7 @@ void test_equal_values_same_hash_via_different_paths() {
   T via_wider;
   {
     using U64 = unsigned long long;
-    U64 wide = 42;
+    U64 wide  = 42;
     via_wider = static_cast<T>(wide);
   }
   assert(direct == via_wider);

``````````

</details>


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


More information about the libcxx-commits mailing list