This is an archive of the discontinued LLVM Phabricator instance.

[Index] consider `delete X` a reference to ~X() if it can be resolved
Needs ReviewPublic

Authored by sammccall on Oct 19 2022, 4:56 AM.

Diff Detail

Event Timeline

sammccall created this revision.Oct 19 2022, 4:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 19 2022, 4:56 AM
sammccall requested review of this revision.Oct 19 2022, 4:56 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 19 2022, 4:56 AM

Sorry for chiming in, left a comment on GitHub.
TLDR; destructors are easy to find and this is not the case for user-defined operator delete. Maybe this is a good reason to have operator delete references (either instead of in addition to destructors)?

nridge added a subscriber: nridge.Oct 24 2022, 12:49 AM