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 origin/main HEAD --extensions cpp,c --
clang/test/OpenMP/target_update_strided_ptr_messages_from.c
clang/test/OpenMP/target_update_strided_ptr_messages_to.c
clang/test/OpenMP/target_update_strided_ptr_multiple_messages_from.c
clang/test/OpenMP/target_update_strided_ptr_multiple_messages_to.c
clang/test/OpenMP/target_update_strided_ptr_partial_messages_from.c
clang/test/OpenMP/target_update_strided_ptr_partial_messages_to.c
offload/test/offloading/strided_ptr_multiple_update_from.c
offload/test/offloading/strided_ptr_multiple_update_to.c
offload/test/offloading/strided_ptr_partial_update_from.c
offload/test/offloading/strided_ptr_partial_update_to.c
offload/test/offloading/target_update_from.c
offload/test/offloading/target_update_strided_struct_from.c
offload/test/offloading/target_update_strided_struct_multiple_from.c
offload/test/offloading/target_update_strided_struct_multiple_to.c
offload/test/offloading/target_update_strided_struct_partial_from.c
offload/test/offloading/target_update_strided_struct_partial_to.c
offload/test/offloading/target_update_strided_struct_to.c
offload/test/offloading/target_update_to.c
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/test/OpenMP/target_update_codegen.cpp
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
index 942bd3003..da2671965 100644
--- a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+++ b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
@@ -9259,8 +9259,8 @@ Error OpenMPIRBuilder::emitOffloadingArrays(
bool IsNonContigEntry =
IsNonContiguous &&
(static_cast<std::underlying_type_t<OpenMPOffloadMappingFlags>>(
- CombinedInfo.Types[I] &
- OpenMPOffloadMappingFlags::OMP_MAP_NON_CONTIG) != 0);
+ CombinedInfo.Types[I] &
+ OpenMPOffloadMappingFlags::OMP_MAP_NON_CONTIG) != 0);
// For NON_CONTIG entries ArgSizes must carry the dimension count
// (number of descriptor_dim records) – NOT the byte size expression.
// Variable subsection forms (e.g. 0:s.len/2:2) previously produced a
``````````
</details>
https://github.com/llvm/llvm-project/pull/169889
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits