Author: enrico Date: Wed Oct 26 13:12:52 2016 New Revision: 285216 URL: http://llvm.org/viewvc/llvm-project?rev=285216&view=rev Log: Actually use = delete to mark constructors and operators we want to not exist. Just declaring them as private works, but it can confuse certain tools as it doesn't actually declare intent, and the C++11 way is more expressive anyway, so this is pure win
rdar://28960209 Modified: lldb/trunk/include/lldb/lldb-defines.h Modified: lldb/trunk/include/lldb/lldb-defines.h URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/lldb-defines.h?rev=285216&r1=285215&r2=285216&view=diff ============================================================================== --- lldb/trunk/include/lldb/lldb-defines.h (original) +++ lldb/trunk/include/lldb/lldb-defines.h Wed Oct 26 13:12:52 2016 @@ -157,8 +157,8 @@ /// assignment operators in C++ classes. //---------------------------------------------------------------------- #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ - TypeName(const TypeName &); \ - const TypeName &operator=(const TypeName &) + TypeName(const TypeName &) = delete; \ + const TypeName &operator=(const TypeName &) = delete #endif // #if defined(__cplusplus) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits