[llvm] [OFFLOAD] Stricter enforcement of user offload disable (PR #133470)

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 28 12:03:34 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 71f43a7c42a37d18be98b0885d62ef76e658f242 df2585292f3b61ffa419c69e7490d773d7432cc1 --extensions h,cpp -- offload/include/OffloadPolicy.h offload/libomptarget/OffloadRTL.cpp
``````````

</details>

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

``````````diff
diff --git a/offload/include/OffloadPolicy.h b/offload/include/OffloadPolicy.h
index 03af0915fa..75440d801d 100644
--- a/offload/include/OffloadPolicy.h
+++ b/offload/include/OffloadPolicy.h
@@ -53,7 +53,7 @@ class OffloadPolicy {
 
 public:
   static bool isOffloadDisabled() {
-    if((kmp_target_offload_kind_t)__kmpc_get_target_offload() == 
+    if ((kmp_target_offload_kind_t)__kmpc_get_target_offload() ==
         tgt_disabled) {
       return true;
     }

``````````

</details>


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


More information about the llvm-commits mailing list