[clang] [openmp] [OpenMP][Fix] Fix test initializations (PR #74797)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 7 18:34:47 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 4162a9bca42a1152cdf4ae92ff7b90351c10f332 144d2ad42f5b8c9b89881d6238684cfd799a8270 -- clang/test/OpenMP/map_struct_ordering.cpp openmp/libomptarget/test/offloading/struct_mapping_with_pointers.cpp clang/lib/CodeGen/CGOpenMPRuntime.cpp openmp/libomptarget/test/offloading/back2back_distribute.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/openmp/libomptarget/test/offloading/back2back_distribute.c b/openmp/libomptarget/test/offloading/back2back_distribute.c
index 17eb6127f0..30cdd69776 100644
--- a/openmp/libomptarget/test/offloading/back2back_distribute.c
+++ b/openmp/libomptarget/test/offloading/back2back_distribute.c
@@ -22,8 +22,7 @@ int main(int argc, char *argv[]) {
double * b = (double *) malloc(MAX_N * sizeof(double));
double * c = (double *) malloc(MAX_N * sizeof(double));
-
- for (int i = 0 ; i < MAX_N ; i++) {
+ for (int i = 0; i < MAX_N; i++) {
d[i] = d_h[i] = a_h[i] = 0.0;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/74797
More information about the cfe-commits
mailing list