[flang-commits] [flang] users/cchen/flang metadirective loop (PR #195344)
via flang-commits
flang-commits at lists.llvm.org
Fri May 1 13:15:35 PDT 2026
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 h,cpp -- flang/lib/Lower/OpenMP/DataSharingProcessor.cpp flang/lib/Lower/OpenMP/OpenMP.cpp flang/lib/Lower/OpenMP/Utils.cpp flang/lib/Lower/OpenMP/Utils.h --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/Lower/OpenMP/DataSharingProcessor.cpp b/flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
index 4a8c397a9..d7f7deeec 100644
--- a/flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
+++ b/flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
@@ -116,8 +116,7 @@ DataSharingProcessor::DataSharingProcessor(
// (e.g. loop iteration variables).
if (isMetadirectiveEval(eval) && eval.hasNestedEvaluations()) {
for (auto &nestedEval : eval.getNestedEvaluations())
- nestedEval.visit(
- [&](const auto &node) { parser::Walk(node, visitor); });
+ nestedEval.visit([&](const auto &node) { parser::Walk(node, visitor); });
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/195344
More information about the flang-commits
mailing list