[clang] [clang] Do not diagnose unused deleted operator delete[] (PR #134357)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 4 05:13:01 PDT 2025


================
@@ -2878,7 +2878,7 @@ class CXXDestructorDecl : public CXXMethodDecl {
   static CXXDestructorDecl *CreateDeserialized(ASTContext &C, GlobalDeclID ID);
 
   void setOperatorDelete(FunctionDecl *OD, Expr *ThisArg);
-  void setOperatorArrayDelete(FunctionDecl *OD, Expr *ThisArg);
+  void setOperatorArrayDelete(FunctionDecl *OD);
----------------
AaronBallman wrote:

No, I think it's related enough as a drive-by it's fine.

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


More information about the cfe-commits mailing list