[flang-commits] [flang] [flang] Reject type bound procedure overrides with mismatched passed-object dummy names (PR #210876)
via flang-commits
flang-commits at lists.llvm.org
Mon Jul 20 22:12:01 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/check-declarations.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/check-declarations.cpp b/flang/lib/Semantics/check-declarations.cpp
index 10efb2a8a..bdd12811c 100644
--- a/flang/lib/Semantics/check-declarations.cpp
+++ b/flang/lib/Semantics/check-declarations.cpp
@@ -2799,7 +2799,8 @@ void CheckHelper::CheckProcBinding(
} else if (!OverrideDummyNamesMatch(
*bindingChars, *overriddenChars)) {
SayWithDeclaration(*overridden,
- "Passed-object dummy arguments of type-bound procedure '%s' "
+ "Passed-object dummy arguments of type-bound procedure "
+ "'%s' "
"and its override must correspond by name and position"_err_en_US,
symbol.name());
} else if (!bindingChars->CanOverride(
``````````
</details>
https://github.com/llvm/llvm-project/pull/210876
More information about the flang-commits
mailing list