[clang] [clang] Fix crash when destructor definition is preceded with '=' (PR #90220)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 26 08:11:23 PDT 2024
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 d74e42acd2479eb9f3bd8077fd3be2f3395aa638 b9b17fa34dab666e4c77dad9cd4109f7a88d1c2e -- clang/lib/AST/Expr.cpp clang/test/SemaCXX/destructor.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index 52c8c95b48..ac5653fe94 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -3893,7 +3893,8 @@ namespace {
}
void VisitCXXBindTemporaryExpr(const CXXBindTemporaryExpr *E) {
- if (const CXXDestructorDecl *DtorDecl = E->getTemporary()->getDestructor()) {
+ if (const CXXDestructorDecl *DtorDecl =
+ E->getTemporary()->getDestructor()) {
if (DtorDecl->isTrivial()) {
Inherited::VisitStmt(E);
return;
``````````
</details>
https://github.com/llvm/llvm-project/pull/90220
More information about the cfe-commits
mailing list