[clang] [Clang] [C++26] Implement P2573R2: `= delete("should have a reason");` (PR #86526)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 26 02:12:32 PDT 2024
================
@@ -873,9 +873,14 @@ void DeclPrinter::VisitFunctionDecl(FunctionDecl *D) {
if (D->isPureVirtual())
Out << " = 0";
- else if (D->isDeletedAsWritten())
+ else if (D->isDeletedAsWritten()) {
Out << " = delete";
- else if (D->isExplicitlyDefaulted())
+ if (const auto *M = D->getDeletedMessage()) {
----------------
Fznamznon wrote:
Could you please spell out the type?
```suggestion
if (const StringLiteral *M = D->getDeletedMessage()) {
```
https://github.com/llvm/llvm-project/pull/86526
More information about the cfe-commits
mailing list