[Openmp-commits] [openmp] [OpenMP][NFC] Flatten plugin-nextgen/common folder sturcture (PR #73725)

via Openmp-commits openmp-commits at lists.llvm.org
Tue Nov 28 16:46:56 PST 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 d6783c7c98ac7a02290d17c5109052f9d71ed914 e898f80ecea96a6fafb3070d5a1fbe68a23718a0 -- openmp/libomptarget/plugins-nextgen/amdgpu/dynamic_hsa/hsa.cpp openmp/libomptarget/plugins-nextgen/cuda/dynamic_cuda/cuda.cpp openmp/libomptarget/plugins-nextgen/common/include/DLWrap.h openmp/libomptarget/plugins-nextgen/common/include/GlobalHandler.h openmp/libomptarget/plugins-nextgen/common/include/JIT.h openmp/libomptarget/plugins-nextgen/common/include/MemoryManager.h openmp/libomptarget/plugins-nextgen/common/include/PluginInterface.h openmp/libomptarget/plugins-nextgen/common/include/RPC.h openmp/libomptarget/plugins-nextgen/common/src/GlobalHandler.cpp openmp/libomptarget/plugins-nextgen/common/src/JIT.cpp openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp openmp/libomptarget/plugins-nextgen/common/src/RPC.cpp openmp/libomptarget/plugins-nextgen/common/src/Utils/ELF.cpp openmp/libomptarget/plugins-nextgen/common/src/Utils/ELF.h
``````````

</details>

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

``````````diff
diff --git a/openmp/libomptarget/plugins-nextgen/common/include/DLWrap.h b/openmp/libomptarget/plugins-nextgen/common/include/DLWrap.h
index 8934e7e701..00610678f9 100644
--- a/openmp/libomptarget/plugins-nextgen/common/include/DLWrap.h
+++ b/openmp/libomptarget/plugins-nextgen/common/include/DLWrap.h
@@ -107,7 +107,9 @@ template <size_t S> struct count {
   static constexpr size_t N = count<S - 1>::N;
 };
 
-template <> struct count<0> { static constexpr size_t N = 0; };
+template <> struct count<0> {
+  static constexpr size_t N = 0;
+};
 
 // Get a constexpr size_t ID, starts at zero
 #define DLWRAP_ID() (dlwrap::type::count<__LINE__>::N)

``````````

</details>


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


More information about the Openmp-commits mailing list