[llvm] [Offload] Implement `olShutDown` (PR #144055)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 16 02:08:03 PDT 2025


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 HEAD~1 HEAD --extensions cpp,h -- offload/unittests/OffloadAPI/init/olInit.cpp offload/liboffload/src/OffloadImpl.cpp offload/plugins-nextgen/amdgpu/src/rtl.cpp offload/plugins-nextgen/common/include/PluginInterface.h offload/plugins-nextgen/common/src/PluginInterface.cpp offload/plugins-nextgen/cuda/src/rtl.cpp offload/unittests/OffloadAPI/common/Environment.cpp
``````````

</details>

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

``````````diff
diff --git a/offload/unittests/OffloadAPI/init/olInit.cpp b/offload/unittests/OffloadAPI/init/olInit.cpp
index 7e9eb4f94..bca7924f6 100644
--- a/offload/unittests/OffloadAPI/init/olInit.cpp
+++ b/offload/unittests/OffloadAPI/init/olInit.cpp
@@ -18,7 +18,7 @@ TEST_F(olInitTest, Success) {
 }
 
 TEST_F(olInitTest, RepeatedInit) {
-  for (size_t I = 0; I < 10; I ++) {
+  for (size_t I = 0; I < 10; I++) {
     ASSERT_SUCCESS(olInit());
     ASSERT_SUCCESS(olShutDown());
   }

``````````

</details>


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


More information about the llvm-commits mailing list