[flang-commits] [flang] Allow do concurrent inside cuf kernel directive (PR #127693)

via flang-commits flang-commits at lists.llvm.org
Thu Feb 20 11:37:42 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 6fde8fe9adc835df50ea57b710781ffe8a6657e8 4eaae6299629f0cde4b4226f30c2b1e57f3cb81b --extensions cpp -- flang/lib/Lower/Bridge.cpp flang/lib/Semantics/check-cuda.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang/lib/Semantics/check-cuda.cpp b/flang/lib/Semantics/check-cuda.cpp
index d2e56d9258..c3f60e2aae 100644
--- a/flang/lib/Semantics/check-cuda.cpp
+++ b/flang/lib/Semantics/check-cuda.cpp
@@ -529,8 +529,10 @@ static int DoConstructTightNesting(
     const auto &loopControl = doConstruct->GetLoopControl();
     if (loopControl) {
       if (const auto *concurrentControl{
-              std::get_if<parser::LoopControl::Concurrent>(&loopControl->u)}) {                                                                             const auto &concurrentHeader =
-            std::get<Fortran::parser::ConcurrentHeader>(concurrentControl->t);                                                                              const auto &controls =
+              std::get_if<parser::LoopControl::Concurrent>(&loopControl->u)}) {
+        const auto &concurrentHeader =
+            std::get<Fortran::parser::ConcurrentHeader>(concurrentControl->t);
+        const auto &controls =
             std::get<std::list<Fortran::parser::ConcurrentControl>>(
                 concurrentHeader.t);
         return controls.size();

``````````

</details>


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


More information about the flang-commits mailing list