[Lldb-commits] [PATCH] D80543: [lldb] Manual remove of DISALLOW_COPY_AND_ASSIGN def and one expansion

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue May 26 11:26:12 PDT 2020


teemperor added a comment.

In D80543#2054405 <https://reviews.llvm.org/D80543#2054405>, @labath wrote:

> I am all for this, because makes lldb code more consistent with llvm (llvm used to have a LLVM_DELETED_FUNCTION macro, but it was removed as soon as c++11 came into being).
>
> But please don't commit this straight away -- let's wait a couple of days to give people a chance to comment on things.


Wasn't LLVM_DELETED_FUNCTION not just a compatibility thing with certain MSVC versions that didn't handle `= delete` correctly? DISALLOW_COPY_AND_ASSIGN seems to be more about preventing copy-pasted declarations.

I'm not sure if I see the motivation for this change, but I also don't really see a problem if we remove this to get rid of another LLDB_* macro. So IMHO this is change is fine.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80543/new/

https://reviews.llvm.org/D80543





More information about the lldb-commits mailing list