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/ehspec-noexcept.cpp clang/test/CIR/CodeGen/ehspec.cpp 
clang/lib/CIR/CodeGen/CIRGenException.cpp 
clang/lib/CIR/CodeGen/CIRGenFunction.cpp clang/lib/CIR/CodeGen/CIRGenFunction.h 
clang/lib/CIR/Dialect/IR/CIRDialect.cpp clang/test/CIR/CodeGen/rtti-qualfn.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/CIRGenException.cpp 
b/clang/lib/CIR/CodeGen/CIRGenException.cpp
index 9ec42cd88..2c2fa83e6 100644
--- a/clang/lib/CIR/CodeGen/CIRGenException.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenException.cpp
@@ -223,10 +223,9 @@ void CIRGenFunction::emitStartEHSpec(const Decl *d) {
   // In C++17 and later, and in Wasm EH in any standard, 'throw()' aka
   // EST_DynamicNone is treated the same way as noexcept. In earlier standards
   // it is handled with 'throw(X...)'.
-  bool isDynamicSpec =
-      est == EST_Dynamic ||
-      (est == EST_DynamicNone && !getLangOpts().CPlusPlus17 &&
-       !cgm.getCodeGenOpts().hasWasmExceptions());
+  bool isDynamicSpec = est == EST_Dynamic ||
+                       (est == EST_DynamicNone && !getLangOpts().CPlusPlus17 &&
+                        !cgm.getCodeGenOpts().hasWasmExceptions());
 
   // A specification that permits nothing to escape is a terminate scope: any
   // exception that tries to leave the function calls std::terminate. Under

``````````

</details>


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

Reply via email to