[llvm] [Offload] Fix debug printing for functions implemented in headers (PR #112046)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 11 14:08:43 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 77aa8257acbd773c0c430cd962da1bcfbd5ee94b 5abf8f5f26842202601176b3fefd388cb585e127 --extensions h -- offload/include/Shared/Debug.h offload/plugins-nextgen/common/include/MemoryManager.h
``````````

</details>

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

``````````diff
diff --git a/offload/plugins-nextgen/common/include/MemoryManager.h b/offload/plugins-nextgen/common/include/MemoryManager.h
index 01d8fa664a..4814e447d9 100644
--- a/offload/plugins-nextgen/common/include/MemoryManager.h
+++ b/offload/plugins-nextgen/common/include/MemoryManager.h
@@ -176,7 +176,7 @@ class MemoryManagerTy {
   /// be because the device is OOM. In that case, it will free all unused
   /// memory and then try again.
   OMPTARGET_INLINE void *allocateOrFreeAndAllocateOnDevice(size_t Size,
-                                                          void *HstPtr) {
+                                                           void *HstPtr) {
     void *TgtPtr = allocateOnDevice(Size, HstPtr);
     // We cannot get memory from the device. It might be due to OOM. Let's
     // free all memory in FreeLists and try again.

``````````

</details>


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


More information about the llvm-commits mailing list