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 --
clang/test/OpenMP/reduction_non_copyable_with_initializer.cpp
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/test/OpenMP/for_reduction_codegen_UDR.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/clang/lib/CodeGen/CGOpenMPRuntime.cpp
b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index dba5ecbf2..ddda9e3bf 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -1125,8 +1125,9 @@ emitCombinerOrInitializer(CodeGenModule &CGM, QualType Ty,
In, CGF.EmitLoadOfPointerLValue(AddrIn, PtrTy->castAs<PointerType>())
.getAddress());
Address AddrOut = CGF.GetAddrOfLocalVar(OmpOutParm);
- Address OutDerefAddr = CGF.EmitLoadOfPointerLValue(
- AddrOut, PtrTy->castAs<PointerType>()).getAddress();
+ Address OutDerefAddr =
+ CGF.EmitLoadOfPointerLValue(AddrOut, PtrTy->castAs<PointerType>())
+ .getAddress();
Scope.addPrivate(Out, OutDerefAddr);
(void)Scope.Privatize();
if (!IsCombiner && Out->hasInit() &&
@@ -1146,11 +1147,11 @@ emitCombinerOrInitializer(CodeGenModule &CGM, QualType
Ty,
// Synthesize CXXConstructExpr for default construction.
// Collect default arguments for parameters with defaults.
ASTContext &Ctx = CGM.getContext();
- SmallVector<Expr*, 4> Args;
+ SmallVector<Expr *, 4> Args;
for (unsigned I = 0; I < Ctor->getNumParams(); ++I) {
const ParmVarDecl *Param = Ctor->getParamDecl(I);
if (Param->hasDefaultArg()) {
- Args.push_back(const_cast<Expr*>(Param->getDefaultArg()));
+ Args.push_back(const_cast<Expr *>(Param->getDefaultArg()));
}
}
@@ -1164,10 +1165,8 @@ emitCombinerOrInitializer(CodeGenModule &CGM, QualType
Ty,
// Emit the constructor call
AggValueSlot Slot = AggValueSlot::forAddr(
- OutDerefAddr, Ty.getQualifiers(),
- AggValueSlot::IsDestructed,
- AggValueSlot::DoesNotNeedGCBarriers,
- AggValueSlot::IsNotAliased,
+ OutDerefAddr, Ty.getQualifiers(), AggValueSlot::IsDestructed,
+ AggValueSlot::DoesNotNeedGCBarriers,
AggValueSlot::IsNotAliased,
AggValueSlot::DoesNotOverlap);
CGF.EmitCXXConstructExpr(CtorExpr, Slot);
break;
``````````
</details>
https://github.com/llvm/llvm-project/pull/219265
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits