[Openmp-commits] [clang] [openmp] [Clang][OpenMP] Fix ordering of processing of map clauses when mapping a struct. (PR #72410)

via Openmp-commits openmp-commits at lists.llvm.org
Wed Nov 15 08:43:52 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 cb1a6392ce541b74a700d9440f7c0a832ca77d2b 6f9450b5fa9ff47c35e7498b3a536a218655a9d6 -- openmp/libomptarget/test/offloading/struct_mapping_with_pointers.cpp clang/lib/CodeGen/CGOpenMPRuntime.cpp
``````````

</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 50518c4615..0079530f90 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -7749,8 +7749,8 @@ private:
           const Expr *E = (C->getMapLoc().isValid()) ? *EI : nullptr;
           InfoGen(std::get<0>(L), Kind, std::get<1>(L), C->getMapType(),
                   C->getMapTypeModifiers(), std::nullopt,
-                  /*ReturnDevicePointer=*/false, C->isImplicit(), std::get<2>(L),
-                  E);
+                  /*ReturnDevicePointer=*/false, C->isImplicit(),
+                  std::get<2>(L), E);
           ++EI;
         }
       }
@@ -7773,8 +7773,8 @@ private:
           const Expr *E = (C->getMapLoc().isValid()) ? *EI : nullptr;
           InfoGen(std::get<0>(L), Kind, std::get<1>(L), C->getMapType(),
                   C->getMapTypeModifiers(), std::nullopt,
-                  /*ReturnDevicePointer=*/false, C->isImplicit(), std::get<2>(L),
-                  E);
+                  /*ReturnDevicePointer=*/false, C->isImplicit(),
+                  std::get<2>(L), E);
           ++EI;
         }
       }

``````````

</details>


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


More information about the Openmp-commits mailing list