[flang-commits] [flang] [Flang][Semantics] Fix incorrect merging of separate module procedure interfaces during USE association (PR #197173)

via flang-commits flang-commits at lists.llvm.org
Thu Aug 27 06:35:36 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 -- flang/lib/Semantics/resolve-names.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/resolve-names.cpp b/flang/lib/Semantics/resolve-names.cpp
index 351e3f642..5e30a4fca 100644
--- a/flang/lib/Semantics/resolve-names.cpp
+++ b/flang/lib/Semantics/resolve-names.cpp
@@ -5984,7 +5984,7 @@ Symbol *SubprogramVisitor::PushSubprogramScope(const parser::Name &name,
         const auto *hostSubp{hostUlt.detailsIf<SubprogramDetails>()};
         if (hostSubp && hostSubp->isInterface() &&
             hostUlt.attrs().test(Attr::MODULE)) {
-              context().messages().Warn(/*isInModuleFile=*/InModuleFile(),
+          context().messages().Warn(/*isInModuleFile=*/InModuleFile(),
               context().languageFeatures(), common::UsageWarning::Portability,
               name.source,
               "Subprogram '%s' in this submodule is missing the MODULE prefix "

``````````

</details>


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


More information about the flang-commits mailing list