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 -- 
clang/test/CodeGen/windows-seh-EHa-Inline1.cpp 
clang/test/CodeGen/windows-seh-EHa-Inline2.cpp 
clang/test/CodeGen/windows-seh-EHa-Inline3.cpp clang/lib/CodeGen/CGCall.cpp 
clang/lib/CodeGen/CGCleanup.cpp clang/lib/CodeGen/CGException.cpp 
clang/lib/CodeGen/CodeGenFunction.h llvm/lib/CodeGen/WinEHPrepare.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/CGCleanup.cpp b/clang/lib/CodeGen/CGCleanup.cpp
index 6d3bbd672..8ef921029 100644
--- a/clang/lib/CodeGen/CGCleanup.cpp
+++ b/clang/lib/CodeGen/CGCleanup.cpp
@@ -1330,7 +1330,7 @@ void CodeGenFunction::EmitCXXTemporary(const CXXTemporary 
*Temporary,
 //       intrinsic (see CGCall.cpp)
 static void EmitSehScope(CodeGenFunction &CGF,
                          llvm::FunctionCallee &SehCppScope,
-                         llvm::BasicBlock* InvokeDest = nullptr) {
+                         llvm::BasicBlock *InvokeDest = nullptr) {
   if (!InvokeDest)
     InvokeDest = CGF.getInvokeDest();
   assert(CGF.Builder.GetInsertBlock() && InvokeDest);
diff --git a/clang/lib/CodeGen/CGException.cpp 
b/clang/lib/CodeGen/CGException.cpp
index bc02264b4..69c1e49f5 100644
--- a/clang/lib/CodeGen/CGException.cpp
+++ b/clang/lib/CodeGen/CGException.cpp
@@ -636,7 +636,7 @@ void CodeGenFunction::EmitCXXTryStmt(const CXXTryStmt &S) {
 }
 
 static bool
-RequiresSehTryEnd(const CompoundStmt* S,
+RequiresSehTryEnd(const CompoundStmt *S,
                   llvm::SmallPtrSet<const Stmt *, 1> &CheckedSehTryBlockStmts) 
{
   if (!S || CheckedSehTryBlockStmts.contains(S))
     return false;

``````````

</details>


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

Reply via email to