[clang] [C++20] Destroying delete and deleted destructors (PR #118800)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 9 05:14:54 PST 2025
================
@@ -2855,6 +2855,11 @@ class CXXDestructorDecl : public CXXMethodDecl {
return getCanonicalDecl()->OperatorDeleteThisArg;
}
+ /// Will this destructor ever be called when considering which deallocation
+ /// function is associated with the destructor? Can optionally be passed an
+ /// 'operator delete' function declaration to test against specifically.
+ bool isDestructorCalled(const FunctionDecl *OpDel = nullptr) const;
----------------
AaronBallman wrote:
Good call, I've renamed, thanks!
https://github.com/llvm/llvm-project/pull/118800
More information about the cfe-commits
mailing list