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/include/flang/Parser/parse-tree-visitor.h
flang/include/flang/Parser/parse-tree.h flang/lib/Lower/Bridge.cpp
flang/lib/Lower/IO.cpp flang/lib/Lower/OpenACC.cpp
flang/lib/Lower/OpenMP/OpenMP.cpp flang/lib/Lower/OpenMP/Utils.cpp
flang/lib/Lower/PFTBuilder.cpp flang/lib/Parser/parse-tree.cpp
flang/lib/Parser/tools.cpp flang/lib/Parser/unparse.cpp
flang/lib/Semantics/check-cuda.cpp flang/lib/Semantics/check-data.cpp
flang/lib/Semantics/check-deallocate.cpp
flang/lib/Semantics/check-do-forall.cpp flang/lib/Semantics/check-nullify.cpp
flang/lib/Semantics/check-omp-loop.cpp
flang/lib/Semantics/check-omp-structure.cpp
flang/lib/Semantics/data-to-inits.cpp flang/lib/Semantics/expression.cpp
flang/lib/Semantics/resolve-directives.cpp
flang/lib/Semantics/resolve-names-utils.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/Lower/Bridge.cpp b/flang/lib/Lower/Bridge.cpp
index 656940986..86959a8ee 100644
--- a/flang/lib/Lower/Bridge.cpp
+++ b/flang/lib/Lower/Bridge.cpp
@@ -3856,8 +3856,8 @@ private:
if (auto &step = bounds->Step())
steps.push_back(builder->createConvert(
crtLoc, idxTy,
- fir::getBase(genExprValue(
- *Fortran::semantics::GetExpr(step), stmtCtx))));
+ fir::getBase(
+ genExprValue(*Fortran::semantics::GetExpr(step), stmtCtx))));
else // If `step` is not present, assume it is `1`.
steps.push_back(builder->createIntegerConstant(loc, idxTy, 1));
diff --git a/flang/lib/Semantics/check-deallocate.cpp
b/flang/lib/Semantics/check-deallocate.cpp
index 92b75b9d2..729e92aef 100644
--- a/flang/lib/Semantics/check-deallocate.cpp
+++ b/flang/lib/Semantics/check-deallocate.cpp
@@ -101,8 +101,8 @@ void DeallocateChecker::Leave(const parser::DeallocateStmt
&deallocateStmt) {
source = structureComponent.Component().source;
if (const auto *expr{GetExpr(context_, allocateObject)}) {
if (const Symbol *symbol{structureComponent.Component().symbol
- ? &structureComponent.Component().symbol
- ->GetUltimate()
+ ? &structureComponent.Component()
+ .symbol->GetUltimate()
: nullptr};
!IsAllocatableOrObjectPointer(symbol)) { // F'2023 C936
context_.Say(source,
diff --git a/flang/lib/Semantics/expression.cpp
b/flang/lib/Semantics/expression.cpp
index 6cca0c670..b63554815 100644
--- a/flang/lib/Semantics/expression.cpp
+++ b/flang/lib/Semantics/expression.cpp
@@ -4130,7 +4130,8 @@ static void FixMisparsedFunctionReference(
[&](parser::Name &name) { return name.symbol; },
[&](parser::ProcComponentRef &pcr) {
return parser::UnwrapRef<parser::StructureComponent>(pcr)
- .Component().symbol;
+ .Component()
+ .symbol;
},
},
proc.u)}) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/175578
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits