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 --
clang/test/CIR/CodeGen/coro-await.cpp clang/lib/CIR/CodeGen/CIRGenCoroutine.cpp
clang/lib/CIR/CodeGen/CIRGenFunction.cpp clang/lib/CIR/CodeGen/CIRGenFunction.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/clang/lib/CIR/CodeGen/CIRGenCoroutine.cpp
b/clang/lib/CIR/CodeGen/CIRGenCoroutine.cpp
index a6ad3812a..9d642f344 100644
--- a/clang/lib/CIR/CodeGen/CIRGenCoroutine.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenCoroutine.cpp
@@ -801,8 +801,7 @@ emitSuspendExpression(CIRGenFunction &cgf, CGCoroData &coro,
"expected simple lvalue for coroutine resume");
mlir::Value ptr = awaitRes.lv.getPointer();
tmpResumeRValAddr = cgf.emitAlloca(
- "__coawait_resume_lval", ptr.getType(), loc,
- CharUnits::One(),
+ "__coawait_resume_lval", ptr.getType(), loc, CharUnits::One(),
builder.getBestAllocaInsertPoint(scopeParentBlock));
builder.CIRBaseBuilderTy::createStore(loc, ptr, tmpResumeRValAddr);
} else {
@@ -900,9 +899,10 @@ getCoroutineSuspendExprReturnType(const ASTContext &ctx,
#endif
LValue CIRGenFunction::emitCoawaitLValue(const CoawaitExpr *e) {
- assert(getCoroutineSuspendExprReturnType(getContext(), e)->isReferenceType()
&&
- "Can't have a scalar return unless the return type is a "
- "reference type!");
+ assert(
+ getCoroutineSuspendExprReturnType(getContext(), e)->isReferenceType() &&
+ "Can't have a scalar return unless the return type is a "
+ "reference type!");
mlir::Location scopeLoc = getLoc(e->getSourceRange());
mlir::Block *currEntryBlock = curLexScope->getEntryBlock();
mlir::Value tmpResumeLValAddr;
``````````
</details>
https://github.com/llvm/llvm-project/pull/232280
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits