[llvm] [ADT] Add TrieRawHashMap (PR #69528)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 18 14:39:08 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 b8b7c3ba5c42184db016003e907423ef2cbba6c6 6ab1e9d9b85ae59eef43f4b82890a188a6be95be -- llvm/include/llvm/ADT/TrieRawHashMap.h llvm/lib/Support/TrieHashIndexGenerator.h llvm/lib/Support/TrieRawHashMap.cpp llvm/unittests/ADT/TrieRawHashMapTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Support/TrieRawHashMap.cpp b/llvm/lib/Support/TrieRawHashMap.cpp
index af4cd8b57..a6818d434 100644
--- a/llvm/lib/Support/TrieRawHashMap.cpp
+++ b/llvm/lib/Support/TrieRawHashMap.cpp
@@ -155,7 +155,7 @@ struct ThreadSafeTrieRawHashMapBase::ImplType {
   static std::unique_ptr<ImplType> create(size_t StartBit, size_t NumBits) {
     size_t Size = sizeof(ImplType) + getTrieTailSize(StartBit, NumBits);
     void *Memory = ::malloc(Size);
-    ImplType* Impl = ::new (Memory) ImplType(StartBit, NumBits);
+    ImplType *Impl = ::new (Memory) ImplType(StartBit, NumBits);
     return std::unique_ptr<ImplType>(Impl);
   }
 

``````````

</details>


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


More information about the llvm-commits mailing list