[flang-commits] [flang] [Flang] Reject keyword arguments in statement function calls (PR #198610)
via flang-commits
flang-commits at lists.llvm.org
Sun May 31 04:42: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,h -- flang/lib/Semantics/check-call.cpp flang/lib/Semantics/check-call.h flang/lib/Semantics/expression.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/expression.cpp b/flang/lib/Semantics/expression.cpp
index 5245af4d9..b2cf05d9e 100644
--- a/flang/lib/Semantics/expression.cpp
+++ b/flang/lib/Semantics/expression.cpp
@@ -3770,8 +3770,8 @@ std::optional<characteristics::Procedure> ExpressionAnalyzer::CheckCall(
IsExternalCalledImplicitly(callSite, proc.GetSymbol())};
const Symbol *procSymbol{proc.GetSymbol()};
// Statement functions have implicit interfaces and require the same checks
- bool isStatementFunction{procSymbol &&
- procSymbol->flags().test(Symbol::Flag::StmtFunction)};
+ bool isStatementFunction{
+ procSymbol && procSymbol->flags().test(Symbol::Flag::StmtFunction)};
std::optional<characteristics::Procedure> chars;
if (procSymbol && procSymbol->has<semantics::ProcEntityDetails>() &&
procSymbol->owner().IsGlobal()) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/198610
More information about the flang-commits
mailing list