[clang] [C++20] Destroying delete and deleted destructors (PR #118800)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 8 10:18:42 PST 2025


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 f69585235ec85d54e0f3fc41b2d5700430907f99 0b146469bac8cde0b487deb2026ddc46db1da104 --extensions cpp,h -- clang/include/clang/AST/DeclCXX.h clang/lib/AST/DeclCXX.cpp clang/lib/Sema/SemaExceptionSpec.cpp clang/lib/Sema/SemaExprCXX.cpp clang/test/CXX/expr/expr.unary/expr.delete/p10.cpp clang/test/SemaCXX/cxx2a-destroying-delete.cpp clang/test/SemaCXX/noexcept-destroying-delete.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index 1ec31a6aa4..2c48f77060 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -3766,7 +3766,7 @@ Sema::ActOnCXXDelete(SourceLocation StartLoc, bool UseGlobal,
     }
 
     DeclarationName DeleteName = Context.DeclarationNames.getCXXOperatorName(
-                                      ArrayForm ? OO_Array_Delete : OO_Delete);
+        ArrayForm ? OO_Array_Delete : OO_Delete);
     if (PointeeRD) {
       if (!UseGlobal &&
           FindDeallocationFunction(StartLoc, PointeeRD, DeleteName,

``````````

</details>


https://github.com/llvm/llvm-project/pull/118800


More information about the cfe-commits mailing list