[clang] Allow struct q{int q;~q();} (#88597) (PR #88673)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 14 18:59:41 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 9f43a41db37253685c5ed428c215528eb92bbd43 021cd0e6a8641cd0487f5d00f9c86fb8ab56dd9a -- clang/lib/Sema/SemaExprCXX.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 bb93803c63..69d4a6d51e 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -448,7 +448,7 @@ ParsedType Sema::getDestructorName(const IdentifierInfo &II,
Diag(NameLoc, diag::err_destructor_expr_nontype)
<< &II << MakeFixItHint();
}
- } else if(!SearchType.isNull()) {
+ } else if (!SearchType.isNull()) {
Diag(NameLoc, diag::err_destructor_expr_mismatch)
<< &II << SearchType << MakeFixItHint();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/88673
More information about the cfe-commits
mailing list