[flang-commits] [flang] [flang][OpenACC] Support acc routine info on ProcEntityDetails for separate compilation (PR #192367)

via flang-commits flang-commits at lists.llvm.org
Wed Apr 15 18:02:49 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/symbol.h flang/lib/Lower/CallInterface.cpp flang/lib/Semantics/resolve-directives.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/Lower/CallInterface.cpp b/flang/lib/Lower/CallInterface.cpp
index 1aad33e99..cd94f4d36 100644
--- a/flang/lib/Lower/CallInterface.cpp
+++ b/flang/lib/Lower/CallInterface.cpp
@@ -725,9 +725,8 @@ void Fortran::lower::CallInterface<T>::declare() {
             genOpenACCRoutineConstruct(converter, module, func,
                                        subpDetails->openACCRoutineInfos());
           }
-        } else if (const auto *procDetails{
-                       ultimate.detailsIf<
-                           Fortran::semantics::ProcEntityDetails>()}) {
+        } else if (const auto *procDetails{ultimate.detailsIf<
+                       Fortran::semantics::ProcEntityDetails>()}) {
           if (!procDetails->openACCRoutineInfos().empty()) {
             genOpenACCRoutineConstruct(converter, module, func,
                                        procDetails->openACCRoutineInfos());

``````````

</details>


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


More information about the flang-commits mailing list