[flang-commits] [flang] [Flang] Handle self-referencing KIND selectors (PR #216668)

via flang-commits flang-commits at lists.llvm.org
Mon Aug 17 02:34:25 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 74da9ebe3..7b201d9cf 100644
--- a/flang/lib/Semantics/resolve-names.cpp
+++ b/flang/lib/Semantics/resolve-names.cpp
@@ -10580,9 +10580,8 @@ void ResolveNamesVisitor::PreSpecificationConstruct(
       spec.u);
 }
 
-static bool
-IsCallOfDeclaredEntity(const parser::Call &call,
-                       const std::list<parser::EntityDecl> &entities) {
+static bool IsCallOfDeclaredEntity(
+    const parser::Call &call, const std::list<parser::EntityDecl> &entities) {
   // Pure query: do not resolve names or modify symbols/scopes.
   const auto &procDesignator{std::get<parser::ProcedureDesignator>(call.t)};
 

``````````

</details>


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


More information about the flang-commits mailing list