[flang-commits] [flang] [flang][OpenMP] Implement GetGeneratedNestDepthWithReason (PR #191718)

via flang-commits flang-commits at lists.llvm.org
Sun Apr 12 08:16:15 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 cpp,h -- flang/include/flang/Semantics/openmp-utils.h flang/lib/Semantics/openmp-utils.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/openmp-utils.cpp b/flang/lib/Semantics/openmp-utils.cpp
index 7a5b31b1c..436ee3566 100644
--- a/flang/lib/Semantics/openmp-utils.cpp
+++ b/flang/lib/Semantics/openmp-utils.cpp
@@ -998,7 +998,8 @@ std::pair<WithReason<int64_t>, bool> GetAffectedNestDepthWithReason(
       } else {
         Reason reason;
         reason.Say(spec.DirName().source, MsgClauseAbsentAssume,
-            GetUpperName(llvm::omp::Clause::OMPC_depth, version), "a depth of 2");
+            GetUpperName(llvm::omp::Clause::OMPC_depth, version),
+            "a depth of 2");
         return {{2, std::move(reason)}, true};
       }
       break;

``````````

</details>


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


More information about the flang-commits mailing list