[flang-commits] [flang] [flang][OpenMP] Support custom mappers in target update to/from clauses (PR #169673)

via flang-commits flang-commits at lists.llvm.org
Thu Nov 27 11:04:37 PST 2025


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 -- flang/lib/Lower/OpenMP/ClauseProcessor.cpp flang/lib/Semantics/resolve-names.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/flang/lib/Semantics/resolve-names.cpp b/flang/lib/Semantics/resolve-names.cpp
index a870d821e..71a0f97ea 100644
--- a/flang/lib/Semantics/resolve-names.cpp
+++ b/flang/lib/Semantics/resolve-names.cpp
@@ -1887,8 +1887,8 @@ void OmpVisitor::ResolveMapperModifier(parser::OmpMapper &mapper) {
     // declaration so lowering can recognize and handle it. Emit an
     // error for any other missing mapper identifier.
     if (mapper.v.source.ToString() == "default") {
-      mapper.v.symbol = &MakeSymbol(
-          mapper.v, MiscDetails{MiscDetails::Kind::ConstructName});
+      mapper.v.symbol =
+          &MakeSymbol(mapper.v, MiscDetails{MiscDetails::Kind::ConstructName});
     } else {
       context().Say(
           mapper.v.source, "'%s' not declared"_err_en_US, mapper.v.source);

``````````

</details>


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


More information about the flang-commits mailing list