[flang-commits] [flang] [llvm] [Flang][OpenMP] Remove close map type member removal code from MapInfoFinalization (PR #219438)
via flang-commits
flang-commits at lists.llvm.org
Fri Sep 11 19:00:24 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 h,cpp -- flang/lib/Lower/OpenMP/Utils.cpp flang/lib/Optimizer/OpenMP/MapInfoFinalization.cpp flang/lib/Semantics/check-omp-structure.cpp flang/lib/Semantics/check-omp-structure.h --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-omp-structure.cpp b/flang/lib/Semantics/check-omp-structure.cpp
index 3ef581652..86b6dcea4 100644
--- a/flang/lib/Semantics/check-omp-structure.cpp
+++ b/flang/lib/Semantics/check-omp-structure.cpp
@@ -126,10 +126,10 @@ static const parser::Name *GetBaseName(const parser::DataRef &dataRef) {
}
static const Symbol *GetBaseObjectSymbol(const parser::OmpObject &object) {
- if (const parser::Name * name{GetCommonBlockFromObj(object)})
+ if (const parser::Name *name{GetCommonBlockFromObj(object)})
return name->symbol ? &name->symbol->GetUltimate() : nullptr;
- if (const parser::Designator * designator{GetDesignatorFromObj(object)}) {
+ if (const parser::Designator *designator{GetDesignatorFromObj(object)}) {
const parser::Name *name{common::visit(
common::visitors{
[](const parser::DataRef &dataRef) { return GetBaseName(dataRef); },
``````````
</details>
https://github.com/llvm/llvm-project/pull/219438
More information about the flang-commits
mailing list