[PATCH] [DOCS] Update the docs with regards to the removed LLVM_DELETED_FUNCTION

David Blaikie dblaikie at gmail.com
Sun Feb 22 13:09:10 PST 2015


Perhaps it'd be easier to review/discuss if you just paste the complete
proposed wording into this/an email & we'll see how it looks?

deleted functions (especially non-special-member-deleted functions) should
be quite rare & hardly likely for someone to stumble across them & decide
to use them for the wrong reasons. For deleting special members, I wouldn't
mind a "rule of zero" mention and maybe "just write the members you need"
... and /maybe/ a "here's the idiomatic way to make your type non-copyable
and non-movable" (& we should pick what that idiom is - delete all 4
special members? delete 1 that causes the other 3 to be deleted? (deleting
either the move ctor or move assignment operator) deleting 1 and leaving a
comment?)

On Fri, Feb 20, 2015 at 5:27 PM, Dylan McKay <dylanmckay34 at gmail.com> wrote:

> There isn't anything LLVM-specific, but I thought it might be a good idea
> to keep it.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150222/4e38709f/attachment.html>


More information about the llvm-commits mailing list