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 f8afa763c6194f5bf485480e1fb94b953942f876 157744f968ff9bc23efdfd0ee5c9a3e23f9413da -- clang/lib/CodeGen/CGOpenMPRuntime.cpp clang/test/OpenMP/target_data_use_device_addr_codegen.cpp clang/test/OpenMP/target_map_both_pointer_pointee_codegen.cpp offload/test/mapping/map_both_pointer_pointee.c `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp index 1fc474f1ae..d11d4277cb 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp +++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp @@ -8031,11 +8031,11 @@ private: for (const MapInfo &L : M) { const Expr *E = L.VarRef; if (VD && E && VD->getType()->isAnyPointerType() && - isa<DeclRefExpr>(E)) + isa<DeclRefExpr>(E)) HasMapBasePtr = true; if (VD && E && VD->getType()->isAnyPointerType() && (isa<ArraySectionExpr>(E) || isa<ArraySubscriptExpr>(E))) - HasMapArraySec = true; + HasMapArraySec = true; } } for (const auto &M : Data.second) { diff --git a/offload/test/mapping/map_both_pointer_pointee.c b/offload/test/mapping/map_both_pointer_pointee.c index d8affd81d3..65d7d3d4d2 100644 --- a/offload/test/mapping/map_both_pointer_pointee.c +++ b/offload/test/mapping/map_both_pointer_pointee.c @@ -43,8 +43,8 @@ int main() { a[1] = 111; int *p = &a[0]; // CHECK: 111 - printf("%d %p %p\n", p[1], p, &p); // 111 hst_p1 hst_p2 -#pragma omp target data map(to:p[1:3]) map(p) + printf("%d %p %p\n", p[1], p, &p); // 111 hst_p1 hst_p2 +#pragma omp target data map(to : p[1 : 3]) map(p) #pragma omp target data use_device_addr(p) { #pragma omp target has_device_addr(p) @@ -57,6 +57,6 @@ int main() { } } // CHECK: 111 - printf("%d %p %p\n", p[1], p, &p); // 111 hst_p1 hst_p2 + printf("%d %p %p\n", p[1], p, &p); // 111 hst_p1 hst_p2 return 0; } `````````` </details> https://github.com/llvm/llvm-project/pull/94802 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits