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 h,cpp -- 
clang/test/OpenMP/for_private_reduction_codegen.cpp 
openmp/runtime/test/worksharing/for/omp_for_private_reduction.cpp 
clang/lib/CodeGen/CGOpenMPRuntime.cpp clang/lib/CodeGen/CGOpenMPRuntime.h 
clang/lib/CodeGen/CGStmtOpenMP.cpp
``````````

</details>

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

``````````diff
diff --git a/openmp/runtime/test/worksharing/for/omp_for_private_reduction.cpp 
b/openmp/runtime/test/worksharing/for/omp_for_private_reduction.cpp
index 0a3bbafd9..7227b974c 100644
--- a/openmp/runtime/test/worksharing/for/omp_for_private_reduction.cpp
+++ b/openmp/runtime/test/worksharing/for/omp_for_private_reduction.cpp
@@ -1,4 +1,4 @@
-//RUN: %libomp-cxx-compile -fopenmp-version=60  && %libomp-run
+// RUN: %libomp-cxx-compile -fopenmp-version=60  && %libomp-run
 #include <stdio.h>
 #include <omp.h>
 #include "omp_testsuite.h"
@@ -65,8 +65,8 @@ int main(void) {
   int input_array[N];
   int total_errors = 0;
   const float kPiVal = 3.14f;
-  const int kExpectedSum = 45;            // Sum of 0..9
-  const int kExpectedProd = 3628800;      // 10!
+  const int kExpectedSum = 45; // Sum of 0..9
+  const int kExpectedProd = 3628800; // 10!
   const float kExpectedFsum = kPiVal * N; // 3.14f * 10
 
   for (int i = 0; i < N; i++)

``````````

</details>


https://github.com/llvm/llvm-project/pull/134709
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to