[flang-commits] [flang] [flang][OpenMP] Implement iterator that flattens BLOCK constructs (PR #180981)

via flang-commits flang-commits at lists.llvm.org
Thu Feb 12 11:47:11 PST 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 cpp,h -- flang/include/flang/Parser/openmp-utils.h flang/lib/Parser/openmp-utils.cpp flang/lib/Semantics/check-omp-loop.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/include/flang/Parser/openmp-utils.h b/flang/include/flang/Parser/openmp-utils.h
index a77af90ff..e60b51439 100644
--- a/flang/include/flang/Parser/openmp-utils.h
+++ b/flang/include/flang/Parser/openmp-utils.h
@@ -368,8 +368,7 @@ template <typename Iterator = ExecutionPartIterator> struct ExecutionPartRange {
       Step stepping = Step::Default,
       const ExecutionPartConstruct *owner = nullptr)
       : begin_(begin, end, stepping, owner), end_() {}
-  template <typename R,
-      typename = decltype(std::declval<R>().begin()),
+  template <typename R, typename = decltype(std::declval<R>().begin()),
       typename = decltype(std::declval<R>().end())>
   ExecutionPartRange(const R &range, Step stepping = Step::Default,
       const ExecutionPartConstruct *owner = nullptr)

``````````

</details>


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


More information about the flang-commits mailing list