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 23f8fac745bdde70ed4f9c585d19c4913734f1b8
6afac123ae1a548a788d05bbf0a8add74f5e0cdc --
clang/test/OpenMP/target_map_both_pointer_pointee_codegen.cpp
offload/test/mapping/map_both_pointer_pointee.c
clang/lib/CodeGen/CGOpenMPRuntime.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/offload/test/mapping/map_both_pointer_pointee.c
b/offload/test/mapping/map_both_pointer_pointee.c
index c23d218b90..4b724823e7 100644
--- a/offload/test/mapping/map_both_pointer_pointee.c
+++ b/offload/test/mapping/map_both_pointer_pointee.c
@@ -18,9 +18,7 @@ int main() {
int *ptr2;
ptr2 = (int *)malloc(sizeof(int) * 100);
#pragma omp target map(ptr1, ptr1[ : 100])
- {
- ptr1[1] = 6;
- }
+ { ptr1[1] = 6; }
// CHECK: 6
printf(" %d \n", ptr1[1]);
#pragma omp target data map(ptr1[ : 5])
@@ -36,9 +34,7 @@ int main() {
printf(" %d %d %d \n", ptr2[2], ptr1[2], ptr1[3]);
free(ptr1);
#pragma omp target map(ptr2, ptr2[ : 100])
- {
- ptr2[1] = 6;
- }
+ { ptr2[1] = 6; }
// CHECK: 6
printf(" %d \n", ptr2[1]);
free(ptr2);
``````````
</details>
https://github.com/llvm/llvm-project/pull/92210
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits