diff --git a/lldb/examples/interposing/darwin/fd_interposing/FDInterposing.cpp b/lldb/examples/interposing/darwin/fd_interposing/FDInterposing.cpp --- a/lldb/examples/interposing/darwin/fd_interposing/FDInterposing.cpp +++ b/lldb/examples/interposing/darwin/fd_interposing/FDInterposing.cpp @@ -68,13 +68,6 @@ #include #include -/// \def DISALLOW_COPY_AND_ASSIGN(TypeName) -/// Macro definition for easily disallowing copy constructor and -/// assignment operators in C++ classes. -#define DISALLOW_COPY_AND_ASSIGN(TypeName) \ - TypeName(const TypeName &); \ - const TypeName &operator=(const TypeName &) - extern "C" { int accept$NOCANCEL(int, struct sockaddr *__restrict, socklen_t *__restrict); int close$NOCANCEL(int); @@ -135,7 +128,8 @@ char *m_str; private: - DISALLOW_COPY_AND_ASSIGN(String); + String(const String &) = delete; + const String &operator=(const String &) = delete; }; // Type definitions diff --git a/lldb/include/lldb/API/SBCommunication.h b/lldb/include/lldb/API/SBCommunication.h --- a/lldb/include/lldb/API/SBCommunication.h +++ b/lldb/include/lldb/API/SBCommunication.h @@ -72,7 +72,8 @@ void *callback_baton); private: - DISALLOW_COPY_AND_ASSIGN(SBCommunication); + SBCommunication(const SBCommunication &) = delete; + const SBCommunication &operator=(const SBCommunication &) = delete; lldb_private::Communication *m_opaque; bool m_opaque_owned; diff --git a/lldb/include/lldb/API/SBStream.h b/lldb/include/lldb/API/SBStream.h --- a/lldb/include/lldb/API/SBStream.h +++ b/lldb/include/lldb/API/SBStream.h @@ -101,7 +101,8 @@ lldb_private::Stream &ref(); private: - DISALLOW_COPY_AND_ASSIGN(SBStream); + SBStream(const SBStream &) = delete; + const SBStream &operator=(const SBStream &) = delete; std::unique_ptr m_opaque_up; bool m_is_file; }; diff --git a/lldb/include/lldb/Breakpoint/Breakpoint.h b/lldb/include/lldb/Breakpoint/Breakpoint.h --- a/lldb/include/lldb/Breakpoint/Breakpoint.h +++ b/lldb/include/lldb/Breakpoint/Breakpoint.h @@ -137,7 +137,8 @@ lldb::BreakpointSP m_new_breakpoint_sp; BreakpointLocationCollection m_locations; - DISALLOW_COPY_AND_ASSIGN(BreakpointEventData); + BreakpointEventData(const BreakpointEventData &) = delete; + const BreakpointEventData &operator=(const BreakpointEventData &) = delete; }; // Saving & restoring breakpoints: @@ -669,7 +670,8 @@ void SendBreakpointChangedEvent(BreakpointEventData *data); - DISALLOW_COPY_AND_ASSIGN(Breakpoint); + Breakpoint(const Breakpoint &) = delete; + const Breakpoint &operator=(const Breakpoint &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Breakpoint/BreakpointIDList.h b/lldb/include/lldb/Breakpoint/BreakpointIDList.h --- a/lldb/include/lldb/Breakpoint/BreakpointIDList.h +++ b/lldb/include/lldb/Breakpoint/BreakpointIDList.h @@ -68,7 +68,8 @@ BreakpointIDArray m_breakpoint_ids; BreakpointID m_invalid_id; - DISALLOW_COPY_AND_ASSIGN(BreakpointIDList); + BreakpointIDList(const BreakpointIDList &) = delete; + const BreakpointIDList &operator=(const BreakpointIDList &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Breakpoint/BreakpointList.h b/lldb/include/lldb/Breakpoint/BreakpointList.h --- a/lldb/include/lldb/Breakpoint/BreakpointList.h +++ b/lldb/include/lldb/Breakpoint/BreakpointList.h @@ -168,7 +168,8 @@ } private: - DISALLOW_COPY_AND_ASSIGN(BreakpointList); + BreakpointList(const BreakpointList &) = delete; + const BreakpointList &operator=(const BreakpointList &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Breakpoint/BreakpointLocation.h b/lldb/include/lldb/Breakpoint/BreakpointLocation.h --- a/lldb/include/lldb/Breakpoint/BreakpointLocation.h +++ b/lldb/include/lldb/Breakpoint/BreakpointLocation.h @@ -345,7 +345,8 @@ void SendBreakpointLocationChangedEvent(lldb::BreakpointEventType eventKind); - DISALLOW_COPY_AND_ASSIGN(BreakpointLocation); + BreakpointLocation(const BreakpointLocation &) = delete; + const BreakpointLocation &operator=(const BreakpointLocation &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Breakpoint/BreakpointResolver.h b/lldb/include/lldb/Breakpoint/BreakpointResolver.h --- a/lldb/include/lldb/Breakpoint/BreakpointResolver.h +++ b/lldb/include/lldb/Breakpoint/BreakpointResolver.h @@ -222,7 +222,8 @@ // Subclass identifier (for llvm isa/dyn_cast) const unsigned char SubclassID; - DISALLOW_COPY_AND_ASSIGN(BreakpointResolver); + BreakpointResolver(const BreakpointResolver &) = delete; + const BreakpointResolver &operator=(const BreakpointResolver &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Breakpoint/BreakpointResolverAddress.h b/lldb/include/lldb/Breakpoint/BreakpointResolverAddress.h --- a/lldb/include/lldb/Breakpoint/BreakpointResolverAddress.h +++ b/lldb/include/lldb/Breakpoint/BreakpointResolverAddress.h @@ -71,7 +71,9 @@ // to a Section+Offset address in this module, whenever that module gets // around to being loaded. private: - DISALLOW_COPY_AND_ASSIGN(BreakpointResolverAddress); + BreakpointResolverAddress(const BreakpointResolverAddress &) = delete; + const BreakpointResolverAddress & + operator=(const BreakpointResolverAddress &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Breakpoint/BreakpointResolverFileLine.h b/lldb/include/lldb/Breakpoint/BreakpointResolverFileLine.h --- a/lldb/include/lldb/Breakpoint/BreakpointResolverFileLine.h +++ b/lldb/include/lldb/Breakpoint/BreakpointResolverFileLine.h @@ -69,7 +69,9 @@ bool m_exact_match; private: - DISALLOW_COPY_AND_ASSIGN(BreakpointResolverFileLine); + BreakpointResolverFileLine(const BreakpointResolverFileLine &) = delete; + const BreakpointResolverFileLine & + operator=(const BreakpointResolverFileLine &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Breakpoint/BreakpointResolverFileRegex.h b/lldb/include/lldb/Breakpoint/BreakpointResolverFileRegex.h --- a/lldb/include/lldb/Breakpoint/BreakpointResolverFileRegex.h +++ b/lldb/include/lldb/Breakpoint/BreakpointResolverFileRegex.h @@ -70,7 +70,9 @@ // comp_unit passed in. private: - DISALLOW_COPY_AND_ASSIGN(BreakpointResolverFileRegex); + BreakpointResolverFileRegex(const BreakpointResolverFileRegex &) = delete; + const BreakpointResolverFileRegex & + operator=(const BreakpointResolverFileRegex &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Breakpoint/BreakpointResolverScripted.h b/lldb/include/lldb/Breakpoint/BreakpointResolverScripted.h --- a/lldb/include/lldb/Breakpoint/BreakpointResolverScripted.h +++ b/lldb/include/lldb/Breakpoint/BreakpointResolverScripted.h @@ -70,7 +70,9 @@ // SBStructuredData). StructuredData::GenericSP m_implementation_sp; - DISALLOW_COPY_AND_ASSIGN(BreakpointResolverScripted); + BreakpointResolverScripted(const BreakpointResolverScripted &) = delete; + const BreakpointResolverScripted & + operator=(const BreakpointResolverScripted &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Breakpoint/BreakpointSite.h b/lldb/include/lldb/Breakpoint/BreakpointSite.h --- a/lldb/include/lldb/Breakpoint/BreakpointSite.h +++ b/lldb/include/lldb/Breakpoint/BreakpointSite.h @@ -225,7 +225,8 @@ const lldb::BreakpointLocationSP &owner, lldb::addr_t m_addr, bool use_hardware); - DISALLOW_COPY_AND_ASSIGN(BreakpointSite); + BreakpointSite(const BreakpointSite &) = delete; + const BreakpointSite &operator=(const BreakpointSite &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Breakpoint/Stoppoint.h b/lldb/include/lldb/Breakpoint/Stoppoint.h --- a/lldb/include/lldb/Breakpoint/Stoppoint.h +++ b/lldb/include/lldb/Breakpoint/Stoppoint.h @@ -37,7 +37,8 @@ private: // For Stoppoint only - DISALLOW_COPY_AND_ASSIGN(Stoppoint); + Stoppoint(const Stoppoint &) = delete; + const Stoppoint &operator=(const Stoppoint &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Breakpoint/StoppointLocation.h b/lldb/include/lldb/Breakpoint/StoppointLocation.h --- a/lldb/include/lldb/Breakpoint/StoppointLocation.h +++ b/lldb/include/lldb/Breakpoint/StoppointLocation.h @@ -77,7 +77,8 @@ private: // For StoppointLocation only - DISALLOW_COPY_AND_ASSIGN(StoppointLocation); + StoppointLocation(const StoppointLocation &) = delete; + const StoppointLocation &operator=(const StoppointLocation &) = delete; StoppointLocation() = delete; }; diff --git a/lldb/include/lldb/Breakpoint/Watchpoint.h b/lldb/include/lldb/Breakpoint/Watchpoint.h --- a/lldb/include/lldb/Breakpoint/Watchpoint.h +++ b/lldb/include/lldb/Breakpoint/Watchpoint.h @@ -54,7 +54,8 @@ lldb::WatchpointEventType m_watchpoint_event; lldb::WatchpointSP m_new_watchpoint_sp; - DISALLOW_COPY_AND_ASSIGN(WatchpointEventData); + WatchpointEventData(const WatchpointEventData &) = delete; + const WatchpointEventData &operator=(const WatchpointEventData &) = delete; }; Watchpoint(Target &target, lldb::addr_t addr, uint32_t size, @@ -204,7 +205,8 @@ void SendWatchpointChangedEvent(WatchpointEventData *data); - DISALLOW_COPY_AND_ASSIGN(Watchpoint); + Watchpoint(const Watchpoint &) = delete; + const Watchpoint &operator=(const Watchpoint &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/AddressResolver.h b/lldb/include/lldb/Core/AddressResolver.h --- a/lldb/include/lldb/Core/AddressResolver.h +++ b/lldb/include/lldb/Core/AddressResolver.h @@ -55,7 +55,8 @@ std::vector m_address_ranges; private: - DISALLOW_COPY_AND_ASSIGN(AddressResolver); + AddressResolver(const AddressResolver &) = delete; + const AddressResolver &operator=(const AddressResolver &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/AddressResolverFileLine.h b/lldb/include/lldb/Core/AddressResolverFileLine.h --- a/lldb/include/lldb/Core/AddressResolverFileLine.h +++ b/lldb/include/lldb/Core/AddressResolverFileLine.h @@ -48,7 +48,9 @@ // functions or not. private: - DISALLOW_COPY_AND_ASSIGN(AddressResolverFileLine); + AddressResolverFileLine(const AddressResolverFileLine &) = delete; + const AddressResolverFileLine & + operator=(const AddressResolverFileLine &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/AddressResolverName.h b/lldb/include/lldb/Core/AddressResolverName.h --- a/lldb/include/lldb/Core/AddressResolverName.h +++ b/lldb/include/lldb/Core/AddressResolverName.h @@ -54,7 +54,8 @@ AddressResolver::MatchType m_match_type; private: - DISALLOW_COPY_AND_ASSIGN(AddressResolverName); + AddressResolverName(const AddressResolverName &) = delete; + const AddressResolverName &operator=(const AddressResolverName &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/Communication.h b/lldb/include/lldb/Core/Communication.h --- a/lldb/include/lldb/Core/Communication.h +++ b/lldb/include/lldb/Core/Communication.h @@ -359,7 +359,8 @@ size_t GetCachedBytes(void *dst, size_t dst_len); private: - DISALLOW_COPY_AND_ASSIGN(Communication); + Communication(const Communication &) = delete; + const Communication &operator=(const Communication &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/Debugger.h b/lldb/include/lldb/Core/Debugger.h --- a/lldb/include/lldb/Core/Debugger.h +++ b/lldb/include/lldb/Core/Debugger.h @@ -443,7 +443,8 @@ // object Debugger(lldb::LogOutputCallback m_log_callback, void *baton); - DISALLOW_COPY_AND_ASSIGN(Debugger); + Debugger(const Debugger &) = delete; + const Debugger &operator=(const Debugger &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/Disassembler.h b/lldb/include/lldb/Core/Disassembler.h --- a/lldb/include/lldb/Core/Disassembler.h +++ b/lldb/include/lldb/Core/Disassembler.h @@ -349,7 +349,8 @@ protected: std::string m_description; - DISALLOW_COPY_AND_ASSIGN(PseudoInstruction); + PseudoInstruction(const PseudoInstruction &) = delete; + const PseudoInstruction &operator=(const PseudoInstruction &) = delete; }; class Disassembler : public std::enable_shared_from_this, @@ -520,7 +521,8 @@ private: // For Disassembler only - DISALLOW_COPY_AND_ASSIGN(Disassembler); + Disassembler(const Disassembler &) = delete; + const Disassembler &operator=(const Disassembler &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/EmulateInstruction.h b/lldb/include/lldb/Core/EmulateInstruction.h --- a/lldb/include/lldb/Core/EmulateInstruction.h +++ b/lldb/include/lldb/Core/EmulateInstruction.h @@ -499,7 +499,8 @@ private: // For EmulateInstruction only - DISALLOW_COPY_AND_ASSIGN(EmulateInstruction); + EmulateInstruction(const EmulateInstruction &) = delete; + const EmulateInstruction &operator=(const EmulateInstruction &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/FileLineResolver.h b/lldb/include/lldb/Core/FileLineResolver.h --- a/lldb/include/lldb/Core/FileLineResolver.h +++ b/lldb/include/lldb/Core/FileLineResolver.h @@ -58,7 +58,8 @@ // functions or not. private: - DISALLOW_COPY_AND_ASSIGN(FileLineResolver); + FileLineResolver(const FileLineResolver &) = delete; + const FileLineResolver &operator=(const FileLineResolver &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/Highlighter.h b/lldb/include/lldb/Core/Highlighter.h --- a/lldb/include/lldb/Core/Highlighter.h +++ b/lldb/include/lldb/Core/Highlighter.h @@ -91,7 +91,8 @@ public: Highlighter() = default; virtual ~Highlighter() = default; - DISALLOW_COPY_AND_ASSIGN(Highlighter); + Highlighter(const Highlighter &) = delete; + const Highlighter &operator=(const Highlighter &) = delete; /// Returns a human readable name for the selected highlighter. virtual llvm::StringRef GetName() const = 0; diff --git a/lldb/include/lldb/Core/IOHandler.h b/lldb/include/lldb/Core/IOHandler.h --- a/lldb/include/lldb/Core/IOHandler.h +++ b/lldb/include/lldb/Core/IOHandler.h @@ -180,7 +180,8 @@ bool m_active; private: - DISALLOW_COPY_AND_ASSIGN(IOHandler); + IOHandler(const IOHandler &) = delete; + const IOHandler &operator=(const IOHandler &) = delete; }; /// A delegate class for use with IOHandler subclasses. @@ -544,7 +545,8 @@ IOHandler *m_top = nullptr; private: - DISALLOW_COPY_AND_ASSIGN(IOHandlerStack); + IOHandlerStack(const IOHandlerStack &) = delete; + const IOHandlerStack &operator=(const IOHandlerStack &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/Module.h b/lldb/include/lldb/Core/Module.h --- a/lldb/include/lldb/Core/Module.h +++ b/lldb/include/lldb/Core/Module.h @@ -1049,7 +1049,8 @@ llvm::DenseSet &searched_symbol_files, TypeMap &types); - DISALLOW_COPY_AND_ASSIGN(Module); + Module(const Module &) = delete; + const Module &operator=(const Module &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/Section.h b/lldb/include/lldb/Core/Section.h --- a/lldb/include/lldb/Core/Section.h +++ b/lldb/include/lldb/Core/Section.h @@ -268,7 +268,8 @@ // This is specified as // as a multiple number of a host bytes private: - DISALLOW_COPY_AND_ASSIGN(Section); + Section(const Section &) = delete; + const Section &operator=(const Section &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/SourceManager.h b/lldb/include/lldb/Core/SourceManager.h --- a/lldb/include/lldb/Core/SourceManager.h +++ b/lldb/include/lldb/Core/SourceManager.h @@ -160,7 +160,8 @@ lldb::DebuggerWP m_debugger_wp; private: - DISALLOW_COPY_AND_ASSIGN(SourceManager); + SourceManager(const SourceManager &) = delete; + const SourceManager &operator=(const SourceManager &) = delete; }; bool operator==(const SourceManager::File &lhs, const SourceManager::File &rhs); diff --git a/lldb/include/lldb/Core/StreamFile.h b/lldb/include/lldb/Core/StreamFile.h --- a/lldb/include/lldb/Core/StreamFile.h +++ b/lldb/include/lldb/Core/StreamFile.h @@ -48,7 +48,8 @@ size_t WriteImpl(const void *s, size_t length) override; private: - DISALLOW_COPY_AND_ASSIGN(StreamFile); + StreamFile(const StreamFile &) = delete; + const StreamFile &operator=(const StreamFile &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/ThreadSafeValue.h b/lldb/include/lldb/Core/ThreadSafeValue.h --- a/lldb/include/lldb/Core/ThreadSafeValue.h +++ b/lldb/include/lldb/Core/ThreadSafeValue.h @@ -53,7 +53,8 @@ mutable std::recursive_mutex m_mutex; // For ThreadSafeValue only - DISALLOW_COPY_AND_ASSIGN(ThreadSafeValue); + ThreadSafeValue(const ThreadSafeValue &) = delete; + const ThreadSafeValue &operator=(const ThreadSafeValue &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/ValueObject.h b/lldb/include/lldb/Core/ValueObject.h --- a/lldb/include/lldb/Core/ValueObject.h +++ b/lldb/include/lldb/Core/ValueObject.h @@ -974,7 +974,8 @@ const GetValueForExpressionPathOptions &options, ExpressionPathAftermath *final_task_on_target); - DISALLOW_COPY_AND_ASSIGN(ValueObject); + ValueObject(const ValueObject &) = delete; + const ValueObject &operator=(const ValueObject &) = delete; }; // A value object manager class that is seeded with the static variable value diff --git a/lldb/include/lldb/Core/ValueObjectCast.h b/lldb/include/lldb/Core/ValueObjectCast.h --- a/lldb/include/lldb/Core/ValueObjectCast.h +++ b/lldb/include/lldb/Core/ValueObjectCast.h @@ -57,7 +57,8 @@ CompilerType m_cast_type; private: - DISALLOW_COPY_AND_ASSIGN(ValueObjectCast); + ValueObjectCast(const ValueObjectCast &) = delete; + const ValueObjectCast &operator=(const ValueObjectCast &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/ValueObjectChild.h b/lldb/include/lldb/Core/ValueObjectChild.h --- a/lldb/include/lldb/Core/ValueObjectChild.h +++ b/lldb/include/lldb/Core/ValueObjectChild.h @@ -88,7 +88,8 @@ AddressType child_ptr_or_ref_addr_type, uint64_t language_flags); - DISALLOW_COPY_AND_ASSIGN(ValueObjectChild); + ValueObjectChild(const ValueObjectChild &) = delete; + const ValueObjectChild &operator=(const ValueObjectChild &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/ValueObjectConstResult.h b/lldb/include/lldb/Core/ValueObjectConstResult.h --- a/lldb/include/lldb/Core/ValueObjectConstResult.h +++ b/lldb/include/lldb/Core/ValueObjectConstResult.h @@ -150,7 +150,9 @@ ValueObjectConstResult(ExecutionContextScope *exe_scope, ValueObjectManager &manager, const Status &error); - DISALLOW_COPY_AND_ASSIGN(ValueObjectConstResult); + ValueObjectConstResult(const ValueObjectConstResult &) = delete; + const ValueObjectConstResult & + operator=(const ValueObjectConstResult &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/ValueObjectConstResultCast.h b/lldb/include/lldb/Core/ValueObjectConstResultCast.h --- a/lldb/include/lldb/Core/ValueObjectConstResultCast.h +++ b/lldb/include/lldb/Core/ValueObjectConstResultCast.h @@ -61,7 +61,9 @@ friend class ValueObjectConstResult; friend class ValueObjectConstResultImpl; - DISALLOW_COPY_AND_ASSIGN(ValueObjectConstResultCast); + ValueObjectConstResultCast(const ValueObjectConstResultCast &) = delete; + const ValueObjectConstResultCast & + operator=(const ValueObjectConstResultCast &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/ValueObjectConstResultChild.h b/lldb/include/lldb/Core/ValueObjectConstResultChild.h --- a/lldb/include/lldb/Core/ValueObjectConstResultChild.h +++ b/lldb/include/lldb/Core/ValueObjectConstResultChild.h @@ -70,7 +70,9 @@ friend class ValueObjectConstResult; friend class ValueObjectConstResultImpl; - DISALLOW_COPY_AND_ASSIGN(ValueObjectConstResultChild); + ValueObjectConstResultChild(const ValueObjectConstResultChild &) = delete; + const ValueObjectConstResultChild & + operator=(const ValueObjectConstResultChild &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/ValueObjectConstResultImpl.h b/lldb/include/lldb/Core/ValueObjectConstResultImpl.h --- a/lldb/include/lldb/Core/ValueObjectConstResultImpl.h +++ b/lldb/include/lldb/Core/ValueObjectConstResultImpl.h @@ -71,7 +71,9 @@ lldb::ValueObjectSP m_load_addr_backend; lldb::ValueObjectSP m_address_of_backend; - DISALLOW_COPY_AND_ASSIGN(ValueObjectConstResultImpl); + ValueObjectConstResultImpl(const ValueObjectConstResultImpl &) = delete; + const ValueObjectConstResultImpl & + operator=(const ValueObjectConstResultImpl &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/ValueObjectDynamicValue.h b/lldb/include/lldb/Core/ValueObjectDynamicValue.h --- a/lldb/include/lldb/Core/ValueObjectDynamicValue.h +++ b/lldb/include/lldb/Core/ValueObjectDynamicValue.h @@ -127,7 +127,9 @@ ValueObjectDynamicValue(ValueObject &parent, lldb::DynamicValueType use_dynamic); - DISALLOW_COPY_AND_ASSIGN(ValueObjectDynamicValue); + ValueObjectDynamicValue(const ValueObjectDynamicValue &) = delete; + const ValueObjectDynamicValue & + operator=(const ValueObjectDynamicValue &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/ValueObjectMemory.h b/lldb/include/lldb/Core/ValueObjectMemory.h --- a/lldb/include/lldb/Core/ValueObjectMemory.h +++ b/lldb/include/lldb/Core/ValueObjectMemory.h @@ -72,7 +72,8 @@ ValueObjectManager &manager, llvm::StringRef name, const Address &address, const CompilerType &ast_type); // For ValueObject only - DISALLOW_COPY_AND_ASSIGN(ValueObjectMemory); + ValueObjectMemory(const ValueObjectMemory &) = delete; + const ValueObjectMemory &operator=(const ValueObjectMemory &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/ValueObjectRegister.h b/lldb/include/lldb/Core/ValueObjectRegister.h --- a/lldb/include/lldb/Core/ValueObjectRegister.h +++ b/lldb/include/lldb/Core/ValueObjectRegister.h @@ -73,7 +73,9 @@ lldb::RegisterContextSP ®_ctx_sp, uint32_t set_idx); // For ValueObject only - DISALLOW_COPY_AND_ASSIGN(ValueObjectRegisterSet); + ValueObjectRegisterSet(const ValueObjectRegisterSet &) = delete; + const ValueObjectRegisterSet & + operator=(const ValueObjectRegisterSet &) = delete; }; class ValueObjectRegister : public ValueObject { @@ -128,7 +130,8 @@ lldb::RegisterContextSP ®_ctx_sp, uint32_t reg_num); // For ValueObject only - DISALLOW_COPY_AND_ASSIGN(ValueObjectRegister); + ValueObjectRegister(const ValueObjectRegister &) = delete; + const ValueObjectRegister &operator=(const ValueObjectRegister &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h b/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h --- a/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h +++ b/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h @@ -164,7 +164,8 @@ void CopyValueData(ValueObject *source); - DISALLOW_COPY_AND_ASSIGN(ValueObjectSynthetic); + ValueObjectSynthetic(const ValueObjectSynthetic &) = delete; + const ValueObjectSynthetic &operator=(const ValueObjectSynthetic &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Core/ValueObjectVariable.h b/lldb/include/lldb/Core/ValueObjectVariable.h --- a/lldb/include/lldb/Core/ValueObjectVariable.h +++ b/lldb/include/lldb/Core/ValueObjectVariable.h @@ -80,7 +80,8 @@ ValueObjectManager &manager, const lldb::VariableSP &var_sp); // For ValueObject only - DISALLOW_COPY_AND_ASSIGN(ValueObjectVariable); + ValueObjectVariable(const ValueObjectVariable &) = delete; + const ValueObjectVariable &operator=(const ValueObjectVariable &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/DataFormatters/FormatClasses.h b/lldb/include/lldb/DataFormatters/FormatClasses.h --- a/lldb/include/lldb/DataFormatters/FormatClasses.h +++ b/lldb/include/lldb/DataFormatters/FormatClasses.h @@ -152,7 +152,9 @@ TypeOrName m_type; private: - DISALLOW_COPY_AND_ASSIGN(TypeNameSpecifierImpl); + TypeNameSpecifierImpl(const TypeNameSpecifierImpl &) = delete; + const TypeNameSpecifierImpl & + operator=(const TypeNameSpecifierImpl &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/DataFormatters/FormattersContainer.h b/lldb/include/lldb/DataFormatters/FormattersContainer.h --- a/lldb/include/lldb/DataFormatters/FormattersContainer.h +++ b/lldb/include/lldb/DataFormatters/FormattersContainer.h @@ -218,7 +218,8 @@ BackEndType m_format_map; std::string m_name; - DISALLOW_COPY_AND_ASSIGN(FormattersContainer); + FormattersContainer(const FormattersContainer &) = delete; + const FormattersContainer &operator=(const FormattersContainer &) = delete; void Add_Impl(MapKeyType type, const MapValueType &entry, RegularExpression *dummy) { diff --git a/lldb/include/lldb/DataFormatters/TypeFormat.h b/lldb/include/lldb/DataFormatters/TypeFormat.h --- a/lldb/include/lldb/DataFormatters/TypeFormat.h +++ b/lldb/include/lldb/DataFormatters/TypeFormat.h @@ -152,7 +152,8 @@ uint32_t m_my_revision; private: - DISALLOW_COPY_AND_ASSIGN(TypeFormatImpl); + TypeFormatImpl(const TypeFormatImpl &) = delete; + const TypeFormatImpl &operator=(const TypeFormatImpl &) = delete; }; class TypeFormatImpl_Format : public TypeFormatImpl { @@ -180,7 +181,9 @@ lldb::Format m_format; private: - DISALLOW_COPY_AND_ASSIGN(TypeFormatImpl_Format); + TypeFormatImpl_Format(const TypeFormatImpl_Format &) = delete; + const TypeFormatImpl_Format & + operator=(const TypeFormatImpl_Format &) = delete; }; class TypeFormatImpl_EnumType : public TypeFormatImpl { @@ -209,7 +212,9 @@ mutable std::unordered_map m_types; private: - DISALLOW_COPY_AND_ASSIGN(TypeFormatImpl_EnumType); + TypeFormatImpl_EnumType(const TypeFormatImpl_EnumType &) = delete; + const TypeFormatImpl_EnumType & + operator=(const TypeFormatImpl_EnumType &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/DataFormatters/TypeSummary.h b/lldb/include/lldb/DataFormatters/TypeSummary.h --- a/lldb/include/lldb/DataFormatters/TypeSummary.h +++ b/lldb/include/lldb/DataFormatters/TypeSummary.h @@ -270,7 +270,8 @@ private: Kind m_kind; - DISALLOW_COPY_AND_ASSIGN(TypeSummaryImpl); + TypeSummaryImpl(const TypeSummaryImpl &) = delete; + const TypeSummaryImpl &operator=(const TypeSummaryImpl &) = delete; }; // simple string-based summaries, using ${var to show data @@ -297,7 +298,8 @@ } private: - DISALLOW_COPY_AND_ASSIGN(StringSummaryFormat); + StringSummaryFormat(const StringSummaryFormat &) = delete; + const StringSummaryFormat &operator=(const StringSummaryFormat &) = delete; }; // summaries implemented via a C++ function @@ -341,7 +343,9 @@ typedef std::shared_ptr SharedPointer; private: - DISALLOW_COPY_AND_ASSIGN(CXXFunctionSummaryFormat); + CXXFunctionSummaryFormat(const CXXFunctionSummaryFormat &) = delete; + const CXXFunctionSummaryFormat & + operator=(const CXXFunctionSummaryFormat &) = delete; }; // Python-based summaries, running script code to show data @@ -387,7 +391,8 @@ typedef std::shared_ptr SharedPointer; private: - DISALLOW_COPY_AND_ASSIGN(ScriptSummaryFormat); + ScriptSummaryFormat(const ScriptSummaryFormat &) = delete; + const ScriptSummaryFormat &operator=(const ScriptSummaryFormat &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/DataFormatters/TypeSynthetic.h b/lldb/include/lldb/DataFormatters/TypeSynthetic.h --- a/lldb/include/lldb/DataFormatters/TypeSynthetic.h +++ b/lldb/include/lldb/DataFormatters/TypeSynthetic.h @@ -96,7 +96,9 @@ private: bool m_valid; - DISALLOW_COPY_AND_ASSIGN(SyntheticChildrenFrontEnd); + SyntheticChildrenFrontEnd(const SyntheticChildrenFrontEnd &) = delete; + const SyntheticChildrenFrontEnd & + operator=(const SyntheticChildrenFrontEnd &) = delete; }; class SyntheticValueProviderFrontEnd : public SyntheticChildrenFrontEnd { @@ -121,7 +123,10 @@ lldb::ValueObjectSP GetSyntheticValue() override = 0; private: - DISALLOW_COPY_AND_ASSIGN(SyntheticValueProviderFrontEnd); + SyntheticValueProviderFrontEnd(const SyntheticValueProviderFrontEnd &) = + delete; + const SyntheticValueProviderFrontEnd & + operator=(const SyntheticValueProviderFrontEnd &) = delete; }; class SyntheticChildren { @@ -265,7 +270,8 @@ Flags m_flags; private: - DISALLOW_COPY_AND_ASSIGN(SyntheticChildren); + SyntheticChildren(const SyntheticChildren &) = delete; + const SyntheticChildren &operator=(const SyntheticChildren &) = delete; }; class TypeFilterImpl : public SyntheticChildren { @@ -333,7 +339,8 @@ private: TypeFilterImpl *filter; - DISALLOW_COPY_AND_ASSIGN(FrontEnd); + FrontEnd(const FrontEnd &) = delete; + const FrontEnd &operator=(const FrontEnd &) = delete; }; SyntheticChildrenFrontEnd::AutoPointer @@ -344,7 +351,8 @@ typedef std::shared_ptr SharedPointer; private: - DISALLOW_COPY_AND_ASSIGN(TypeFilterImpl); + TypeFilterImpl(const TypeFilterImpl &) = delete; + const TypeFilterImpl &operator=(const TypeFilterImpl &) = delete; }; class CXXSyntheticChildren : public SyntheticChildren { @@ -372,7 +380,8 @@ std::string m_description; private: - DISALLOW_COPY_AND_ASSIGN(CXXSyntheticChildren); + CXXSyntheticChildren(const CXXSyntheticChildren &) = delete; + const CXXSyntheticChildren &operator=(const CXXSyntheticChildren &) = delete; }; class ScriptedSyntheticChildren : public SyntheticChildren { @@ -435,7 +444,8 @@ StructuredData::ObjectSP m_wrapper_sp; ScriptInterpreter *m_interpreter; - DISALLOW_COPY_AND_ASSIGN(FrontEnd); + FrontEnd(const FrontEnd &) = delete; + const FrontEnd &operator=(const FrontEnd &) = delete; }; SyntheticChildrenFrontEnd::AutoPointer @@ -448,7 +458,9 @@ } private: - DISALLOW_COPY_AND_ASSIGN(ScriptedSyntheticChildren); + ScriptedSyntheticChildren(const ScriptedSyntheticChildren &) = delete; + const ScriptedSyntheticChildren & + operator=(const ScriptedSyntheticChildren &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/DataFormatters/ValueObjectPrinter.h b/lldb/include/lldb/DataFormatters/ValueObjectPrinter.h --- a/lldb/include/lldb/DataFormatters/ValueObjectPrinter.h +++ b/lldb/include/lldb/DataFormatters/ValueObjectPrinter.h @@ -141,7 +141,8 @@ friend struct StringSummaryFormat; - DISALLOW_COPY_AND_ASSIGN(ValueObjectPrinter); + ValueObjectPrinter(const ValueObjectPrinter &) = delete; + const ValueObjectPrinter &operator=(const ValueObjectPrinter &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Expression/IRMemoryMap.h b/lldb/include/lldb/Expression/IRMemoryMap.h --- a/lldb/include/lldb/Expression/IRMemoryMap.h +++ b/lldb/include/lldb/Expression/IRMemoryMap.h @@ -107,7 +107,8 @@ size_t size, uint32_t permissions, uint8_t alignment, AllocationPolicy m_policy); - DISALLOW_COPY_AND_ASSIGN(Allocation); + Allocation(const Allocation &) = delete; + const Allocation &operator=(const Allocation &) = delete; }; static_assert(sizeof(Allocation) <= diff --git a/lldb/include/lldb/Host/File.h b/lldb/include/lldb/Host/File.h --- a/lldb/include/lldb/Host/File.h +++ b/lldb/include/lldb/Host/File.h @@ -367,7 +367,8 @@ void CalculateInteractiveAndTerminal(); private: - DISALLOW_COPY_AND_ASSIGN(File); + File(const File &) = delete; + const File &operator=(const File &) = delete; }; class NativeFile : public File { @@ -428,7 +429,8 @@ std::mutex offset_access_mutex; private: - DISALLOW_COPY_AND_ASSIGN(NativeFile); + NativeFile(const NativeFile &) = delete; + const NativeFile &operator=(const NativeFile &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Host/HostNativeProcessBase.h b/lldb/include/lldb/Host/HostNativeProcessBase.h --- a/lldb/include/lldb/Host/HostNativeProcessBase.h +++ b/lldb/include/lldb/Host/HostNativeProcessBase.h @@ -19,7 +19,9 @@ class HostThread; class HostNativeProcessBase { - DISALLOW_COPY_AND_ASSIGN(HostNativeProcessBase); + HostNativeProcessBase(const HostNativeProcessBase &) = delete; + const HostNativeProcessBase & + operator=(const HostNativeProcessBase &) = delete; public: HostNativeProcessBase() : m_process(LLDB_INVALID_PROCESS) {} diff --git a/lldb/include/lldb/Host/HostNativeThreadBase.h b/lldb/include/lldb/Host/HostNativeThreadBase.h --- a/lldb/include/lldb/Host/HostNativeThreadBase.h +++ b/lldb/include/lldb/Host/HostNativeThreadBase.h @@ -23,7 +23,8 @@ class HostNativeThreadBase { friend class ThreadLauncher; - DISALLOW_COPY_AND_ASSIGN(HostNativeThreadBase); + HostNativeThreadBase(const HostNativeThreadBase &) = delete; + const HostNativeThreadBase &operator=(const HostNativeThreadBase &) = delete; public: HostNativeThreadBase(); diff --git a/lldb/include/lldb/Host/MainLoop.h b/lldb/include/lldb/Host/MainLoop.h --- a/lldb/include/lldb/Host/MainLoop.h +++ b/lldb/include/lldb/Host/MainLoop.h @@ -86,7 +86,8 @@ int m_signo; friend class MainLoop; - DISALLOW_COPY_AND_ASSIGN(SignalHandle); + SignalHandle(const SignalHandle &) = delete; + const SignalHandle &operator=(const SignalHandle &) = delete; }; struct SignalInfo { diff --git a/lldb/include/lldb/Host/MainLoopBase.h b/lldb/include/lldb/Host/MainLoopBase.h --- a/lldb/include/lldb/Host/MainLoopBase.h +++ b/lldb/include/lldb/Host/MainLoopBase.h @@ -75,11 +75,13 @@ IOObject::WaitableHandle m_handle; friend class MainLoopBase; - DISALLOW_COPY_AND_ASSIGN(ReadHandle); + ReadHandle(const ReadHandle &) = delete; + const ReadHandle &operator=(const ReadHandle &) = delete; }; private: - DISALLOW_COPY_AND_ASSIGN(MainLoopBase); + MainLoopBase(const MainLoopBase &) = delete; + const MainLoopBase &operator=(const MainLoopBase &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Host/ProcessRunLock.h b/lldb/include/lldb/Host/ProcessRunLock.h --- a/lldb/include/lldb/Host/ProcessRunLock.h +++ b/lldb/include/lldb/Host/ProcessRunLock.h @@ -67,7 +67,8 @@ ProcessRunLock *m_lock; private: - DISALLOW_COPY_AND_ASSIGN(ProcessRunLocker); + ProcessRunLocker(const ProcessRunLocker &) = delete; + const ProcessRunLocker &operator=(const ProcessRunLocker &) = delete; }; protected: @@ -75,7 +76,8 @@ bool m_running; private: - DISALLOW_COPY_AND_ASSIGN(ProcessRunLock); + ProcessRunLock(const ProcessRunLock &) = delete; + const ProcessRunLock &operator=(const ProcessRunLock &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Host/PseudoTerminal.h b/lldb/include/lldb/Host/PseudoTerminal.h --- a/lldb/include/lldb/Host/PseudoTerminal.h +++ b/lldb/include/lldb/Host/PseudoTerminal.h @@ -209,7 +209,8 @@ int m_slave_fd; ///< The file descriptor for the slave. private: - DISALLOW_COPY_AND_ASSIGN(PseudoTerminal); + PseudoTerminal(const PseudoTerminal &) = delete; + const PseudoTerminal &operator=(const PseudoTerminal &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Host/common/NativeRegisterContext.h b/lldb/include/lldb/Host/common/NativeRegisterContext.h --- a/lldb/include/lldb/Host/common/NativeRegisterContext.h +++ b/lldb/include/lldb/Host/common/NativeRegisterContext.h @@ -170,7 +170,9 @@ private: // For RegisterContext only - DISALLOW_COPY_AND_ASSIGN(NativeRegisterContext); + NativeRegisterContext(const NativeRegisterContext &) = delete; + const NativeRegisterContext & + operator=(const NativeRegisterContext &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Host/posix/ConnectionFileDescriptorPosix.h b/lldb/include/lldb/Host/posix/ConnectionFileDescriptorPosix.h --- a/lldb/include/lldb/Host/posix/ConnectionFileDescriptorPosix.h +++ b/lldb/include/lldb/Host/posix/ConnectionFileDescriptorPosix.h @@ -116,7 +116,9 @@ private: void InitializeSocket(Socket *socket); - DISALLOW_COPY_AND_ASSIGN(ConnectionFileDescriptor); + ConnectionFileDescriptor(const ConnectionFileDescriptor &) = delete; + const ConnectionFileDescriptor & + operator=(const ConnectionFileDescriptor &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Host/posix/HostThreadPosix.h b/lldb/include/lldb/Host/posix/HostThreadPosix.h --- a/lldb/include/lldb/Host/posix/HostThreadPosix.h +++ b/lldb/include/lldb/Host/posix/HostThreadPosix.h @@ -14,7 +14,8 @@ namespace lldb_private { class HostThreadPosix : public HostNativeThreadBase { - DISALLOW_COPY_AND_ASSIGN(HostThreadPosix); + HostThreadPosix(const HostThreadPosix &) = delete; + const HostThreadPosix &operator=(const HostThreadPosix &) = delete; public: HostThreadPosix(); diff --git a/lldb/include/lldb/Host/windows/ConnectionGenericFileWindows.h b/lldb/include/lldb/Host/windows/ConnectionGenericFileWindows.h --- a/lldb/include/lldb/Host/windows/ConnectionGenericFileWindows.h +++ b/lldb/include/lldb/Host/windows/ConnectionGenericFileWindows.h @@ -56,7 +56,9 @@ std::string m_uri; - DISALLOW_COPY_AND_ASSIGN(ConnectionGenericFile); + ConnectionGenericFile(const ConnectionGenericFile &) = delete; + const ConnectionGenericFile & + operator=(const ConnectionGenericFile &) = delete; }; } diff --git a/lldb/include/lldb/Host/windows/HostThreadWindows.h b/lldb/include/lldb/Host/windows/HostThreadWindows.h --- a/lldb/include/lldb/Host/windows/HostThreadWindows.h +++ b/lldb/include/lldb/Host/windows/HostThreadWindows.h @@ -16,7 +16,8 @@ namespace lldb_private { class HostThreadWindows : public HostNativeThreadBase { - DISALLOW_COPY_AND_ASSIGN(HostThreadWindows); + HostThreadWindows(const HostThreadWindows &) = delete; + const HostThreadWindows &operator=(const HostThreadWindows &) = delete; public: HostThreadWindows(); diff --git a/lldb/include/lldb/Interpreter/CommandHistory.h b/lldb/include/lldb/Interpreter/CommandHistory.h --- a/lldb/include/lldb/Interpreter/CommandHistory.h +++ b/lldb/include/lldb/Interpreter/CommandHistory.h @@ -46,7 +46,8 @@ static const char g_repeat_char = '!'; private: - DISALLOW_COPY_AND_ASSIGN(CommandHistory); + CommandHistory(const CommandHistory &) = delete; + const CommandHistory &operator=(const CommandHistory &) = delete; typedef std::vector History; mutable std::recursive_mutex m_mutex; diff --git a/lldb/include/lldb/Interpreter/CommandObjectRegexCommand.h b/lldb/include/lldb/Interpreter/CommandObjectRegexCommand.h --- a/lldb/include/lldb/Interpreter/CommandObjectRegexCommand.h +++ b/lldb/include/lldb/Interpreter/CommandObjectRegexCommand.h @@ -51,7 +51,9 @@ bool m_is_removable; private: - DISALLOW_COPY_AND_ASSIGN(CommandObjectRegexCommand); + CommandObjectRegexCommand(const CommandObjectRegexCommand &) = delete; + const CommandObjectRegexCommand & + operator=(const CommandObjectRegexCommand &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Interpreter/OptionGroupVariable.h b/lldb/include/lldb/Interpreter/OptionGroupVariable.h --- a/lldb/include/lldb/Interpreter/OptionGroupVariable.h +++ b/lldb/include/lldb/Interpreter/OptionGroupVariable.h @@ -41,7 +41,8 @@ OptionValueString summary_string; // a summary string private: - DISALLOW_COPY_AND_ASSIGN(OptionGroupVariable); + OptionGroupVariable(const OptionGroupVariable &) = delete; + const OptionGroupVariable &operator=(const OptionGroupVariable &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Interpreter/OptionGroupWatchpoint.h b/lldb/include/lldb/Interpreter/OptionGroupWatchpoint.h --- a/lldb/include/lldb/Interpreter/OptionGroupWatchpoint.h +++ b/lldb/include/lldb/Interpreter/OptionGroupWatchpoint.h @@ -46,7 +46,9 @@ bool watch_type_specified; private: - DISALLOW_COPY_AND_ASSIGN(OptionGroupWatchpoint); + OptionGroupWatchpoint(const OptionGroupWatchpoint &) = delete; + const OptionGroupWatchpoint & + operator=(const OptionGroupWatchpoint &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Interpreter/ScriptInterpreter.h b/lldb/include/lldb/Interpreter/ScriptInterpreter.h --- a/lldb/include/lldb/Interpreter/ScriptInterpreter.h +++ b/lldb/include/lldb/Interpreter/ScriptInterpreter.h @@ -29,7 +29,9 @@ virtual ~ScriptInterpreterLocker() = default; private: - DISALLOW_COPY_AND_ASSIGN(ScriptInterpreterLocker); + ScriptInterpreterLocker(const ScriptInterpreterLocker &) = delete; + const ScriptInterpreterLocker & + operator=(const ScriptInterpreterLocker &) = delete; }; class ScriptInterpreter : public PluginInterface { diff --git a/lldb/include/lldb/Symbol/Block.h b/lldb/include/lldb/Symbol/Block.h --- a/lldb/include/lldb/Symbol/Block.h +++ b/lldb/include/lldb/Symbol/Block.h @@ -376,7 +376,8 @@ Block *GetSiblingForChild(const Block *child_block) const; private: - DISALLOW_COPY_AND_ASSIGN(Block); + Block(const Block &) = delete; + const Block &operator=(const Block &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Symbol/CompileUnit.h b/lldb/include/lldb/Symbol/CompileUnit.h --- a/lldb/include/lldb/Symbol/CompileUnit.h +++ b/lldb/include/lldb/Symbol/CompileUnit.h @@ -447,7 +447,8 @@ (1u << 6) ///< Have we parsed the debug macros already? }; - DISALLOW_COPY_AND_ASSIGN(CompileUnit); + CompileUnit(const CompileUnit &) = delete; + const CompileUnit &operator=(const CompileUnit &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Symbol/DebugMacros.h b/lldb/include/lldb/Symbol/DebugMacros.h --- a/lldb/include/lldb/Symbol/DebugMacros.h +++ b/lldb/include/lldb/Symbol/DebugMacros.h @@ -89,7 +89,8 @@ } private: - DISALLOW_COPY_AND_ASSIGN(DebugMacros); + DebugMacros(const DebugMacros &) = delete; + const DebugMacros &operator=(const DebugMacros &) = delete; std::vector m_macro_entries; }; diff --git a/lldb/include/lldb/Symbol/DeclVendor.h b/lldb/include/lldb/Symbol/DeclVendor.h --- a/lldb/include/lldb/Symbol/DeclVendor.h +++ b/lldb/include/lldb/Symbol/DeclVendor.h @@ -67,7 +67,8 @@ private: // For DeclVendor only - DISALLOW_COPY_AND_ASSIGN(DeclVendor); + DeclVendor(const DeclVendor &) = delete; + const DeclVendor &operator=(const DeclVendor &) = delete; const DeclVendorKind m_kind; }; diff --git a/lldb/include/lldb/Symbol/FuncUnwinders.h b/lldb/include/lldb/Symbol/FuncUnwinders.h --- a/lldb/include/lldb/Symbol/FuncUnwinders.h +++ b/lldb/include/lldb/Symbol/FuncUnwinders.h @@ -149,7 +149,8 @@ Address m_first_non_prologue_insn; - DISALLOW_COPY_AND_ASSIGN(FuncUnwinders); + FuncUnwinders(const FuncUnwinders &) = delete; + const FuncUnwinders &operator=(const FuncUnwinders &) = delete; }; // class FuncUnwinders diff --git a/lldb/include/lldb/Symbol/Function.h b/lldb/include/lldb/Symbol/Function.h --- a/lldb/include/lldb/Symbol/Function.h +++ b/lldb/include/lldb/Symbol/Function.h @@ -640,7 +640,8 @@ /// parsed. std::vector> m_call_edges; ///< Outgoing call edges. private: - DISALLOW_COPY_AND_ASSIGN(Function); + Function(const Function &) = delete; + const Function &operator=(const Function &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Symbol/LineTable.h b/lldb/include/lldb/Symbol/LineTable.h --- a/lldb/include/lldb/Symbol/LineTable.h +++ b/lldb/include/lldb/Symbol/LineTable.h @@ -29,7 +29,8 @@ virtual void Clear() = 0; private: - DISALLOW_COPY_AND_ASSIGN(LineSequence); + LineSequence(const LineSequence &) = delete; + const LineSequence &operator=(const LineSequence &) = delete; }; /// \class LineTable LineTable.h "lldb/Symbol/LineTable.h" @@ -337,7 +338,8 @@ bool ConvertEntryAtIndexToLineEntry(uint32_t idx, LineEntry &line_entry); private: - DISALLOW_COPY_AND_ASSIGN(LineTable); + LineTable(const LineTable &) = delete; + const LineTable &operator=(const LineTable &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Symbol/ObjectContainer.h b/lldb/include/lldb/Symbol/ObjectContainer.h --- a/lldb/include/lldb/Symbol/ObjectContainer.h +++ b/lldb/include/lldb/Symbol/ObjectContainer.h @@ -167,7 +167,8 @@ m_data; ///< The data for this object file so things can be parsed lazily. private: - DISALLOW_COPY_AND_ASSIGN(ObjectContainer); + ObjectContainer(const ObjectContainer &) = delete; + const ObjectContainer &operator=(const ObjectContainer &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Symbol/ObjectFile.h b/lldb/include/lldb/Symbol/ObjectFile.h --- a/lldb/include/lldb/Symbol/ObjectFile.h +++ b/lldb/include/lldb/Symbol/ObjectFile.h @@ -686,7 +686,8 @@ uint64_t Offset); private: - DISALLOW_COPY_AND_ASSIGN(ObjectFile); + ObjectFile(const ObjectFile &) = delete; + const ObjectFile &operator=(const ObjectFile &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Symbol/SymbolFile.h b/lldb/include/lldb/Symbol/SymbolFile.h --- a/lldb/include/lldb/Symbol/SymbolFile.h +++ b/lldb/include/lldb/Symbol/SymbolFile.h @@ -317,7 +317,8 @@ bool m_calculated_abilities; private: - DISALLOW_COPY_AND_ASSIGN(SymbolFile); + SymbolFile(const SymbolFile &) = delete; + const SymbolFile &operator=(const SymbolFile &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Symbol/SymbolVendor.h b/lldb/include/lldb/Symbol/SymbolVendor.h --- a/lldb/include/lldb/Symbol/SymbolVendor.h +++ b/lldb/include/lldb/Symbol/SymbolVendor.h @@ -52,7 +52,8 @@ private: // For SymbolVendor only - DISALLOW_COPY_AND_ASSIGN(SymbolVendor); + SymbolVendor(const SymbolVendor &) = delete; + const SymbolVendor &operator=(const SymbolVendor &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Symbol/Symtab.h b/lldb/include/lldb/Symbol/Symtab.h --- a/lldb/include/lldb/Symbol/Symtab.h +++ b/lldb/include/lldb/Symbol/Symtab.h @@ -224,7 +224,8 @@ const char *decl_context, const std::set &class_contexts); - DISALLOW_COPY_AND_ASSIGN(Symtab); + Symtab(const Symtab &) = delete; + const Symtab &operator=(const Symtab &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Symbol/TypeList.h b/lldb/include/lldb/Symbol/TypeList.h --- a/lldb/include/lldb/Symbol/TypeList.h +++ b/lldb/include/lldb/Symbol/TypeList.h @@ -63,7 +63,8 @@ collection m_types; - DISALLOW_COPY_AND_ASSIGN(TypeList); + TypeList(const TypeList &) = delete; + const TypeList &operator=(const TypeList &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Symbol/TypeMap.h b/lldb/include/lldb/Symbol/TypeMap.h --- a/lldb/include/lldb/Symbol/TypeMap.h +++ b/lldb/include/lldb/Symbol/TypeMap.h @@ -67,7 +67,8 @@ collection m_types; - DISALLOW_COPY_AND_ASSIGN(TypeMap); + TypeMap(const TypeMap &) = delete; + const TypeMap &operator=(const TypeMap &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Symbol/UnwindTable.h b/lldb/include/lldb/Symbol/UnwindTable.h --- a/lldb/include/lldb/Symbol/UnwindTable.h +++ b/lldb/include/lldb/Symbol/UnwindTable.h @@ -79,7 +79,8 @@ std::unique_ptr m_compact_unwind_up; std::unique_ptr m_arm_unwind_up; - DISALLOW_COPY_AND_ASSIGN(UnwindTable); + UnwindTable(const UnwindTable &) = delete; + const UnwindTable &operator=(const UnwindTable &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Symbol/VariableList.h b/lldb/include/lldb/Symbol/VariableList.h --- a/lldb/include/lldb/Symbol/VariableList.h +++ b/lldb/include/lldb/Symbol/VariableList.h @@ -80,7 +80,8 @@ private: // For VariableList only - DISALLOW_COPY_AND_ASSIGN(VariableList); + VariableList(const VariableList &) = delete; + const VariableList &operator=(const VariableList &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ABI.h b/lldb/include/lldb/Target/ABI.h --- a/lldb/include/lldb/Target/ABI.h +++ b/lldb/include/lldb/Target/ABI.h @@ -148,7 +148,8 @@ std::unique_ptr m_mc_register_info_up; private: - DISALLOW_COPY_AND_ASSIGN(ABI); + ABI(const ABI &) = delete; + const ABI &operator=(const ABI &) = delete; }; class RegInfoBasedABI : public ABI { diff --git a/lldb/include/lldb/Target/DynamicLoader.h b/lldb/include/lldb/Target/DynamicLoader.h --- a/lldb/include/lldb/Target/DynamicLoader.h +++ b/lldb/include/lldb/Target/DynamicLoader.h @@ -310,7 +310,8 @@ *m_process; ///< The process that this dynamic loader plug-in is tracking. private: - DISALLOW_COPY_AND_ASSIGN(DynamicLoader); + DynamicLoader(const DynamicLoader &) = delete; + const DynamicLoader &operator=(const DynamicLoader &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/Language.h b/lldb/include/lldb/Target/Language.h --- a/lldb/include/lldb/Target/Language.h +++ b/lldb/include/lldb/Target/Language.h @@ -270,7 +270,8 @@ Language(); private: - DISALLOW_COPY_AND_ASSIGN(Language); + Language(const Language &) = delete; + const Language &operator=(const Language &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/LanguageRuntime.h b/lldb/include/lldb/Target/LanguageRuntime.h --- a/lldb/include/lldb/Target/LanguageRuntime.h +++ b/lldb/include/lldb/Target/LanguageRuntime.h @@ -185,7 +185,8 @@ Process *m_process; private: - DISALLOW_COPY_AND_ASSIGN(LanguageRuntime); + LanguageRuntime(const LanguageRuntime &) = delete; + const LanguageRuntime &operator=(const LanguageRuntime &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/Memory.h b/lldb/include/lldb/Target/Memory.h --- a/lldb/include/lldb/Target/Memory.h +++ b/lldb/include/lldb/Target/Memory.h @@ -59,7 +59,8 @@ uint32_t m_L2_cache_line_byte_size; private: - DISALLOW_COPY_AND_ASSIGN(MemoryCache); + MemoryCache(const MemoryCache &) = delete; + const MemoryCache &operator=(const MemoryCache &) = delete; }; @@ -135,7 +136,8 @@ PermissionsToBlockMap m_memory_map; private: - DISALLOW_COPY_AND_ASSIGN(AllocatedMemoryCache); + AllocatedMemoryCache(const AllocatedMemoryCache &) = delete; + const AllocatedMemoryCache &operator=(const AllocatedMemoryCache &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/OperatingSystem.h b/lldb/include/lldb/Target/OperatingSystem.h --- a/lldb/include/lldb/Target/OperatingSystem.h +++ b/lldb/include/lldb/Target/OperatingSystem.h @@ -69,7 +69,8 @@ Process *m_process; ///< The process that this dynamic loader plug-in is tracking. private: - DISALLOW_COPY_AND_ASSIGN(OperatingSystem); + OperatingSystem(const OperatingSystem &) = delete; + const OperatingSystem &operator=(const OperatingSystem &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/Platform.h b/lldb/include/lldb/Target/Platform.h --- a/lldb/include/lldb/Target/Platform.h +++ b/lldb/include/lldb/Target/Platform.h @@ -928,7 +928,8 @@ FileSpec GetModuleCacheRoot(); - DISALLOW_COPY_AND_ASSIGN(Platform); + Platform(const Platform &) = delete; + const Platform &operator=(const Platform &) = delete; }; class PlatformList { @@ -995,7 +996,8 @@ lldb::PlatformSP m_selected_platform_sp; private: - DISALLOW_COPY_AND_ASSIGN(PlatformList); + PlatformList(const PlatformList &) = delete; + const PlatformList &operator=(const PlatformList &) = delete; }; class OptionGroupPlatformRSync : public lldb_private::OptionGroup { @@ -1020,7 +1022,9 @@ bool m_ignores_remote_hostname; private: - DISALLOW_COPY_AND_ASSIGN(OptionGroupPlatformRSync); + OptionGroupPlatformRSync(const OptionGroupPlatformRSync &) = delete; + const OptionGroupPlatformRSync & + operator=(const OptionGroupPlatformRSync &) = delete; }; class OptionGroupPlatformSSH : public lldb_private::OptionGroup { @@ -1043,7 +1047,9 @@ std::string m_ssh_opts; private: - DISALLOW_COPY_AND_ASSIGN(OptionGroupPlatformSSH); + OptionGroupPlatformSSH(const OptionGroupPlatformSSH &) = delete; + const OptionGroupPlatformSSH & + operator=(const OptionGroupPlatformSSH &) = delete; }; class OptionGroupPlatformCaching : public lldb_private::OptionGroup { @@ -1065,7 +1071,9 @@ std::string m_cache_dir; private: - DISALLOW_COPY_AND_ASSIGN(OptionGroupPlatformCaching); + OptionGroupPlatformCaching(const OptionGroupPlatformCaching &) = delete; + const OptionGroupPlatformCaching & + operator=(const OptionGroupPlatformCaching &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/Process.h b/lldb/include/lldb/Target/Process.h --- a/lldb/include/lldb/Target/Process.h +++ b/lldb/include/lldb/Target/Process.h @@ -497,7 +497,8 @@ int m_update_state; bool m_interrupted; - DISALLOW_COPY_AND_ASSIGN(ProcessEventData); + ProcessEventData(const ProcessEventData &) = delete; + const ProcessEventData &operator=(const ProcessEventData &) = delete; }; /// Construct with a shared pointer to a target, and the Process listener. @@ -2933,7 +2934,8 @@ void ControlPrivateStateThread(uint32_t signal); - DISALLOW_COPY_AND_ASSIGN(Process); + Process(const Process &) = delete; + const Process &operator=(const Process &) = delete; }; /// RAII guard that should be acquired when an utility function is called within diff --git a/lldb/include/lldb/Target/Queue.h b/lldb/include/lldb/Target/Queue.h --- a/lldb/include/lldb/Target/Queue.h +++ b/lldb/include/lldb/Target/Queue.h @@ -144,7 +144,8 @@ // dispatch_queue_t for this Queue lldb::QueueKind m_kind; - DISALLOW_COPY_AND_ASSIGN(Queue); + Queue(const Queue &) = delete; + const Queue &operator=(const Queue &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/QueueItem.h b/lldb/include/lldb/Target/QueueItem.h --- a/lldb/include/lldb/Target/QueueItem.h +++ b/lldb/include/lldb/Target/QueueItem.h @@ -159,7 +159,8 @@ std::string m_target_queue_label; private: - DISALLOW_COPY_AND_ASSIGN(QueueItem); + QueueItem(const QueueItem &) = delete; + const QueueItem &operator=(const QueueItem &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/RegisterCheckpoint.h b/lldb/include/lldb/Target/RegisterCheckpoint.h --- a/lldb/include/lldb/Target/RegisterCheckpoint.h +++ b/lldb/include/lldb/Target/RegisterCheckpoint.h @@ -45,7 +45,8 @@ Reason m_reason; // Make RegisterCheckpointSP if you wish to share the data in this class. - DISALLOW_COPY_AND_ASSIGN(RegisterCheckpoint); + RegisterCheckpoint(const RegisterCheckpoint &) = delete; + const RegisterCheckpoint &operator=(const RegisterCheckpoint &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/RegisterContext.h b/lldb/include/lldb/Target/RegisterContext.h --- a/lldb/include/lldb/Target/RegisterContext.h +++ b/lldb/include/lldb/Target/RegisterContext.h @@ -201,7 +201,8 @@ uint32_t m_stop_id; // The stop ID that any data in this context is valid for private: // For RegisterContext only - DISALLOW_COPY_AND_ASSIGN(RegisterContext); + RegisterContext(const RegisterContext &) = delete; + const RegisterContext &operator=(const RegisterContext &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/RegisterContextUnwind.h b/lldb/include/lldb/Target/RegisterContextUnwind.h --- a/lldb/include/lldb/Target/RegisterContextUnwind.h +++ b/lldb/include/lldb/Target/RegisterContextUnwind.h @@ -249,7 +249,9 @@ lldb_private::UnwindLLDB &m_parent_unwind; // The UnwindLLDB that is creating // this RegisterContextUnwind - DISALLOW_COPY_AND_ASSIGN(RegisterContextUnwind); + RegisterContextUnwind(const RegisterContextUnwind &) = delete; + const RegisterContextUnwind & + operator=(const RegisterContextUnwind &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/SectionLoadHistory.h b/lldb/include/lldb/Target/SectionLoadHistory.h --- a/lldb/include/lldb/Target/SectionLoadHistory.h +++ b/lldb/include/lldb/Target/SectionLoadHistory.h @@ -75,7 +75,8 @@ mutable std::recursive_mutex m_mutex; private: - DISALLOW_COPY_AND_ASSIGN(SectionLoadHistory); + SectionLoadHistory(const SectionLoadHistory &) = delete; + const SectionLoadHistory &operator=(const SectionLoadHistory &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/StackFrame.h b/lldb/include/lldb/Target/StackFrame.h --- a/lldb/include/lldb/Target/StackFrame.h +++ b/lldb/include/lldb/Target/StackFrame.h @@ -525,7 +525,8 @@ StreamString m_disassembly; std::recursive_mutex m_mutex; - DISALLOW_COPY_AND_ASSIGN(StackFrame); + StackFrame(const StackFrame &) = delete; + const StackFrame &operator=(const StackFrame &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/StackFrameList.h b/lldb/include/lldb/Target/StackFrameList.h --- a/lldb/include/lldb/Target/StackFrameList.h +++ b/lldb/include/lldb/Target/StackFrameList.h @@ -155,7 +155,8 @@ const bool m_show_inlined_frames; private: - DISALLOW_COPY_AND_ASSIGN(StackFrameList); + StackFrameList(const StackFrameList &) = delete; + const StackFrameList &operator=(const StackFrameList &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/StackFrameRecognizer.h b/lldb/include/lldb/Target/StackFrameRecognizer.h --- a/lldb/include/lldb/Target/StackFrameRecognizer.h +++ b/lldb/include/lldb/Target/StackFrameRecognizer.h @@ -90,7 +90,9 @@ lldb::StackFrameSP frame) override; private: - DISALLOW_COPY_AND_ASSIGN(ScriptedStackFrameRecognizer); + ScriptedStackFrameRecognizer(const ScriptedStackFrameRecognizer &) = delete; + const ScriptedStackFrameRecognizer & + operator=(const ScriptedStackFrameRecognizer &) = delete; }; /// \class StackFrameRecognizerManager diff --git a/lldb/include/lldb/Target/StopInfo.h b/lldb/include/lldb/Target/StopInfo.h --- a/lldb/include/lldb/Target/StopInfo.h +++ b/lldb/include/lldb/Target/StopInfo.h @@ -183,7 +183,8 @@ private: friend class Thread; - DISALLOW_COPY_AND_ASSIGN(StopInfo); + StopInfo(const StopInfo &) = delete; + const StopInfo &operator=(const StopInfo &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/StructuredDataPlugin.h b/lldb/include/lldb/Target/StructuredDataPlugin.h --- a/lldb/include/lldb/Target/StructuredDataPlugin.h +++ b/lldb/include/lldb/Target/StructuredDataPlugin.h @@ -162,7 +162,8 @@ private: lldb::ProcessWP m_process_wp; - DISALLOW_COPY_AND_ASSIGN(StructuredDataPlugin); + StructuredDataPlugin(const StructuredDataPlugin &) = delete; + const StructuredDataPlugin &operator=(const StructuredDataPlugin &) = delete; }; } diff --git a/lldb/include/lldb/Target/SystemRuntime.h b/lldb/include/lldb/Target/SystemRuntime.h --- a/lldb/include/lldb/Target/SystemRuntime.h +++ b/lldb/include/lldb/Target/SystemRuntime.h @@ -300,7 +300,8 @@ std::vector m_types; private: - DISALLOW_COPY_AND_ASSIGN(SystemRuntime); + SystemRuntime(const SystemRuntime &) = delete; + const SystemRuntime &operator=(const SystemRuntime &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/Target.h b/lldb/include/lldb/Target/Target.h --- a/lldb/include/lldb/Target/Target.h +++ b/lldb/include/lldb/Target/Target.h @@ -485,7 +485,8 @@ lldb::TargetSP m_target_sp; ModuleList m_module_list; - DISALLOW_COPY_AND_ASSIGN(TargetEventData); + TargetEventData(const TargetEventData &) = delete; + const TargetEventData &operator=(const TargetEventData &) = delete; }; ~Target() override; @@ -1369,7 +1370,8 @@ void FinalizeFileActions(ProcessLaunchInfo &info); - DISALLOW_COPY_AND_ASSIGN(Target); + Target(const Target &) = delete; + const Target &operator=(const Target &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/TargetList.h b/lldb/include/lldb/Target/TargetList.h --- a/lldb/include/lldb/Target/TargetList.h +++ b/lldb/include/lldb/Target/TargetList.h @@ -206,7 +206,8 @@ lldb::PlatformSP &platform_sp, lldb::TargetSP &target_sp, bool is_dummy_target); - DISALLOW_COPY_AND_ASSIGN(TargetList); + TargetList(const TargetList &) = delete; + const TargetList &operator=(const TargetList &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/Thread.h b/lldb/include/lldb/Target/Thread.h --- a/lldb/include/lldb/Target/Thread.h +++ b/lldb/include/lldb/Target/Thread.h @@ -113,7 +113,8 @@ lldb::ThreadSP m_thread_sp; StackID m_stack_id; - DISALLOW_COPY_AND_ASSIGN(ThreadEventData); + ThreadEventData(const ThreadEventData &) = delete; + const ThreadEventData &operator=(const ThreadEventData &) = delete; }; struct ThreadStateCheckpoint { @@ -1260,7 +1261,8 @@ private: void BroadcastSelectedFrameChange(StackID &new_frame_id); - DISALLOW_COPY_AND_ASSIGN(Thread); + Thread(const Thread &) = delete; + const Thread &operator=(const Thread &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ThreadPlan.h b/lldb/include/lldb/Target/ThreadPlan.h --- a/lldb/include/lldb/Target/ThreadPlan.h +++ b/lldb/include/lldb/Target/ThreadPlan.h @@ -616,7 +616,8 @@ lldb::ThreadPlanTracerSP m_tracer_sp; private: - DISALLOW_COPY_AND_ASSIGN(ThreadPlan); + ThreadPlan(const ThreadPlan &) = delete; + const ThreadPlan &operator=(const ThreadPlan &) = delete; }; // ThreadPlanNull: @@ -651,7 +652,8 @@ lldb::StateType GetPlanRunState() override; - DISALLOW_COPY_AND_ASSIGN(ThreadPlanNull); + ThreadPlanNull(const ThreadPlanNull &) = delete; + const ThreadPlanNull &operator=(const ThreadPlanNull &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ThreadPlanBase.h b/lldb/include/lldb/Target/ThreadPlanBase.h --- a/lldb/include/lldb/Target/ThreadPlanBase.h +++ b/lldb/include/lldb/Target/ThreadPlanBase.h @@ -47,7 +47,8 @@ friend lldb::ThreadPlanSP Thread::QueueFundamentalPlan(bool abort_other_plans); - DISALLOW_COPY_AND_ASSIGN(ThreadPlanBase); + ThreadPlanBase(const ThreadPlanBase &) = delete; + const ThreadPlanBase &operator=(const ThreadPlanBase &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ThreadPlanCallFunction.h b/lldb/include/lldb/Target/ThreadPlanCallFunction.h --- a/lldb/include/lldb/Target/ThreadPlanCallFunction.h +++ b/lldb/include/lldb/Target/ThreadPlanCallFunction.h @@ -146,7 +146,9 @@ private: CompilerType m_return_type; - DISALLOW_COPY_AND_ASSIGN(ThreadPlanCallFunction); + ThreadPlanCallFunction(const ThreadPlanCallFunction &) = delete; + const ThreadPlanCallFunction & + operator=(const ThreadPlanCallFunction &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ThreadPlanCallFunctionUsingABI.h b/lldb/include/lldb/Target/ThreadPlanCallFunctionUsingABI.h --- a/lldb/include/lldb/Target/ThreadPlanCallFunctionUsingABI.h +++ b/lldb/include/lldb/Target/ThreadPlanCallFunctionUsingABI.h @@ -44,7 +44,10 @@ private: llvm::Type &m_return_type; - DISALLOW_COPY_AND_ASSIGN(ThreadPlanCallFunctionUsingABI); + ThreadPlanCallFunctionUsingABI(const ThreadPlanCallFunctionUsingABI &) = + delete; + const ThreadPlanCallFunctionUsingABI & + operator=(const ThreadPlanCallFunctionUsingABI &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ThreadPlanCallUserExpression.h b/lldb/include/lldb/Target/ThreadPlanCallUserExpression.h --- a/lldb/include/lldb/Target/ThreadPlanCallUserExpression.h +++ b/lldb/include/lldb/Target/ThreadPlanCallUserExpression.h @@ -56,7 +56,9 @@ m_result_var_sp; // If we are left to manage the materialization, // then stuff the result expression variable here. - DISALLOW_COPY_AND_ASSIGN(ThreadPlanCallUserExpression); + ThreadPlanCallUserExpression(const ThreadPlanCallUserExpression &) = delete; + const ThreadPlanCallUserExpression & + operator=(const ThreadPlanCallUserExpression &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ThreadPlanPython.h b/lldb/include/lldb/Target/ThreadPlanPython.h --- a/lldb/include/lldb/Target/ThreadPlanPython.h +++ b/lldb/include/lldb/Target/ThreadPlanPython.h @@ -68,7 +68,8 @@ StructuredData::ObjectSP m_implementation_sp; bool m_did_push; - DISALLOW_COPY_AND_ASSIGN(ThreadPlanPython); + ThreadPlanPython(const ThreadPlanPython &) = delete; + const ThreadPlanPython &operator=(const ThreadPlanPython &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ThreadPlanRunToAddress.h b/lldb/include/lldb/Target/ThreadPlanRunToAddress.h --- a/lldb/include/lldb/Target/ThreadPlanRunToAddress.h +++ b/lldb/include/lldb/Target/ThreadPlanRunToAddress.h @@ -59,7 +59,9 @@ std::vector m_break_ids; // This is the breakpoint we are // using to stop us at m_address. - DISALLOW_COPY_AND_ASSIGN(ThreadPlanRunToAddress); + ThreadPlanRunToAddress(const ThreadPlanRunToAddress &) = delete; + const ThreadPlanRunToAddress & + operator=(const ThreadPlanRunToAddress &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ThreadPlanShouldStopHere.h b/lldb/include/lldb/Target/ThreadPlanShouldStopHere.h --- a/lldb/include/lldb/Target/ThreadPlanShouldStopHere.h +++ b/lldb/include/lldb/Target/ThreadPlanShouldStopHere.h @@ -130,7 +130,9 @@ lldb_private::Flags m_flags; private: - DISALLOW_COPY_AND_ASSIGN(ThreadPlanShouldStopHere); + ThreadPlanShouldStopHere(const ThreadPlanShouldStopHere &) = delete; + const ThreadPlanShouldStopHere & + operator=(const ThreadPlanShouldStopHere &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ThreadPlanStepInRange.h b/lldb/include/lldb/Target/ThreadPlanStepInRange.h --- a/lldb/include/lldb/Target/ThreadPlanStepInRange.h +++ b/lldb/include/lldb/Target/ThreadPlanStepInRange.h @@ -105,7 +105,9 @@ bool m_virtual_step; // true if we've just done a "virtual step", i.e. just // moved the inline stack depth. ConstString m_step_into_target; - DISALLOW_COPY_AND_ASSIGN(ThreadPlanStepInRange); + ThreadPlanStepInRange(const ThreadPlanStepInRange &) = delete; + const ThreadPlanStepInRange & + operator=(const ThreadPlanStepInRange &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ThreadPlanStepInstruction.h b/lldb/include/lldb/Target/ThreadPlanStepInstruction.h --- a/lldb/include/lldb/Target/ThreadPlanStepInstruction.h +++ b/lldb/include/lldb/Target/ThreadPlanStepInstruction.h @@ -49,7 +49,9 @@ StackID m_stack_id; StackID m_parent_frame_id; - DISALLOW_COPY_AND_ASSIGN(ThreadPlanStepInstruction); + ThreadPlanStepInstruction(const ThreadPlanStepInstruction &) = delete; + const ThreadPlanStepInstruction & + operator=(const ThreadPlanStepInstruction &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ThreadPlanStepOut.h b/lldb/include/lldb/Target/ThreadPlanStepOut.h --- a/lldb/include/lldb/Target/ThreadPlanStepOut.h +++ b/lldb/include/lldb/Target/ThreadPlanStepOut.h @@ -85,7 +85,8 @@ void CalculateReturnValue(); - DISALLOW_COPY_AND_ASSIGN(ThreadPlanStepOut); + ThreadPlanStepOut(const ThreadPlanStepOut &) = delete; + const ThreadPlanStepOut &operator=(const ThreadPlanStepOut &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ThreadPlanStepOverBreakpoint.h b/lldb/include/lldb/Target/ThreadPlanStepOverBreakpoint.h --- a/lldb/include/lldb/Target/ThreadPlanStepOverBreakpoint.h +++ b/lldb/include/lldb/Target/ThreadPlanStepOverBreakpoint.h @@ -47,7 +47,9 @@ bool m_auto_continue; bool m_reenabled_breakpoint_site; - DISALLOW_COPY_AND_ASSIGN(ThreadPlanStepOverBreakpoint); + ThreadPlanStepOverBreakpoint(const ThreadPlanStepOverBreakpoint &) = delete; + const ThreadPlanStepOverBreakpoint & + operator=(const ThreadPlanStepOverBreakpoint &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ThreadPlanStepOverRange.h b/lldb/include/lldb/Target/ThreadPlanStepOverRange.h --- a/lldb/include/lldb/Target/ThreadPlanStepOverRange.h +++ b/lldb/include/lldb/Target/ThreadPlanStepOverRange.h @@ -45,7 +45,9 @@ bool m_first_resume; - DISALLOW_COPY_AND_ASSIGN(ThreadPlanStepOverRange); + ThreadPlanStepOverRange(const ThreadPlanStepOverRange &) = delete; + const ThreadPlanStepOverRange & + operator=(const ThreadPlanStepOverRange &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ThreadPlanStepRange.h b/lldb/include/lldb/Target/ThreadPlanStepRange.h --- a/lldb/include/lldb/Target/ThreadPlanStepRange.h +++ b/lldb/include/lldb/Target/ThreadPlanStepRange.h @@ -86,7 +86,8 @@ private: std::vector m_instruction_ranges; - DISALLOW_COPY_AND_ASSIGN(ThreadPlanStepRange); + ThreadPlanStepRange(const ThreadPlanStepRange &) = delete; + const ThreadPlanStepRange &operator=(const ThreadPlanStepRange &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ThreadPlanStepThrough.h b/lldb/include/lldb/Target/ThreadPlanStepThrough.h --- a/lldb/include/lldb/Target/ThreadPlanStepThrough.h +++ b/lldb/include/lldb/Target/ThreadPlanStepThrough.h @@ -53,7 +53,9 @@ StackID m_return_stack_id; bool m_stop_others; - DISALLOW_COPY_AND_ASSIGN(ThreadPlanStepThrough); + ThreadPlanStepThrough(const ThreadPlanStepThrough &) = delete; + const ThreadPlanStepThrough & + operator=(const ThreadPlanStepThrough &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/ThreadPlanStepUntil.h b/lldb/include/lldb/Target/ThreadPlanStepUntil.h --- a/lldb/include/lldb/Target/ThreadPlanStepUntil.h +++ b/lldb/include/lldb/Target/ThreadPlanStepUntil.h @@ -59,7 +59,8 @@ // Need an appropriate marker for the current stack so we can tell step out // from step in. - DISALLOW_COPY_AND_ASSIGN(ThreadPlanStepUntil); + ThreadPlanStepUntil(const ThreadPlanStepUntil &) = delete; + const ThreadPlanStepUntil &operator=(const ThreadPlanStepUntil &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/Unwind.h b/lldb/include/lldb/Target/Unwind.h --- a/lldb/include/lldb/Target/Unwind.h +++ b/lldb/include/lldb/Target/Unwind.h @@ -77,7 +77,8 @@ std::recursive_mutex m_unwind_mutex; private: - DISALLOW_COPY_AND_ASSIGN(Unwind); + Unwind(const Unwind &) = delete; + const Unwind &operator=(const Unwind &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/UnwindAssembly.h b/lldb/include/lldb/Target/UnwindAssembly.h --- a/lldb/include/lldb/Target/UnwindAssembly.h +++ b/lldb/include/lldb/Target/UnwindAssembly.h @@ -45,7 +45,8 @@ private: UnwindAssembly() = delete; - DISALLOW_COPY_AND_ASSIGN(UnwindAssembly); + UnwindAssembly(const UnwindAssembly &) = delete; + const UnwindAssembly &operator=(const UnwindAssembly &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Target/UnwindLLDB.h b/lldb/include/lldb/Target/UnwindLLDB.h --- a/lldb/include/lldb/Target/UnwindLLDB.h +++ b/lldb/include/lldb/Target/UnwindLLDB.h @@ -122,7 +122,8 @@ reg_ctx_lldb_sp() {} private: - DISALLOW_COPY_AND_ASSIGN(Cursor); + Cursor(const Cursor &) = delete; + const Cursor &operator=(const Cursor &) = delete; }; typedef std::shared_ptr CursorSP; @@ -149,7 +150,8 @@ bool AddFirstFrame(); // For UnwindLLDB only - DISALLOW_COPY_AND_ASSIGN(UnwindLLDB); + UnwindLLDB(const UnwindLLDB &) = delete; + const UnwindLLDB &operator=(const UnwindLLDB &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Utility/Broadcaster.h b/lldb/include/lldb/Utility/Broadcaster.h --- a/lldb/include/lldb/Utility/Broadcaster.h +++ b/lldb/include/lldb/Utility/Broadcaster.h @@ -514,7 +514,8 @@ std::vector m_hijacking_masks; private: - DISALLOW_COPY_AND_ASSIGN(BroadcasterImpl); + BroadcasterImpl(const BroadcasterImpl &) = delete; + const BroadcasterImpl &operator=(const BroadcasterImpl &) = delete; }; typedef std::shared_ptr BroadcasterImplSP; @@ -533,7 +534,8 @@ /// The name of this broadcaster object. const ConstString m_broadcaster_name; - DISALLOW_COPY_AND_ASSIGN(Broadcaster); + Broadcaster(const Broadcaster &) = delete; + const Broadcaster &operator=(const Broadcaster &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Utility/Connection.h b/lldb/include/lldb/Utility/Connection.h --- a/lldb/include/lldb/Utility/Connection.h +++ b/lldb/include/lldb/Utility/Connection.h @@ -175,7 +175,8 @@ private: // For Connection only - DISALLOW_COPY_AND_ASSIGN(Connection); + Connection(const Connection &) = delete; + const Connection &operator=(const Connection &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Utility/DataEncoder.h b/lldb/include/lldb/Utility/DataEncoder.h --- a/lldb/include/lldb/Utility/DataEncoder.h +++ b/lldb/include/lldb/Utility/DataEncoder.h @@ -243,7 +243,8 @@ /// be shared among multiple instances mutable lldb::DataBufferSP m_data_sp; - DISALLOW_COPY_AND_ASSIGN(DataEncoder); + DataEncoder(const DataEncoder &) = delete; + const DataEncoder &operator=(const DataEncoder &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Utility/Event.h b/lldb/include/lldb/Utility/Event.h --- a/lldb/include/lldb/Utility/Event.h +++ b/lldb/include/lldb/Utility/Event.h @@ -48,7 +48,8 @@ private: virtual void DoOnRemoval(Event *event_ptr) {} - DISALLOW_COPY_AND_ASSIGN(EventData); + EventData(const EventData &) = delete; + const EventData &operator=(const EventData &) = delete; }; // lldb::EventDataBytes @@ -92,7 +93,8 @@ private: std::string m_bytes; - DISALLOW_COPY_AND_ASSIGN(EventDataBytes); + EventDataBytes(const EventDataBytes &) = delete; + const EventDataBytes &operator=(const EventDataBytes &) = delete; }; class EventDataReceipt : public EventData { @@ -169,7 +171,9 @@ StructuredData::ObjectSP m_object_sp; lldb::StructuredDataPluginSP m_plugin_sp; - DISALLOW_COPY_AND_ASSIGN(EventDataStructuredData); + EventDataStructuredData(const EventDataStructuredData &) = delete; + const EventDataStructuredData & + operator=(const EventDataStructuredData &) = delete; }; // lldb::Event @@ -242,7 +246,8 @@ uint32_t m_type; // The bit describing this event lldb::EventDataSP m_data_sp; // User specific data for this event - DISALLOW_COPY_AND_ASSIGN(Event); + Event(const Event &) = delete; + const Event &operator=(const Event &) = delete; Event() = delete; }; diff --git a/lldb/include/lldb/Utility/IOObject.h b/lldb/include/lldb/Utility/IOObject.h --- a/lldb/include/lldb/Utility/IOObject.h +++ b/lldb/include/lldb/Utility/IOObject.h @@ -45,7 +45,8 @@ FDType m_fd_type; private: - DISALLOW_COPY_AND_ASSIGN(IOObject); + IOObject(const IOObject &) = delete; + const IOObject &operator=(const IOObject &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Utility/Listener.h b/lldb/include/lldb/Utility/Listener.h --- a/lldb/include/lldb/Utility/Listener.h +++ b/lldb/include/lldb/Utility/Listener.h @@ -145,7 +145,8 @@ // bool exact); // For Listener only - DISALLOW_COPY_AND_ASSIGN(Listener); + Listener(const Listener &) = delete; + const Listener &operator=(const Listener &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Utility/Predicate.h b/lldb/include/lldb/Utility/Predicate.h --- a/lldb/include/lldb/Utility/Predicate.h +++ b/lldb/include/lldb/Utility/Predicate.h @@ -221,7 +221,8 @@ m_condition.notify_all(); } - DISALLOW_COPY_AND_ASSIGN(Predicate); + Predicate(const Predicate &) = delete; + const Predicate &operator=(const Predicate &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/Utility/Timer.h b/lldb/include/lldb/Utility/Timer.h --- a/lldb/include/lldb/Utility/Timer.h +++ b/lldb/include/lldb/Utility/Timer.h @@ -34,7 +34,8 @@ std::atomic m_count; std::atomic m_next; - DISALLOW_COPY_AND_ASSIGN(Category); + Category(const Category &) = delete; + const Category &operator=(const Category &) = delete; }; /// Default constructor. @@ -66,7 +67,8 @@ static std::atomic g_display_depth; private: - DISALLOW_COPY_AND_ASSIGN(Timer); + Timer(const Timer &) = delete; + const Timer &operator=(const Timer &) = delete; }; } // namespace lldb_private diff --git a/lldb/include/lldb/lldb-defines.h b/lldb/include/lldb/lldb-defines.h --- a/lldb/include/lldb/lldb-defines.h +++ b/lldb/include/lldb/lldb-defines.h @@ -133,15 +133,4 @@ #define UNUSED_IF_ASSERT_DISABLED(x) ((void)(x)) -#if defined(__cplusplus) - -/// \def DISALLOW_COPY_AND_ASSIGN(TypeName) -/// Macro definition for easily disallowing copy constructor and -/// assignment operators in C++ classes. -#define DISALLOW_COPY_AND_ASSIGN(TypeName) \ - TypeName(const TypeName &) = delete; \ - const TypeName &operator=(const TypeName &) = delete - -#endif // #if defined(__cplusplus) - #endif // LLDB_LLDB_DEFINES_H diff --git a/lldb/source/Commands/CommandCompletions.cpp b/lldb/source/Commands/CommandCompletions.cpp --- a/lldb/source/Commands/CommandCompletions.cpp +++ b/lldb/source/Commands/CommandCompletions.cpp @@ -97,7 +97,8 @@ CompletionRequest &m_request; private: - DISALLOW_COPY_AND_ASSIGN(Completer); + Completer(const Completer &) = delete; + const Completer &operator=(const Completer &) = delete; }; } // namespace @@ -154,7 +155,8 @@ const char *m_file_name; const char *m_dir_name; - DISALLOW_COPY_AND_ASSIGN(SourceFileCompleter); + SourceFileCompleter(const SourceFileCompleter &) = delete; + const SourceFileCompleter &operator=(const SourceFileCompleter &) = delete; }; } // namespace @@ -226,7 +228,8 @@ typedef std::set collection; collection m_match_set; - DISALLOW_COPY_AND_ASSIGN(SymbolCompleter); + SymbolCompleter(const SymbolCompleter &) = delete; + const SymbolCompleter &operator=(const SymbolCompleter &) = delete; }; } // namespace @@ -273,7 +276,8 @@ const char *m_file_name; const char *m_dir_name; - DISALLOW_COPY_AND_ASSIGN(ModuleCompleter); + ModuleCompleter(const ModuleCompleter &) = delete; + const ModuleCompleter &operator=(const ModuleCompleter &) = delete; }; } // namespace diff --git a/lldb/source/Commands/CommandObjectLog.h b/lldb/source/Commands/CommandObjectLog.h --- a/lldb/source/Commands/CommandObjectLog.h +++ b/lldb/source/Commands/CommandObjectLog.h @@ -24,7 +24,8 @@ private: // For CommandObjectLog only - DISALLOW_COPY_AND_ASSIGN(CommandObjectLog); + CommandObjectLog(const CommandObjectLog &) = delete; + const CommandObjectLog &operator=(const CommandObjectLog &) = delete; }; } // namespace lldb_private diff --git a/lldb/source/Commands/CommandObjectPlatform.h b/lldb/source/Commands/CommandObjectPlatform.h --- a/lldb/source/Commands/CommandObjectPlatform.h +++ b/lldb/source/Commands/CommandObjectPlatform.h @@ -22,7 +22,9 @@ ~CommandObjectPlatform() override; private: - DISALLOW_COPY_AND_ASSIGN(CommandObjectPlatform); + CommandObjectPlatform(const CommandObjectPlatform &) = delete; + const CommandObjectPlatform & + operator=(const CommandObjectPlatform &) = delete; }; } // namespace lldb_private diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp --- a/lldb/source/Commands/CommandObjectPlatform.cpp +++ b/lldb/source/Commands/CommandObjectPlatform.cpp @@ -133,7 +133,8 @@ uint32_t m_permissions; private: - DISALLOW_COPY_AND_ASSIGN(OptionPermissions); + OptionPermissions(const OptionPermissions &) = delete; + const OptionPermissions &operator=(const OptionPermissions &) = delete; }; // "platform select " @@ -758,7 +759,9 @@ private: // For CommandObjectPlatform only - DISALLOW_COPY_AND_ASSIGN(CommandObjectPlatformFile); + CommandObjectPlatformFile(const CommandObjectPlatformFile &) = delete; + const CommandObjectPlatformFile & + operator=(const CommandObjectPlatformFile &) = delete; }; // "platform get-file remote-file-path host-file-path" @@ -1541,7 +1544,9 @@ private: // For CommandObjectPlatform only - DISALLOW_COPY_AND_ASSIGN(CommandObjectPlatformProcess); + CommandObjectPlatformProcess(const CommandObjectPlatformProcess &) = delete; + const CommandObjectPlatformProcess & + operator=(const CommandObjectPlatformProcess &) = delete; }; // "platform shell" diff --git a/lldb/source/Commands/CommandObjectRegister.h b/lldb/source/Commands/CommandObjectRegister.h --- a/lldb/source/Commands/CommandObjectRegister.h +++ b/lldb/source/Commands/CommandObjectRegister.h @@ -24,7 +24,9 @@ private: // For CommandObjectRegister only - DISALLOW_COPY_AND_ASSIGN(CommandObjectRegister); + CommandObjectRegister(const CommandObjectRegister &) = delete; + const CommandObjectRegister & + operator=(const CommandObjectRegister &) = delete; }; } // namespace lldb_private diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp --- a/lldb/source/Commands/CommandObjectTarget.cpp +++ b/lldb/source/Commands/CommandObjectTarget.cpp @@ -200,7 +200,9 @@ LoadDependentFiles m_load_dependent_files; private: - DISALLOW_COPY_AND_ASSIGN(OptionGroupDependents); + OptionGroupDependents(const OptionGroupDependents &) = delete; + const OptionGroupDependents & + operator=(const OptionGroupDependents &) = delete; }; #pragma mark CommandObjectTargetCreate @@ -3997,7 +3999,9 @@ private: // For CommandObjectTargetModules only - DISALLOW_COPY_AND_ASSIGN(CommandObjectTargetModules); + CommandObjectTargetModules(const CommandObjectTargetModules &) = delete; + const CommandObjectTargetModules & + operator=(const CommandObjectTargetModules &) = delete; }; class CommandObjectTargetSymbolsAdd : public CommandObjectParsed { @@ -4395,7 +4399,9 @@ private: // For CommandObjectTargetModules only - DISALLOW_COPY_AND_ASSIGN(CommandObjectTargetSymbols); + CommandObjectTargetSymbols(const CommandObjectTargetSymbols &) = delete; + const CommandObjectTargetSymbols & + operator=(const CommandObjectTargetSymbols &) = delete; }; #pragma mark CommandObjectTargetStopHookAdd diff --git a/lldb/source/Core/IOHandlerCursesGUI.cpp b/lldb/source/Core/IOHandlerCursesGUI.cpp --- a/lldb/source/Core/IOHandlerCursesGUI.cpp +++ b/lldb/source/Core/IOHandlerCursesGUI.cpp @@ -744,7 +744,8 @@ bool m_is_subwin; private: - DISALLOW_COPY_AND_ASSIGN(Window); + Window(const Window &) = delete; + const Window &operator=(const Window &) = delete; }; class MenuDelegate { diff --git a/lldb/source/Host/macosx/objcxx/HostThreadMacOSX.mm b/lldb/source/Host/macosx/objcxx/HostThreadMacOSX.mm --- a/lldb/source/Host/macosx/objcxx/HostThreadMacOSX.mm +++ b/lldb/source/Host/macosx/objcxx/HostThreadMacOSX.mm @@ -44,7 +44,8 @@ NSAutoreleasePool *m_pool; private: - DISALLOW_COPY_AND_ASSIGN(MacOSXDarwinThread); + MacOSXDarwinThread(const MacOSXDarwinThread &) = delete; + const MacOSXDarwinThread &operator=(const MacOSXDarwinThread &) = delete; }; void InitThreadCreated() { diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h --- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h +++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h @@ -296,7 +296,9 @@ lldb::user_id_t m_break_id; private: - DISALLOW_COPY_AND_ASSIGN(DynamicLoaderDarwinKernel); + DynamicLoaderDarwinKernel(const DynamicLoaderDarwinKernel &) = delete; + const DynamicLoaderDarwinKernel & + operator=(const DynamicLoaderDarwinKernel &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_DYNAMICLOADER_DARWIN_KERNEL_DYNAMICLOADERDARWINKERNEL_H diff --git a/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.h b/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.h --- a/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.h +++ b/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.h @@ -132,7 +132,9 @@ const lldb_private::SectionList * GetSectionListFromModule(const lldb::ModuleSP module) const; - DISALLOW_COPY_AND_ASSIGN(DynamicLoaderHexagonDYLD); + DynamicLoaderHexagonDYLD(const DynamicLoaderHexagonDYLD &) = delete; + const DynamicLoaderHexagonDYLD & + operator=(const DynamicLoaderHexagonDYLD &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_DYNAMICLOADER_HEXAGON_DYLD_DYNAMICLOADERHEXAGONDYLD_H diff --git a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.h b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.h --- a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.h +++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.h @@ -238,7 +238,8 @@ mutable std::recursive_mutex m_mutex; private: - DISALLOW_COPY_AND_ASSIGN(DynamicLoaderDarwin); + DynamicLoaderDarwin(const DynamicLoaderDarwin &) = delete; + const DynamicLoaderDarwin &operator=(const DynamicLoaderDarwin &) = delete; }; } // namespace lldb_private diff --git a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.h b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.h --- a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.h +++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.h @@ -105,7 +105,8 @@ // the "reason:exec" annotation. private: - DISALLOW_COPY_AND_ASSIGN(DynamicLoaderMacOS); + DynamicLoaderMacOS(const DynamicLoaderMacOS &) = delete; + const DynamicLoaderMacOS &operator=(const DynamicLoaderMacOS &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_DYNAMICLOADER_MACOSX_DYLD_DYNAMICLOADERMACOS_H diff --git a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h --- a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h +++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h @@ -169,7 +169,9 @@ bool m_process_image_addr_is_all_images_infos; private: - DISALLOW_COPY_AND_ASSIGN(DynamicLoaderMacOSXDYLD); + DynamicLoaderMacOSXDYLD(const DynamicLoaderMacOSXDYLD &) = delete; + const DynamicLoaderMacOSXDYLD & + operator=(const DynamicLoaderMacOSXDYLD &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_DYNAMICLOADER_MACOSX_DYLD_DYNAMICLOADERMACOSXDYLD_H diff --git a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.h b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.h --- a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.h +++ b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.h @@ -159,7 +159,9 @@ bool AlwaysRelyOnEHUnwindInfo(lldb_private::SymbolContext &sym_ctx) override; private: - DISALLOW_COPY_AND_ASSIGN(DynamicLoaderPOSIXDYLD); + DynamicLoaderPOSIXDYLD(const DynamicLoaderPOSIXDYLD &) = delete; + const DynamicLoaderPOSIXDYLD & + operator=(const DynamicLoaderPOSIXDYLD &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_DYNAMICLOADER_POSIX_DYLD_DYNAMICLOADERPOSIXDYLD_H diff --git a/lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.h b/lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.h --- a/lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.h +++ b/lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.h @@ -53,7 +53,8 @@ private: void LoadAllImagesAtFileAddresses(); - DISALLOW_COPY_AND_ASSIGN(DynamicLoaderStatic); + DynamicLoaderStatic(const DynamicLoaderStatic &) = delete; + const DynamicLoaderStatic &operator=(const DynamicLoaderStatic &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_DYNAMICLOADER_STATIC_DYNAMICLOADERSTATIC_H diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.h --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.h @@ -35,7 +35,8 @@ } private: - DISALLOW_COPY_AND_ASSIGN(ClangDeclVendor); + ClangDeclVendor(const ClangDeclVendor &) = delete; + const ClangDeclVendor &operator=(const ClangDeclVendor &) = delete; }; } // namespace lldb_private diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h @@ -331,7 +331,8 @@ ///that receives new top-level ///functions. private: - DISALLOW_COPY_AND_ASSIGN(ParserVars); + ParserVars(const ParserVars &) = delete; + const ParserVars &operator=(const ParserVars &) = delete; }; std::unique_ptr m_parser_vars; diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionVariable.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionVariable.h --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionVariable.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionVariable.h @@ -197,7 +197,9 @@ } /// Members - DISALLOW_COPY_AND_ASSIGN(ClangExpressionVariable); + ClangExpressionVariable(const ClangExpressionVariable &) = delete; + const ClangExpressionVariable & + operator=(const ClangExpressionVariable &) = delete; }; } // namespace lldb_private diff --git a/lldb/source/Plugins/Instruction/ARM/EmulationStateARM.h b/lldb/source/Plugins/Instruction/ARM/EmulationStateARM.h --- a/lldb/source/Plugins/Instruction/ARM/EmulationStateARM.h +++ b/lldb/source/Plugins/Instruction/ARM/EmulationStateARM.h @@ -73,7 +73,8 @@ // uint32_t to a data buffer heap // type. - DISALLOW_COPY_AND_ASSIGN(EmulationStateARM); + EmulationStateARM(const EmulationStateARM &) = delete; + const EmulationStateARM &operator=(const EmulationStateARM &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_INSTRUCTION_ARM_EMULATIONSTATEARM_H diff --git a/lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.h b/lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.h --- a/lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.h +++ b/lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.h @@ -90,7 +90,8 @@ OperatorStringToCallableInfoMap CallableLookupCache; - DISALLOW_COPY_AND_ASSIGN(CPPLanguageRuntime); + CPPLanguageRuntime(const CPPLanguageRuntime &) = delete; + const CPPLanguageRuntime &operator=(const CPPLanguageRuntime &) = delete; }; } // namespace lldb_private diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h @@ -162,7 +162,8 @@ friend class AppleObjCRuntimeV2; - DISALLOW_COPY_AND_ASSIGN(NonPointerISACache); + NonPointerISACache(const NonPointerISACache &) = delete; + const NonPointerISACache &operator=(const NonPointerISACache &) = delete; }; class TaggedPointerVendorV2 @@ -181,7 +182,9 @@ : TaggedPointerVendor(), m_runtime(runtime) {} private: - DISALLOW_COPY_AND_ASSIGN(TaggedPointerVendorV2); + TaggedPointerVendorV2(const TaggedPointerVendorV2 &) = delete; + const TaggedPointerVendorV2 & + operator=(const TaggedPointerVendorV2 &) = delete; }; class TaggedPointerVendorRuntimeAssisted : public TaggedPointerVendorV2 { @@ -212,7 +215,10 @@ friend class AppleObjCRuntimeV2::TaggedPointerVendorV2; - DISALLOW_COPY_AND_ASSIGN(TaggedPointerVendorRuntimeAssisted); + TaggedPointerVendorRuntimeAssisted( + const TaggedPointerVendorRuntimeAssisted &) = delete; + const TaggedPointerVendorRuntimeAssisted & + operator=(const TaggedPointerVendorRuntimeAssisted &) = delete; }; class TaggedPointerVendorExtended @@ -250,7 +256,9 @@ friend class AppleObjCRuntimeV2::TaggedPointerVendorV2; - DISALLOW_COPY_AND_ASSIGN(TaggedPointerVendorExtended); + TaggedPointerVendorExtended(const TaggedPointerVendorExtended &) = delete; + const TaggedPointerVendorExtended & + operator=(const TaggedPointerVendorExtended &) = delete; }; class TaggedPointerVendorLegacy : public TaggedPointerVendorV2 { @@ -266,7 +274,9 @@ friend class AppleObjCRuntimeV2::TaggedPointerVendorV2; - DISALLOW_COPY_AND_ASSIGN(TaggedPointerVendorLegacy); + TaggedPointerVendorLegacy(const TaggedPointerVendorLegacy &) = delete; + const TaggedPointerVendorLegacy & + operator=(const TaggedPointerVendorLegacy &) = delete; }; struct DescriptorMapUpdateResult { diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h b/lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h --- a/lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h @@ -186,7 +186,8 @@ TaggedPointerVendor() = default; private: - DISALLOW_COPY_AND_ASSIGN(TaggedPointerVendor); + TaggedPointerVendor(const TaggedPointerVendor &) = delete; + const TaggedPointerVendor &operator=(const TaggedPointerVendor &) = delete; }; ~ObjCLanguageRuntime() override; @@ -417,7 +418,8 @@ void ReadObjCLibraryIfNeeded(const ModuleList &module_list); - DISALLOW_COPY_AND_ASSIGN(ObjCLanguageRuntime); + ObjCLanguageRuntime(const ObjCLanguageRuntime &) = delete; + const ObjCLanguageRuntime &operator=(const ObjCLanguageRuntime &) = delete; }; } // namespace lldb_private diff --git a/lldb/source/Plugins/Platform/Android/PlatformAndroid.h b/lldb/source/Plugins/Platform/Android/PlatformAndroid.h --- a/lldb/source/Plugins/Platform/Android/PlatformAndroid.h +++ b/lldb/source/Plugins/Platform/Android/PlatformAndroid.h @@ -77,7 +77,8 @@ std::string m_device_id; uint32_t m_sdk_version; - DISALLOW_COPY_AND_ASSIGN(PlatformAndroid); + PlatformAndroid(const PlatformAndroid &) = delete; + const PlatformAndroid &operator=(const PlatformAndroid &) = delete; }; } // namespace platofor_android diff --git a/lldb/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.h b/lldb/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.h --- a/lldb/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.h +++ b/lldb/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.h @@ -54,7 +54,10 @@ std::string &connect_url); private: - DISALLOW_COPY_AND_ASSIGN(PlatformAndroidRemoteGDBServer); + PlatformAndroidRemoteGDBServer(const PlatformAndroidRemoteGDBServer &) = + delete; + const PlatformAndroidRemoteGDBServer & + operator=(const PlatformAndroidRemoteGDBServer &) = delete; }; } // namespace platform_android diff --git a/lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.h b/lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.h --- a/lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.h +++ b/lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.h @@ -62,7 +62,8 @@ lldb::addr_t offset) override; private: - DISALLOW_COPY_AND_ASSIGN(PlatformFreeBSD); + PlatformFreeBSD(const PlatformFreeBSD &) = delete; + const PlatformFreeBSD &operator=(const PlatformFreeBSD &) = delete; }; } // namespace platform_freebsd diff --git a/lldb/source/Plugins/Platform/Linux/PlatformLinux.h b/lldb/source/Plugins/Platform/Linux/PlatformLinux.h --- a/lldb/source/Plugins/Platform/Linux/PlatformLinux.h +++ b/lldb/source/Plugins/Platform/Linux/PlatformLinux.h @@ -60,7 +60,8 @@ lldb::addr_t offset) override; private: - DISALLOW_COPY_AND_ASSIGN(PlatformLinux); + PlatformLinux(const PlatformLinux &) = delete; + const PlatformLinux &operator=(const PlatformLinux &) = delete; }; } // namespace platform_linux diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.h b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.h --- a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.h @@ -57,7 +57,9 @@ #endif private: - DISALLOW_COPY_AND_ASSIGN(PlatformAppleSimulator); + PlatformAppleSimulator(const PlatformAppleSimulator &) = delete; + const PlatformAppleSimulator & + operator=(const PlatformAppleSimulator &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMAPPLESIMULATOR_H diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.h b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.h --- a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.h @@ -80,7 +80,9 @@ const char *GetSDKDirectoryAsCString(); private: - DISALLOW_COPY_AND_ASSIGN(PlatformAppleTVSimulator); + PlatformAppleTVSimulator(const PlatformAppleTVSimulator &) = delete; + const PlatformAppleTVSimulator & + operator=(const PlatformAppleTVSimulator &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMAPPLETVSIMULATOR_H diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.h b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.h --- a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.h @@ -80,7 +80,9 @@ const char *GetSDKDirectoryAsCString(); private: - DISALLOW_COPY_AND_ASSIGN(PlatformAppleWatchSimulator); + PlatformAppleWatchSimulator(const PlatformAppleWatchSimulator &) = delete; + const PlatformAppleWatchSimulator & + operator=(const PlatformAppleWatchSimulator &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMAPPLEWATCHSIMULATOR_H diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h --- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h @@ -172,7 +172,8 @@ std::mutex m_sdk_path_mutex; private: - DISALLOW_COPY_AND_ASSIGN(PlatformDarwin); + PlatformDarwin(const PlatformDarwin &) = delete; + const PlatformDarwin &operator=(const PlatformDarwin &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMDARWIN_H diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.h b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.h --- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.h @@ -172,7 +172,8 @@ // dSYMs next to them lldb_private::LazyBool m_ios_debug_session; - DISALLOW_COPY_AND_ASSIGN(PlatformDarwinKernel); + PlatformDarwinKernel(const PlatformDarwinKernel &) = delete; + const PlatformDarwinKernel &operator=(const PlatformDarwinKernel &) = delete; }; #else // __APPLE__ diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h b/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h --- a/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h @@ -77,7 +77,8 @@ } private: - DISALLOW_COPY_AND_ASSIGN(PlatformMacOSX); + PlatformMacOSX(const PlatformMacOSX &) = delete; + const PlatformMacOSX &operator=(const PlatformMacOSX &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMMACOSX_H diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.h b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.h --- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.h @@ -58,7 +58,9 @@ std::string GetPlatformName () override; private: - DISALLOW_COPY_AND_ASSIGN(PlatformRemoteAppleBridge); + PlatformRemoteAppleBridge(const PlatformRemoteAppleBridge &) = delete; + const PlatformRemoteAppleBridge & + operator=(const PlatformRemoteAppleBridge &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLEBRIDGE_H diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleTV.h b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleTV.h --- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleTV.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleTV.h @@ -58,7 +58,9 @@ std::string GetPlatformName () override; private: - DISALLOW_COPY_AND_ASSIGN(PlatformRemoteAppleTV); + PlatformRemoteAppleTV(const PlatformRemoteAppleTV &) = delete; + const PlatformRemoteAppleTV & + operator=(const PlatformRemoteAppleTV &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLETV_H diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.h b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.h --- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.h @@ -61,7 +61,9 @@ std::string GetPlatformName () override; private: - DISALLOW_COPY_AND_ASSIGN(PlatformRemoteAppleWatch); + PlatformRemoteAppleWatch(const PlatformRemoteAppleWatch &) = delete; + const PlatformRemoteAppleWatch & + operator=(const PlatformRemoteAppleWatch &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLEWATCH_H diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.h b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.h --- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.h @@ -103,7 +103,9 @@ virtual std::string GetPlatformName () = 0; private: - DISALLOW_COPY_AND_ASSIGN(PlatformRemoteDarwinDevice); + PlatformRemoteDarwinDevice(const PlatformRemoteDarwinDevice &) = delete; + const PlatformRemoteDarwinDevice & + operator=(const PlatformRemoteDarwinDevice &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEDARWINDEVICE_H diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h --- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h @@ -57,7 +57,8 @@ std::string GetPlatformName () override; private: - DISALLOW_COPY_AND_ASSIGN(PlatformRemoteiOS); + PlatformRemoteiOS(const PlatformRemoteiOS &) = delete; + const PlatformRemoteiOS &operator=(const PlatformRemoteiOS &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEIOS_H diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulator.h b/lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulator.h --- a/lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulator.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulator.h @@ -82,7 +82,8 @@ const char *GetSDKDirectoryAsCString(); private: - DISALLOW_COPY_AND_ASSIGN(PlatformiOSSimulator); + PlatformiOSSimulator(const PlatformiOSSimulator &) = delete; + const PlatformiOSSimulator &operator=(const PlatformiOSSimulator &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMIOSSIMULATOR_H diff --git a/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.h b/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.h --- a/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.h +++ b/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.h @@ -60,7 +60,8 @@ lldb::addr_t offset) override; private: - DISALLOW_COPY_AND_ASSIGN(PlatformNetBSD); + PlatformNetBSD(const PlatformNetBSD &) = delete; + const PlatformNetBSD &operator=(const PlatformNetBSD &) = delete; }; } // namespace platform_netbsd diff --git a/lldb/source/Plugins/Platform/OpenBSD/PlatformOpenBSD.h b/lldb/source/Plugins/Platform/OpenBSD/PlatformOpenBSD.h --- a/lldb/source/Plugins/Platform/OpenBSD/PlatformOpenBSD.h +++ b/lldb/source/Plugins/Platform/OpenBSD/PlatformOpenBSD.h @@ -54,7 +54,8 @@ lldb::addr_t offset) override; private: - DISALLOW_COPY_AND_ASSIGN(PlatformOpenBSD); + PlatformOpenBSD(const PlatformOpenBSD &) = delete; + const PlatformOpenBSD &operator=(const PlatformOpenBSD &) = delete; }; } // namespace platform_openbsd diff --git a/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.h b/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.h --- a/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.h +++ b/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.h @@ -101,7 +101,8 @@ llvm::StringRef GetLibdlFunctionDeclarations(lldb_private::Process *process); private: - DISALLOW_COPY_AND_ASSIGN(PlatformPOSIX); + PlatformPOSIX(const PlatformPOSIX &) = delete; + const PlatformPOSIX &operator=(const PlatformPOSIX &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PLATFORM_POSIX_PLATFORMPOSIX_H diff --git a/lldb/source/Plugins/Platform/Windows/PlatformWindows.h b/lldb/source/Plugins/Platform/Windows/PlatformWindows.h --- a/lldb/source/Plugins/Platform/Windows/PlatformWindows.h +++ b/lldb/source/Plugins/Platform/Windows/PlatformWindows.h @@ -67,7 +67,8 @@ ConstString GetFullNameForDylib(ConstString basename) override; private: - DISALLOW_COPY_AND_ASSIGN(PlatformWindows); + PlatformWindows(const PlatformWindows &) = delete; + const PlatformWindows &operator=(const PlatformWindows &) = delete; }; } // namespace lldb_private diff --git a/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.h b/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.h --- a/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.h +++ b/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.h @@ -194,7 +194,9 @@ llvm::Optional DoGetUserName(UserIDResolver::id_t uid) override; llvm::Optional DoGetGroupName(UserIDResolver::id_t uid) override; - DISALLOW_COPY_AND_ASSIGN(PlatformRemoteGDBServer); + PlatformRemoteGDBServer(const PlatformRemoteGDBServer &) = delete; + const PlatformRemoteGDBServer & + operator=(const PlatformRemoteGDBServer &) = delete; }; } // namespace platform_gdb_server diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h b/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h --- a/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h @@ -241,7 +241,8 @@ lldb::addr_t m_last_read_memory_addr; // Last memory read address for logging private: // For CommunicationKDP only - DISALLOW_COPY_AND_ASSIGN(CommunicationKDP); + CommunicationKDP(const CommunicationKDP &) = delete; + const CommunicationKDP &operator=(const CommunicationKDP &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_COMMUNICATIONKDP_H diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.h b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.h --- a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.h +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.h @@ -186,7 +186,8 @@ private: // For ProcessKDP only - DISALLOW_COPY_AND_ASSIGN(ProcessKDP); + ProcessKDP(const ProcessKDP &) = delete; + const ProcessKDP &operator=(const ProcessKDP &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_PROCESSKDP_H diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextDummy.h b/lldb/source/Plugins/Process/Utility/RegisterContextDummy.h --- a/lldb/source/Plugins/Process/Utility/RegisterContextDummy.h +++ b/lldb/source/Plugins/Process/Utility/RegisterContextDummy.h @@ -56,7 +56,8 @@ lldb_private::RegisterSet m_reg_set0; // register set 0 (PC only) lldb_private::RegisterInfo m_pc_reg_info; - DISALLOW_COPY_AND_ASSIGN(RegisterContextDummy); + RegisterContextDummy(const RegisterContextDummy &) = delete; + const RegisterContextDummy &operator=(const RegisterContextDummy &) = delete; }; } // namespace lldb_private diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextHistory.h b/lldb/source/Plugins/Process/Utility/RegisterContextHistory.h --- a/lldb/source/Plugins/Process/Utility/RegisterContextHistory.h +++ b/lldb/source/Plugins/Process/Utility/RegisterContextHistory.h @@ -58,7 +58,9 @@ lldb::addr_t m_pc_value; - DISALLOW_COPY_AND_ASSIGN(RegisterContextHistory); + RegisterContextHistory(const RegisterContextHistory &) = delete; + const RegisterContextHistory & + operator=(const RegisterContextHistory &) = delete; }; } // namespace lldb_private diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextMemory.h b/lldb/source/Plugins/Process/Utility/RegisterContextMemory.h --- a/lldb/source/Plugins/Process/Utility/RegisterContextMemory.h +++ b/lldb/source/Plugins/Process/Utility/RegisterContextMemory.h @@ -67,7 +67,9 @@ // context that is stored in memmory private: - DISALLOW_COPY_AND_ASSIGN(RegisterContextMemory); + RegisterContextMemory(const RegisterContextMemory &) = delete; + const RegisterContextMemory & + operator=(const RegisterContextMemory &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_REGISTERCONTEXTMEMORY_H diff --git a/lldb/source/Plugins/Process/Utility/RegisterContextThreadMemory.h b/lldb/source/Plugins/Process/Utility/RegisterContextThreadMemory.h --- a/lldb/source/Plugins/Process/Utility/RegisterContextThreadMemory.h +++ b/lldb/source/Plugins/Process/Utility/RegisterContextThreadMemory.h @@ -92,7 +92,9 @@ uint32_t m_stop_id; private: - DISALLOW_COPY_AND_ASSIGN(RegisterContextThreadMemory); + RegisterContextThreadMemory(const RegisterContextThreadMemory &) = delete; + const RegisterContextThreadMemory & + operator=(const RegisterContextThreadMemory &) = delete; }; } // namespace lldb_private diff --git a/lldb/source/Plugins/Process/Utility/ThreadMemory.h b/lldb/source/Plugins/Process/Utility/ThreadMemory.h --- a/lldb/source/Plugins/Process/Utility/ThreadMemory.h +++ b/lldb/source/Plugins/Process/Utility/ThreadMemory.h @@ -100,7 +100,8 @@ lldb::addr_t m_register_data_addr; private: - DISALLOW_COPY_AND_ASSIGN(ThreadMemory); + ThreadMemory(const ThreadMemory &) = delete; + const ThreadMemory &operator=(const ThreadMemory &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_THREADMEMORY_H diff --git a/lldb/source/Plugins/Process/elf-core/ProcessElfCore.h b/lldb/source/Plugins/Process/elf-core/ProcessElfCore.h --- a/lldb/source/Plugins/Process/elf-core/ProcessElfCore.h +++ b/lldb/source/Plugins/Process/elf-core/ProcessElfCore.h @@ -125,7 +125,8 @@ lldb::ModuleSP m_core_module_sp; lldb_private::FileSpec m_core_file; std::string m_dyld_plugin_name; - DISALLOW_COPY_AND_ASSIGN(ProcessElfCore); + ProcessElfCore(const ProcessElfCore &) = delete; + const ProcessElfCore &operator=(const ProcessElfCore &) = delete; // True if m_thread_contexts contains valid entries bool m_thread_data_valid = false; diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h @@ -226,7 +226,9 @@ void *m_decompression_scratch = nullptr; #endif - DISALLOW_COPY_AND_ASSIGN(GDBRemoteCommunication); + GDBRemoteCommunication(const GDBRemoteCommunication &) = delete; + const GDBRemoteCommunication & + operator=(const GDBRemoteCommunication &) = delete; }; } // namespace process_gdb_remote diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h @@ -621,7 +621,9 @@ LazyBool GetThreadPacketSupported(lldb::tid_t tid, llvm::StringRef packetStr); private: - DISALLOW_COPY_AND_ASSIGN(GDBRemoteCommunicationClient); + GDBRemoteCommunicationClient(const GDBRemoteCommunicationClient &) = delete; + const GDBRemoteCommunicationClient & + operator=(const GDBRemoteCommunicationClient &) = delete; }; } // namespace process_gdb_remote diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.h --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.h @@ -76,7 +76,10 @@ bool m_skip_acks; private: - DISALLOW_COPY_AND_ASSIGN(GDBRemoteCommunicationReplayServer); + GDBRemoteCommunicationReplayServer( + const GDBRemoteCommunicationReplayServer &) = delete; + const GDBRemoteCommunicationReplayServer & + operator=(const GDBRemoteCommunicationReplayServer &) = delete; }; } // namespace process_gdb_remote diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.h --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.h @@ -74,7 +74,9 @@ PacketResult SendOKResponse(); private: - DISALLOW_COPY_AND_ASSIGN(GDBRemoteCommunicationServer); + GDBRemoteCommunicationServer(const GDBRemoteCommunicationServer &) = delete; + const GDBRemoteCommunicationServer & + operator=(const GDBRemoteCommunicationServer &) = delete; }; class PacketUnimplementedError diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h @@ -224,7 +224,10 @@ void StopSTDIOForwarding(); // For GDBRemoteCommunicationServerLLGS only - DISALLOW_COPY_AND_ASSIGN(GDBRemoteCommunicationServerLLGS); + GDBRemoteCommunicationServerLLGS(const GDBRemoteCommunicationServerLLGS &) = + delete; + const GDBRemoteCommunicationServerLLGS & + operator=(const GDBRemoteCommunicationServerLLGS &) = delete; }; } // namespace process_gdb_remote diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.h --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.h @@ -100,7 +100,10 @@ static FileSpec GetDomainSocketPath(const char *prefix); - DISALLOW_COPY_AND_ASSIGN(GDBRemoteCommunicationServerPlatform); + GDBRemoteCommunicationServerPlatform( + const GDBRemoteCommunicationServerPlatform &) = delete; + const GDBRemoteCommunicationServerPlatform & + operator=(const GDBRemoteCommunicationServerPlatform &) = delete; }; } // namespace process_gdb_remote diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h @@ -120,7 +120,9 @@ bool SetPrimordialRegister(const RegisterInfo *reg_info, GDBRemoteCommunicationClient &gdb_comm); - DISALLOW_COPY_AND_ASSIGN(GDBRemoteRegisterContext); + GDBRemoteRegisterContext(const GDBRemoteRegisterContext &) = delete; + const GDBRemoteRegisterContext & + operator=(const GDBRemoteRegisterContext &) = delete; }; } // namespace process_gdb_remote diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h @@ -450,7 +450,8 @@ llvm::DenseMap m_cached_module_specs; - DISALLOW_COPY_AND_ASSIGN(ProcessGDBRemote); + ProcessGDBRemote(const ProcessGDBRemote &) = delete; + const ProcessGDBRemote &operator=(const ProcessGDBRemote &) = delete; }; } // namespace process_gdb_remote diff --git a/lldb/source/Plugins/Process/mach-core/ProcessMachCore.h b/lldb/source/Plugins/Process/mach-core/ProcessMachCore.h --- a/lldb/source/Plugins/Process/mach-core/ProcessMachCore.h +++ b/lldb/source/Plugins/Process/mach-core/ProcessMachCore.h @@ -121,7 +121,8 @@ lldb::addr_t m_mach_kernel_addr; lldb_private::ConstString m_dyld_plugin_name; - DISALLOW_COPY_AND_ASSIGN(ProcessMachCore); + ProcessMachCore(const ProcessMachCore &) = delete; + const ProcessMachCore &operator=(const ProcessMachCore &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_PROCESS_MACH_CORE_PROCESSMACHCORE_H diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h @@ -90,7 +90,9 @@ void Serialize(llvm::json::OStream &s) const override; private: - DISALLOW_COPY_AND_ASSIGN(StructuredPythonObject); + StructuredPythonObject(const StructuredPythonObject &) = delete; + const StructuredPythonObject & + operator=(const StructuredPythonObject &) = delete; }; enum class PyObjectType { diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h @@ -27,7 +27,8 @@ DIERef::Section section, bool is_dwo) : DWARFUnit(dwarf, uid, header, abbrevs, section, is_dwo) {} - DISALLOW_COPY_AND_ASSIGN(DWARFCompileUnit); + DWARFCompileUnit(const DWARFCompileUnit &) = delete; + const DWARFCompileUnit &operator=(const DWARFCompileUnit &) = delete; friend class DWARFUnit; }; diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.h --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.h @@ -79,7 +79,8 @@ uint32_t FindUnitIndex(DIERef::Section section, dw_offset_t offset); - DISALLOW_COPY_AND_ASSIGN(DWARFDebugInfo); + DWARFDebugInfo(const DWARFDebugInfo &) = delete; + const DWARFDebugInfo &operator=(const DWARFDebugInfo &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFDEBUGINFO_H diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h @@ -98,7 +98,8 @@ bool m_clear_dies = false; ScopedExtractDIEs(DWARFUnit &cu); ~ScopedExtractDIEs(); - DISALLOW_COPY_AND_ASSIGN(ScopedExtractDIEs); + ScopedExtractDIEs(const ScopedExtractDIEs &) = delete; + const ScopedExtractDIEs &operator=(const ScopedExtractDIEs &) = delete; ScopedExtractDIEs(ScopedExtractDIEs &&rhs); ScopedExtractDIEs &operator=(ScopedExtractDIEs &&rhs); }; @@ -342,7 +343,8 @@ void ComputeCompDirAndGuessPathStyle(); void ComputeAbsolutePath(); - DISALLOW_COPY_AND_ASSIGN(DWARFUnit); + DWARFUnit(const DWARFUnit &) = delete; + const DWARFUnit &operator=(const DWARFUnit &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFUNIT_H diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h @@ -329,7 +329,8 @@ DIEToClangType; typedef llvm::DenseMap ClangTypeToDIE; - DISALLOW_COPY_AND_ASSIGN(SymbolFileDWARF); + SymbolFileDWARF(const SymbolFileDWARF &) = delete; + const SymbolFileDWARF &operator=(const SymbolFileDWARF &) = delete; virtual void LoadSectionData(lldb::SectionType sect_type, lldb_private::DWARFDataExtractor &data); diff --git a/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.h b/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.h --- a/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.h +++ b/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.h @@ -106,7 +106,8 @@ TypeMap m_objc_class_types; private: - DISALLOW_COPY_AND_ASSIGN(SymbolFileSymtab); + SymbolFileSymtab(const SymbolFileSymtab &) = delete; + const SymbolFileSymtab &operator=(const SymbolFileSymtab &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_SYMTAB_SYMBOLFILESYMTAB_H diff --git a/lldb/source/Plugins/SymbolVendor/ELF/SymbolVendorELF.h b/lldb/source/Plugins/SymbolVendor/ELF/SymbolVendorELF.h --- a/lldb/source/Plugins/SymbolVendor/ELF/SymbolVendorELF.h +++ b/lldb/source/Plugins/SymbolVendor/ELF/SymbolVendorELF.h @@ -38,7 +38,8 @@ uint32_t GetPluginVersion() override; private: - DISALLOW_COPY_AND_ASSIGN(SymbolVendorELF); + SymbolVendorELF(const SymbolVendorELF &) = delete; + const SymbolVendorELF &operator=(const SymbolVendorELF &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_SYMBOLVENDOR_ELF_SYMBOLVENDORELF_H diff --git a/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.h b/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.h --- a/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.h +++ b/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.h @@ -38,7 +38,8 @@ virtual uint32_t GetPluginVersion(); private: - DISALLOW_COPY_AND_ASSIGN(SymbolVendorMacOSX); + SymbolVendorMacOSX(const SymbolVendorMacOSX &) = delete; + const SymbolVendorMacOSX &operator=(const SymbolVendorMacOSX &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_SYMBOLVENDOR_MACOSX_SYMBOLVENDORMACOSX_H diff --git a/lldb/source/Plugins/SymbolVendor/wasm/SymbolVendorWasm.h b/lldb/source/Plugins/SymbolVendor/wasm/SymbolVendorWasm.h --- a/lldb/source/Plugins/SymbolVendor/wasm/SymbolVendorWasm.h +++ b/lldb/source/Plugins/SymbolVendor/wasm/SymbolVendorWasm.h @@ -35,7 +35,8 @@ /// \} private: - DISALLOW_COPY_AND_ASSIGN(SymbolVendorWasm); + SymbolVendorWasm(const SymbolVendorWasm &) = delete; + const SymbolVendorWasm &operator=(const SymbolVendorWasm &) = delete; }; } // namespace wasm diff --git a/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h b/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h --- a/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h +++ b/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h @@ -286,7 +286,8 @@ lldb::addr_t m_dispatch_voucher_offsets_addr; struct LibdispatchVoucherOffsets m_libdispatch_voucher_offsets; - DISALLOW_COPY_AND_ASSIGN(SystemRuntimeMacOSX); + SystemRuntimeMacOSX(const SystemRuntimeMacOSX &) = delete; + const SystemRuntimeMacOSX &operator=(const SystemRuntimeMacOSX &) = delete; }; #endif // LLDB_SOURCE_PLUGINS_SYSTEMRUNTIME_MACOSX_SYSTEMRUNTIMEMACOSX_H diff --git a/lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.h b/lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.h --- a/lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.h +++ b/lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.h @@ -191,7 +191,9 @@ ::LLVMDisasmContextRef m_disasm_context; - DISALLOW_COPY_AND_ASSIGN(x86AssemblyInspectionEngine); + x86AssemblyInspectionEngine(const x86AssemblyInspectionEngine &) = delete; + const x86AssemblyInspectionEngine & + operator=(const x86AssemblyInspectionEngine &) = delete; }; } // namespace lldb_private