[Openmp-commits] [openmp] [OpenMP] Fixup bugs found during fuzz testing (PR #143455)

via Openmp-commits openmp-commits at lists.llvm.org
Mon Jun 9 16:02:30 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,c,h -- openmp/runtime/test/env/check_certain_values.c openmp/runtime/test/tasking/no_task_barrier.c openmp/runtime/src/kmp_affinity.cpp openmp/runtime/src/kmp_barrier.cpp openmp/runtime/src/kmp_barrier.h openmp/runtime/src/kmp_ftn_entry.h openmp/runtime/src/kmp_i18n.cpp openmp/runtime/src/kmp_lock.cpp openmp/runtime/src/kmp_runtime.cpp openmp/runtime/src/kmp_settings.cpp openmp/runtime/src/kmp_str.cpp
``````````

</details>

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

``````````diff
diff --git a/openmp/runtime/test/env/check_certain_values.c b/openmp/runtime/test/env/check_certain_values.c
index 99a7a6073..6d2623749 100644
--- a/openmp/runtime/test/env/check_certain_values.c
+++ b/openmp/runtime/test/env/check_certain_values.c
@@ -14,7 +14,7 @@
 int a = 0;
 
 int test() {
-  #pragma omp parallel reduction(+:a)
+#pragma omp parallel reduction(+ : a)
   {
     a += omp_get_thread_num();
   }

``````````

</details>


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


More information about the Openmp-commits mailing list