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/CIR/CodeGenCoroutines/coro-fallthrough.cpp 
clang/lib/CIR/CodeGen/CIRGenCoroutine.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/CIR/CodeGen/CIRGenCoroutine.cpp 
b/clang/lib/CIR/CodeGen/CIRGenCoroutine.cpp
index caa8f1440..2b743f5bd 100644
--- a/clang/lib/CIR/CodeGen/CIRGenCoroutine.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenCoroutine.cpp
@@ -157,9 +157,9 @@ emitBodyAndFallthrough(CIRGenFunction &cgf, const 
CoroutineBodyStmt &s,
                        const CIRGenFunction::LexicalScope *currLexScope) {
   {
     // Destroy the body's local variables, and the temporaries they extend, 
when
-    // the body ends, before the fall-through handler, the implicit 
`co_return;`,
-    // calls return_void(). The body stays in the current lexical scope so 
that a
-    // co_return at its top level is recorded in currLexScope.
+    // the body ends, before the fall-through handler, the implicit
+    // `co_return;`, calls return_void(). The body stays in the current lexical
+    // scope so that a co_return at its top level is recorded in currLexScope.
     CIRGenFunction::RunCleanupsScope bodyScope(cgf);
     if (cgf.emitStmt(body, /*useCurrentScope=*/true).failed())
       return mlir::failure();

``````````

</details>


https://github.com/llvm/llvm-project/pull/229743
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to