From eaebcbc67926a18befaa297f1778edde63baec9b Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Tue, 2 Jun 2020 12:19:55 -0400 Subject: [PATCH] [lldb] NFC remove DISALLOW_COPY_AND_ASSIGN Summary: This is how I applied my clang-tidy check (see https://reviews.llvm.org/D80531) in order to remove `DISALLOW_COPY_AND_ASSIGN` and have deleted copy ctors and deleted assignment operators instead. ``` lang=bash grep DISALLOW_COPY_AND_ASSIGN /opt/notnfs/kkleine/llvm/lldb -r -l | sort | uniq > files for i in $(cat files); do clang-tidy \ --checks="-*,modernize-replace-disallow-copy-and-assign-macro" \ --format-style=LLVM \ --header-filter=.* \ --fix \ -fix-errors \ $i; done ``` Reviewers: espindola, labath, aprantl, teemperor Reviewed By: labath, aprantl, teemperor Subscribers: teemperor, aprantl, labath, emaste, sbc100, aheejin, MaskRay, arphaman, usaxena95, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D80543 --- .../darwin/fd_interposing/FDInterposing.cpp | 10 ++----- lldb/include/lldb/API/SBCommunication.h | 3 +- lldb/include/lldb/API/SBStream.h | 3 +- lldb/include/lldb/Breakpoint/Breakpoint.h | 6 ++-- .../lldb/Breakpoint/BreakpointIDList.h | 3 +- lldb/include/lldb/Breakpoint/BreakpointList.h | 3 +- .../lldb/Breakpoint/BreakpointLocation.h | 3 +- .../lldb/Breakpoint/BreakpointResolver.h | 3 +- .../Breakpoint/BreakpointResolverAddress.h | 4 ++- .../Breakpoint/BreakpointResolverFileLine.h | 4 ++- .../Breakpoint/BreakpointResolverFileRegex.h | 4 ++- .../Breakpoint/BreakpointResolverScripted.h | 4 ++- lldb/include/lldb/Breakpoint/BreakpointSite.h | 3 +- lldb/include/lldb/Breakpoint/Stoppoint.h | 3 +- .../lldb/Breakpoint/StoppointLocation.h | 3 +- lldb/include/lldb/Breakpoint/Watchpoint.h | 6 ++-- lldb/include/lldb/Core/AddressResolver.h | 3 +- .../lldb/Core/AddressResolverFileLine.h | 4 ++- lldb/include/lldb/Core/AddressResolverName.h | 3 +- lldb/include/lldb/Core/Communication.h | 3 +- lldb/include/lldb/Core/Debugger.h | 3 +- lldb/include/lldb/Core/Disassembler.h | 6 ++-- lldb/include/lldb/Core/EmulateInstruction.h | 3 +- lldb/include/lldb/Core/FileLineResolver.h | 3 +- lldb/include/lldb/Core/Highlighter.h | 3 +- lldb/include/lldb/Core/IOHandler.h | 6 ++-- lldb/include/lldb/Core/Module.h | 3 +- lldb/include/lldb/Core/Section.h | 3 +- lldb/include/lldb/Core/SourceManager.h | 3 +- lldb/include/lldb/Core/StreamFile.h | 3 +- lldb/include/lldb/Core/ThreadSafeValue.h | 3 +- lldb/include/lldb/Core/ValueObject.h | 3 +- lldb/include/lldb/Core/ValueObjectCast.h | 3 +- lldb/include/lldb/Core/ValueObjectChild.h | 3 +- .../lldb/Core/ValueObjectConstResult.h | 4 ++- .../lldb/Core/ValueObjectConstResultCast.h | 4 ++- .../lldb/Core/ValueObjectConstResultChild.h | 4 ++- .../lldb/Core/ValueObjectConstResultImpl.h | 4 ++- .../lldb/Core/ValueObjectDynamicValue.h | 4 ++- lldb/include/lldb/Core/ValueObjectMemory.h | 3 +- lldb/include/lldb/Core/ValueObjectRegister.h | 7 +++-- .../lldb/Core/ValueObjectSyntheticFilter.h | 3 +- lldb/include/lldb/Core/ValueObjectVariable.h | 3 +- .../lldb/DataFormatters/FormatClasses.h | 4 ++- .../lldb/DataFormatters/FormattersContainer.h | 3 +- lldb/include/lldb/DataFormatters/TypeFormat.h | 11 ++++++-- .../include/lldb/DataFormatters/TypeSummary.h | 13 ++++++--- .../lldb/DataFormatters/TypeSynthetic.h | 28 +++++++++++++------ .../lldb/DataFormatters/ValueObjectPrinter.h | 3 +- lldb/include/lldb/Expression/IRMemoryMap.h | 3 +- lldb/include/lldb/Host/File.h | 6 ++-- .../include/lldb/Host/HostNativeProcessBase.h | 4 ++- lldb/include/lldb/Host/HostNativeThreadBase.h | 3 +- lldb/include/lldb/Host/MainLoop.h | 3 +- lldb/include/lldb/Host/MainLoopBase.h | 6 ++-- lldb/include/lldb/Host/ProcessRunLock.h | 6 ++-- lldb/include/lldb/Host/PseudoTerminal.h | 3 +- .../lldb/Host/common/NativeRegisterContext.h | 4 ++- .../posix/ConnectionFileDescriptorPosix.h | 4 ++- .../include/lldb/Host/posix/HostThreadPosix.h | 3 +- .../windows/ConnectionGenericFileWindows.h | 4 ++- .../lldb/Host/windows/HostThreadWindows.h | 3 +- .../include/lldb/Interpreter/CommandHistory.h | 3 +- .../Interpreter/CommandObjectRegexCommand.h | 4 ++- .../lldb/Interpreter/OptionGroupVariable.h | 3 +- .../lldb/Interpreter/OptionGroupWatchpoint.h | 4 ++- .../lldb/Interpreter/ScriptInterpreter.h | 4 ++- lldb/include/lldb/Symbol/Block.h | 3 +- lldb/include/lldb/Symbol/CompileUnit.h | 3 +- lldb/include/lldb/Symbol/DebugMacros.h | 3 +- lldb/include/lldb/Symbol/DeclVendor.h | 3 +- lldb/include/lldb/Symbol/FuncUnwinders.h | 3 +- lldb/include/lldb/Symbol/Function.h | 3 +- lldb/include/lldb/Symbol/LineTable.h | 6 ++-- lldb/include/lldb/Symbol/ObjectContainer.h | 3 +- lldb/include/lldb/Symbol/ObjectFile.h | 3 +- lldb/include/lldb/Symbol/SymbolFile.h | 3 +- lldb/include/lldb/Symbol/SymbolVendor.h | 3 +- lldb/include/lldb/Symbol/Symtab.h | 3 +- lldb/include/lldb/Symbol/TypeList.h | 3 +- lldb/include/lldb/Symbol/TypeMap.h | 3 +- lldb/include/lldb/Symbol/UnwindTable.h | 3 +- lldb/include/lldb/Symbol/VariableList.h | 3 +- lldb/include/lldb/Target/ABI.h | 3 +- lldb/include/lldb/Target/DynamicLoader.h | 3 +- lldb/include/lldb/Target/Language.h | 3 +- lldb/include/lldb/Target/LanguageRuntime.h | 3 +- lldb/include/lldb/Target/Memory.h | 6 ++-- lldb/include/lldb/Target/OperatingSystem.h | 3 +- lldb/include/lldb/Target/Platform.h | 18 ++++++++---- lldb/include/lldb/Target/Process.h | 6 ++-- lldb/include/lldb/Target/Queue.h | 3 +- lldb/include/lldb/Target/QueueItem.h | 3 +- lldb/include/lldb/Target/RegisterCheckpoint.h | 3 +- lldb/include/lldb/Target/RegisterContext.h | 3 +- .../lldb/Target/RegisterContextUnwind.h | 4 ++- lldb/include/lldb/Target/SectionLoadHistory.h | 3 +- lldb/include/lldb/Target/StackFrame.h | 3 +- lldb/include/lldb/Target/StackFrameList.h | 3 +- .../lldb/Target/StackFrameRecognizer.h | 4 ++- lldb/include/lldb/Target/StopInfo.h | 3 +- .../lldb/Target/StructuredDataPlugin.h | 3 +- lldb/include/lldb/Target/SystemRuntime.h | 3 +- lldb/include/lldb/Target/Target.h | 6 ++-- lldb/include/lldb/Target/TargetList.h | 3 +- lldb/include/lldb/Target/Thread.h | 6 ++-- lldb/include/lldb/Target/ThreadPlan.h | 6 ++-- lldb/include/lldb/Target/ThreadPlanBase.h | 3 +- .../lldb/Target/ThreadPlanCallFunction.h | 4 ++- .../Target/ThreadPlanCallFunctionUsingABI.h | 5 +++- .../Target/ThreadPlanCallUserExpression.h | 4 ++- lldb/include/lldb/Target/ThreadPlanPython.h | 3 +- .../lldb/Target/ThreadPlanRunToAddress.h | 4 ++- .../lldb/Target/ThreadPlanShouldStopHere.h | 4 ++- .../lldb/Target/ThreadPlanStepInRange.h | 4 ++- .../lldb/Target/ThreadPlanStepInstruction.h | 4 ++- lldb/include/lldb/Target/ThreadPlanStepOut.h | 3 +- .../Target/ThreadPlanStepOverBreakpoint.h | 4 ++- .../lldb/Target/ThreadPlanStepOverRange.h | 4 ++- .../include/lldb/Target/ThreadPlanStepRange.h | 3 +- .../lldb/Target/ThreadPlanStepThrough.h | 4 ++- .../include/lldb/Target/ThreadPlanStepUntil.h | 3 +- lldb/include/lldb/Target/Unwind.h | 3 +- lldb/include/lldb/Target/UnwindAssembly.h | 3 +- lldb/include/lldb/Target/UnwindLLDB.h | 6 ++-- lldb/include/lldb/Utility/Broadcaster.h | 6 ++-- lldb/include/lldb/Utility/Connection.h | 3 +- lldb/include/lldb/Utility/DataEncoder.h | 3 +- lldb/include/lldb/Utility/Event.h | 13 ++++++--- lldb/include/lldb/Utility/IOObject.h | 3 +- lldb/include/lldb/Utility/Listener.h | 3 +- lldb/include/lldb/Utility/Predicate.h | 3 +- lldb/include/lldb/Utility/Timer.h | 6 ++-- lldb/include/lldb/lldb-defines.h | 11 -------- lldb/source/Commands/CommandCompletions.cpp | 12 +++++--- lldb/source/Commands/CommandObjectLog.h | 3 +- .../source/Commands/CommandObjectPlatform.cpp | 11 ++++++-- lldb/source/Commands/CommandObjectPlatform.h | 4 ++- lldb/source/Commands/CommandObjectRegister.h | 4 ++- lldb/source/Commands/CommandObjectTarget.cpp | 12 ++++++-- lldb/source/Core/IOHandlerCursesGUI.cpp | 3 +- .../Host/macosx/objcxx/HostThreadMacOSX.mm | 3 +- .../Darwin-Kernel/DynamicLoaderDarwinKernel.h | 4 ++- .../Hexagon-DYLD/DynamicLoaderHexagonDYLD.h | 4 ++- .../MacOSX-DYLD/DynamicLoaderDarwin.h | 3 +- .../MacOSX-DYLD/DynamicLoaderMacOS.h | 3 +- .../MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h | 4 ++- .../POSIX-DYLD/DynamicLoaderPOSIXDYLD.h | 4 ++- .../Static/DynamicLoaderStatic.h | 3 +- .../ExpressionParser/Clang/ClangDeclVendor.h | 3 +- .../Clang/ClangExpressionDeclMap.h | 3 +- .../Clang/ClangExpressionVariable.h | 4 ++- .../Instruction/ARM/EmulationStateARM.h | 3 +- .../CPlusPlus/CPPLanguageRuntime.h | 3 +- .../AppleObjCRuntime/AppleObjCRuntimeV2.h | 20 +++++++++---- .../ObjC/ObjCLanguageRuntime.h | 6 ++-- .../Platform/Android/PlatformAndroid.h | 3 +- .../Android/PlatformAndroidRemoteGDBServer.h | 5 +++- .../Platform/FreeBSD/PlatformFreeBSD.h | 3 +- .../Plugins/Platform/Linux/PlatformLinux.h | 3 +- .../Platform/MacOSX/PlatformAppleSimulator.h | 4 ++- .../MacOSX/PlatformAppleTVSimulator.h | 4 ++- .../MacOSX/PlatformAppleWatchSimulator.h | 4 ++- .../Plugins/Platform/MacOSX/PlatformDarwin.h | 3 +- .../Platform/MacOSX/PlatformDarwinKernel.h | 3 +- .../Plugins/Platform/MacOSX/PlatformMacOSX.h | 3 +- .../MacOSX/PlatformRemoteAppleBridge.h | 4 ++- .../Platform/MacOSX/PlatformRemoteAppleTV.h | 4 ++- .../MacOSX/PlatformRemoteAppleWatch.h | 4 ++- .../MacOSX/PlatformRemoteDarwinDevice.h | 4 ++- .../Platform/MacOSX/PlatformRemoteiOS.h | 3 +- .../Platform/MacOSX/PlatformiOSSimulator.h | 3 +- .../Plugins/Platform/NetBSD/PlatformNetBSD.h | 3 +- .../Platform/OpenBSD/PlatformOpenBSD.h | 3 +- .../Plugins/Platform/POSIX/PlatformPOSIX.h | 3 +- .../Platform/Windows/PlatformWindows.h | 3 +- .../gdb-server/PlatformRemoteGDBServer.h | 4 ++- .../Process/MacOSX-Kernel/CommunicationKDP.h | 3 +- .../Process/MacOSX-Kernel/ProcessKDP.h | 3 +- .../Process/Utility/RegisterContextDummy.h | 3 +- .../Process/Utility/RegisterContextHistory.h | 4 ++- .../Process/Utility/RegisterContextMemory.h | 4 ++- .../Utility/RegisterContextThreadMemory.h | 4 ++- .../Plugins/Process/Utility/ThreadMemory.h | 3 +- .../Plugins/Process/elf-core/ProcessElfCore.h | 3 +- .../gdb-remote/GDBRemoteCommunication.h | 4 ++- .../gdb-remote/GDBRemoteCommunicationClient.h | 4 ++- .../GDBRemoteCommunicationReplayServer.h | 5 +++- .../gdb-remote/GDBRemoteCommunicationServer.h | 4 ++- .../GDBRemoteCommunicationServerLLGS.h | 5 +++- .../GDBRemoteCommunicationServerPlatform.h | 5 +++- .../gdb-remote/GDBRemoteRegisterContext.h | 4 ++- .../Process/gdb-remote/ProcessGDBRemote.h | 3 +- .../Process/mach-core/ProcessMachCore.h | 3 +- .../Python/PythonDataObjects.h | 4 ++- .../SymbolFile/DWARF/DWARFCompileUnit.h | 3 +- .../Plugins/SymbolFile/DWARF/DWARFDebugInfo.h | 3 +- .../Plugins/SymbolFile/DWARF/DWARFUnit.h | 6 ++-- .../SymbolFile/DWARF/SymbolFileDWARF.h | 3 +- .../SymbolFile/Symtab/SymbolFileSymtab.h | 3 +- .../SymbolVendor/ELF/SymbolVendorELF.h | 3 +- .../SymbolVendor/MacOSX/SymbolVendorMacOSX.h | 3 +- .../SymbolVendor/wasm/SymbolVendorWasm.h | 3 +- .../MacOSX/SystemRuntimeMacOSX.h | 3 +- .../x86/x86AssemblyInspectionEngine.h | 4 ++- 205 files changed, 591 insertions(+), 271 deletions(-) diff --git a/lldb/examples/interposing/darwin/fd_interposing/FDInterposing.cpp b/lldb/examples/interposing/darwin/fd_interposing/FDInterposing.cpp index a39370cc29ed..de0be331cc5a 100644 --- 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 @@ protected: 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 index 59ed195e6949..84c341c0dfef 100644 --- a/lldb/include/lldb/API/SBCommunication.h +++ b/lldb/include/lldb/API/SBCommunication.h @@ -72,7 +72,8 @@ public: 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 index 6b3753d45aa2..f44b87bb4c98 100644 --- a/lldb/include/lldb/API/SBStream.h +++ b/lldb/include/lldb/API/SBStream.h @@ -101,7 +101,8 @@ protected: 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 index bdff7772fc6b..d29d21070fd7 100644 --- a/lldb/include/lldb/Breakpoint/Breakpoint.h +++ b/lldb/include/lldb/Breakpoint/Breakpoint.h @@ -137,7 +137,8 @@ public: 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 @@ private: 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 index e77e3906ebf5..924cb1f26b8b 100644 --- a/lldb/include/lldb/Breakpoint/BreakpointIDList.h +++ b/lldb/include/lldb/Breakpoint/BreakpointIDList.h @@ -68,7 +68,8 @@ private: 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 index fff0d8052611..346972ec3a1f 100644 --- a/lldb/include/lldb/Breakpoint/BreakpointList.h +++ b/lldb/include/lldb/Breakpoint/BreakpointList.h @@ -168,7 +168,8 @@ public: } 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 index 2387beba8c70..3fc571eaa292 100644 --- a/lldb/include/lldb/Breakpoint/BreakpointLocation.h +++ b/lldb/include/lldb/Breakpoint/BreakpointLocation.h @@ -345,7 +345,8 @@ private: 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 index 3029f70ce9c3..d067b1eea6ff 100644 --- a/lldb/include/lldb/Breakpoint/BreakpointResolver.h +++ b/lldb/include/lldb/Breakpoint/BreakpointResolver.h @@ -222,7 +222,8 @@ private: // 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 index 1209d4853758..5454487e51a2 100644 --- a/lldb/include/lldb/Breakpoint/BreakpointResolverAddress.h +++ b/lldb/include/lldb/Breakpoint/BreakpointResolverAddress.h @@ -71,7 +71,9 @@ protected: // 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 index 36578f8b40af..222fc6fcd45d 100644 --- a/lldb/include/lldb/Breakpoint/BreakpointResolverFileLine.h +++ b/lldb/include/lldb/Breakpoint/BreakpointResolverFileLine.h @@ -69,7 +69,9 @@ protected: 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 index b3f71144ba05..138d555e2230 100644 --- a/lldb/include/lldb/Breakpoint/BreakpointResolverFileRegex.h +++ b/lldb/include/lldb/Breakpoint/BreakpointResolverFileRegex.h @@ -70,7 +70,9 @@ protected: // 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 index eb1a09f6deb4..26fd6f2f04d7 100644 --- a/lldb/include/lldb/Breakpoint/BreakpointResolverScripted.h +++ b/lldb/include/lldb/Breakpoint/BreakpointResolverScripted.h @@ -70,7 +70,9 @@ private: // 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 index 2796598b2419..5ce17f511db4 100644 --- a/lldb/include/lldb/Breakpoint/BreakpointSite.h +++ b/lldb/include/lldb/Breakpoint/BreakpointSite.h @@ -225,7 +225,8 @@ private: 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 index 6f447679268c..36df77c4e91a 100644 --- a/lldb/include/lldb/Breakpoint/Stoppoint.h +++ b/lldb/include/lldb/Breakpoint/Stoppoint.h @@ -37,7 +37,8 @@ protected: 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 index 6a3d5495713f..4d6ca044ccc4 100644 --- a/lldb/include/lldb/Breakpoint/StoppointLocation.h +++ b/lldb/include/lldb/Breakpoint/StoppointLocation.h @@ -77,7 +77,8 @@ protected: 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 index 55b9e50caf4d..bce15f0a85dd 100644 --- a/lldb/include/lldb/Breakpoint/Watchpoint.h +++ b/lldb/include/lldb/Breakpoint/Watchpoint.h @@ -54,7 +54,8 @@ public: 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 @@ private: 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 index d401c7491cb7..9ac058a97cd9 100644 --- a/lldb/include/lldb/Core/AddressResolver.h +++ b/lldb/include/lldb/Core/AddressResolver.h @@ -55,7 +55,8 @@ protected: 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 index db3080cc8812..46bf4155e865 100644 --- a/lldb/include/lldb/Core/AddressResolverFileLine.h +++ b/lldb/include/lldb/Core/AddressResolverFileLine.h @@ -48,7 +48,9 @@ protected: // 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 index c1ce8c7d6719..0ec1ef05b0ec 100644 --- a/lldb/include/lldb/Core/AddressResolverName.h +++ b/lldb/include/lldb/Core/AddressResolverName.h @@ -54,7 +54,8 @@ protected: 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 index 4233d5bf5f81..6b65974f9522 100644 --- a/lldb/include/lldb/Core/Communication.h +++ b/lldb/include/lldb/Core/Communication.h @@ -359,7 +359,8 @@ protected: 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 index 0524e63beb59..7bea0dbae082 100644 --- a/lldb/include/lldb/Core/Debugger.h +++ b/lldb/include/lldb/Core/Debugger.h @@ -443,7 +443,8 @@ private: // 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 index 7ffdac74ccfc..926a74b933ef 100644 --- a/lldb/include/lldb/Core/Disassembler.h +++ b/lldb/include/lldb/Core/Disassembler.h @@ -349,7 +349,8 @@ public: 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 @@ protected: 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 index fc9978267958..a575488ba966 100644 --- a/lldb/include/lldb/Core/EmulateInstruction.h +++ b/lldb/include/lldb/Core/EmulateInstruction.h @@ -499,7 +499,8 @@ protected: 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 index f9fea1827da1..68e252e93bc9 100644 --- a/lldb/include/lldb/Core/FileLineResolver.h +++ b/lldb/include/lldb/Core/FileLineResolver.h @@ -58,7 +58,8 @@ protected: // 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 index 82a42e526304..b138e57af419 100644 --- a/lldb/include/lldb/Core/Highlighter.h +++ b/lldb/include/lldb/Core/Highlighter.h @@ -91,7 +91,8 @@ class Highlighter { 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 index 539ba04ab84c..51592afbbabe 100644 --- a/lldb/include/lldb/Core/IOHandler.h +++ b/lldb/include/lldb/Core/IOHandler.h @@ -180,7 +180,8 @@ protected: 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 @@ protected: 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 index 854ffda25b36..3fae2d0cd04a 100644 --- a/lldb/include/lldb/Core/Module.h +++ b/lldb/include/lldb/Core/Module.h @@ -1049,7 +1049,8 @@ private: 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 index 3be9bc770be5..af2bb7896a5b 100644 --- a/lldb/include/lldb/Core/Section.h +++ b/lldb/include/lldb/Core/Section.h @@ -268,7 +268,8 @@ protected: // 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 index 2bbb36e50456..7549c308f33a 100644 --- a/lldb/include/lldb/Core/SourceManager.h +++ b/lldb/include/lldb/Core/SourceManager.h @@ -160,7 +160,8 @@ protected: 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 index eaa475d68f68..e71e31eb1d04 100644 --- a/lldb/include/lldb/Core/StreamFile.h +++ b/lldb/include/lldb/Core/StreamFile.h @@ -48,7 +48,8 @@ protected: 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 index efacc0705a34..38b8034fad53 100644 --- a/lldb/include/lldb/Core/ThreadSafeValue.h +++ b/lldb/include/lldb/Core/ThreadSafeValue.h @@ -53,7 +53,8 @@ private: 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 index 1dd399ae7813..7c8a01beea56 100644 --- a/lldb/include/lldb/Core/ValueObject.h +++ b/lldb/include/lldb/Core/ValueObject.h @@ -974,7 +974,8 @@ private: 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 index bf01bcca8255..d91ca6a92be8 100644 --- a/lldb/include/lldb/Core/ValueObjectCast.h +++ b/lldb/include/lldb/Core/ValueObjectCast.h @@ -57,7 +57,8 @@ protected: 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 index fb776aac6cd3..d8f395522443 100644 --- a/lldb/include/lldb/Core/ValueObjectChild.h +++ b/lldb/include/lldb/Core/ValueObjectChild.h @@ -88,7 +88,8 @@ protected: 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 index 9361208d1291..0e868c687e93 100644 --- a/lldb/include/lldb/Core/ValueObjectConstResult.h +++ b/lldb/include/lldb/Core/ValueObjectConstResult.h @@ -150,7 +150,9 @@ private: 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 index 970f0238ed1b..ba81785866c3 100644 --- a/lldb/include/lldb/Core/ValueObjectConstResultCast.h +++ b/lldb/include/lldb/Core/ValueObjectConstResultCast.h @@ -61,7 +61,9 @@ private: 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 index a5e31f93c997..b3606bfde0ef 100644 --- a/lldb/include/lldb/Core/ValueObjectConstResultChild.h +++ b/lldb/include/lldb/Core/ValueObjectConstResultChild.h @@ -70,7 +70,9 @@ private: 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 index bbc96bd0b3c2..1316bf66dfdb 100644 --- a/lldb/include/lldb/Core/ValueObjectConstResultImpl.h +++ b/lldb/include/lldb/Core/ValueObjectConstResultImpl.h @@ -71,7 +71,9 @@ private: 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 index 7f3d9544062d..9f5304b55e93 100644 --- a/lldb/include/lldb/Core/ValueObjectDynamicValue.h +++ b/lldb/include/lldb/Core/ValueObjectDynamicValue.h @@ -127,7 +127,9 @@ private: 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 index b2c7dacaa4f1..d1cd6ae41445 100644 --- a/lldb/include/lldb/Core/ValueObjectMemory.h +++ b/lldb/include/lldb/Core/ValueObjectMemory.h @@ -72,7 +72,8 @@ private: 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 index ea20b2d9450d..41051d93b707 100644 --- a/lldb/include/lldb/Core/ValueObjectRegister.h +++ b/lldb/include/lldb/Core/ValueObjectRegister.h @@ -73,7 +73,9 @@ private: 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 @@ private: 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 index 406586fb24f6..cb471657aec9 100644 --- a/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h +++ b/lldb/include/lldb/Core/ValueObjectSyntheticFilter.h @@ -164,7 +164,8 @@ private: 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 index 38c317bcadf5..a0417e5e7d85 100644 --- a/lldb/include/lldb/Core/ValueObjectVariable.h +++ b/lldb/include/lldb/Core/ValueObjectVariable.h @@ -80,7 +80,8 @@ private: 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 index fe6e4c88599a..05886e656cdb 100644 --- a/lldb/include/lldb/DataFormatters/FormatClasses.h +++ b/lldb/include/lldb/DataFormatters/FormatClasses.h @@ -152,7 +152,9 @@ private: 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 index 708aa951fce8..d414882bae19 100644 --- a/lldb/include/lldb/DataFormatters/FormattersContainer.h +++ b/lldb/include/lldb/DataFormatters/FormattersContainer.h @@ -218,7 +218,8 @@ protected: 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 index 56228b56965e..b8ed6a3443b3 100644 --- a/lldb/include/lldb/DataFormatters/TypeFormat.h +++ b/lldb/include/lldb/DataFormatters/TypeFormat.h @@ -152,7 +152,8 @@ protected: 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 @@ protected: 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 @@ protected: 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 index 7d4dfccfcd86..6c3780f7276d 100644 --- a/lldb/include/lldb/DataFormatters/TypeSummary.h +++ b/lldb/include/lldb/DataFormatters/TypeSummary.h @@ -270,7 +270,8 @@ protected: 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 @@ struct StringSummaryFormat : public TypeSummaryImpl { } 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 @@ struct CXXFunctionSummaryFormat : public TypeSummaryImpl { 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 @@ struct ScriptSummaryFormat : public TypeSummaryImpl { 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 index 2c572797c3a7..c852ff18bfa2 100644 --- a/lldb/include/lldb/DataFormatters/TypeSynthetic.h +++ b/lldb/include/lldb/DataFormatters/TypeSynthetic.h @@ -96,7 +96,9 @@ protected: 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 @@ public: 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 @@ protected: 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 @@ public: private: TypeFilterImpl *filter; - DISALLOW_COPY_AND_ASSIGN(FrontEnd); + FrontEnd(const FrontEnd &) = delete; + const FrontEnd &operator=(const FrontEnd &) = delete; }; SyntheticChildrenFrontEnd::AutoPointer @@ -344,7 +351,8 @@ public: 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 @@ protected: 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 @@ public: 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 @@ public: } 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 index 90cd5aa63136..dda91e4178e6 100644 --- a/lldb/include/lldb/DataFormatters/ValueObjectPrinter.h +++ b/lldb/include/lldb/DataFormatters/ValueObjectPrinter.h @@ -141,7 +141,8 @@ private: 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 index acb8981726f0..abec5442793c 100644 --- a/lldb/include/lldb/Expression/IRMemoryMap.h +++ b/lldb/include/lldb/Expression/IRMemoryMap.h @@ -107,7 +107,8 @@ private: 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 index e40a63acb7c4..d205a3fe6911 100644 --- a/lldb/include/lldb/Host/File.h +++ b/lldb/include/lldb/Host/File.h @@ -367,7 +367,8 @@ protected: 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 @@ protected: 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 index 6b468d60308e..642c63443c20 100644 --- a/lldb/include/lldb/Host/HostNativeProcessBase.h +++ b/lldb/include/lldb/Host/HostNativeProcessBase.h @@ -19,7 +19,9 @@ namespace lldb_private { 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 index c8b540f67db2..0dfd363cc8fb 100644 --- a/lldb/include/lldb/Host/HostNativeThreadBase.h +++ b/lldb/include/lldb/Host/HostNativeThreadBase.h @@ -23,7 +23,8 @@ namespace lldb_private { 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 index 51a4afb20cc8..9ca5040b60a8 100644 --- a/lldb/include/lldb/Host/MainLoop.h +++ b/lldb/include/lldb/Host/MainLoop.h @@ -86,7 +86,8 @@ private: 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 index 645ca5af250c..cc816da4c25f 100644 --- a/lldb/include/lldb/Host/MainLoopBase.h +++ b/lldb/include/lldb/Host/MainLoopBase.h @@ -75,11 +75,13 @@ private: 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 index 82be78474225..43463d144de3 100644 --- a/lldb/include/lldb/Host/ProcessRunLock.h +++ b/lldb/include/lldb/Host/ProcessRunLock.h @@ -67,7 +67,8 @@ public: ProcessRunLock *m_lock; private: - DISALLOW_COPY_AND_ASSIGN(ProcessRunLocker); + ProcessRunLocker(const ProcessRunLocker &) = delete; + const ProcessRunLocker &operator=(const ProcessRunLocker &) = delete; }; protected: @@ -75,7 +76,8 @@ protected: 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 index 028aa4207086..f3cdf53ab815 100644 --- a/lldb/include/lldb/Host/PseudoTerminal.h +++ b/lldb/include/lldb/Host/PseudoTerminal.h @@ -209,7 +209,8 @@ protected: 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 index 42c01df71e6e..3b54d4ae1e05 100644 --- a/lldb/include/lldb/Host/common/NativeRegisterContext.h +++ b/lldb/include/lldb/Host/common/NativeRegisterContext.h @@ -170,7 +170,9 @@ protected: 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 index 7e34e7615fbd..3ee8f9d9133e 100644 --- a/lldb/include/lldb/Host/posix/ConnectionFileDescriptorPosix.h +++ b/lldb/include/lldb/Host/posix/ConnectionFileDescriptorPosix.h @@ -116,7 +116,9 @@ protected: 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 index 36f2fbd0e5fc..6c8e09fc1103 100644 --- 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 index 8856708df944..d8f06a7162b2 100644 --- a/lldb/include/lldb/Host/windows/ConnectionGenericFileWindows.h +++ b/lldb/include/lldb/Host/windows/ConnectionGenericFileWindows.h @@ -56,7 +56,9 @@ private: 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 index be3f7fe13d64..63d0d73faad5 100644 --- 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 index c6edd02f0160..fbb42247f11a 100644 --- a/lldb/include/lldb/Interpreter/CommandHistory.h +++ b/lldb/include/lldb/Interpreter/CommandHistory.h @@ -46,7 +46,8 @@ public: 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 index b7c1d379c11c..01d7c6d118d4 100644 --- a/lldb/include/lldb/Interpreter/CommandObjectRegexCommand.h +++ b/lldb/include/lldb/Interpreter/CommandObjectRegexCommand.h @@ -51,7 +51,9 @@ protected: 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 index de34b1ff85dd..252ca3b42c5e 100644 --- a/lldb/include/lldb/Interpreter/OptionGroupVariable.h +++ b/lldb/include/lldb/Interpreter/OptionGroupVariable.h @@ -41,7 +41,8 @@ public: 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 index 94b350a5d9c9..6a6c8638aede 100644 --- a/lldb/include/lldb/Interpreter/OptionGroupWatchpoint.h +++ b/lldb/include/lldb/Interpreter/OptionGroupWatchpoint.h @@ -46,7 +46,9 @@ public: 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 index 5d971f686a2e..73d4369aefeb 100644 --- a/lldb/include/lldb/Interpreter/ScriptInterpreter.h +++ b/lldb/include/lldb/Interpreter/ScriptInterpreter.h @@ -29,7 +29,9 @@ public: 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 index 802f362a72f0..de94556d3f22 100644 --- a/lldb/include/lldb/Symbol/Block.h +++ b/lldb/include/lldb/Symbol/Block.h @@ -376,7 +376,8 @@ protected: 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 index 4baacd2e24a9..256148f20d12 100644 --- a/lldb/include/lldb/Symbol/CompileUnit.h +++ b/lldb/include/lldb/Symbol/CompileUnit.h @@ -447,7 +447,8 @@ private: (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 index 9b28e409c100..0beb6b932637 100644 --- a/lldb/include/lldb/Symbol/DebugMacros.h +++ b/lldb/include/lldb/Symbol/DebugMacros.h @@ -89,7 +89,8 @@ public: } 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 index 950907c81e77..67dcaf1734bd 100644 --- a/lldb/include/lldb/Symbol/DeclVendor.h +++ b/lldb/include/lldb/Symbol/DeclVendor.h @@ -67,7 +67,8 @@ public: 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 index 607ea4cbb5d7..2e841b3b34bd 100644 --- a/lldb/include/lldb/Symbol/FuncUnwinders.h +++ b/lldb/include/lldb/Symbol/FuncUnwinders.h @@ -149,7 +149,8 @@ private: 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 index 40d316fa78eb..156e61510820 100644 --- a/lldb/include/lldb/Symbol/Function.h +++ b/lldb/include/lldb/Symbol/Function.h @@ -640,7 +640,8 @@ protected: /// 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 index d7360c92c067..d66b58ca4c6d 100644 --- a/lldb/include/lldb/Symbol/LineTable.h +++ b/lldb/include/lldb/Symbol/LineTable.h @@ -29,7 +29,8 @@ public: 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 @@ protected: 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 index 79a196dd2f0f..1e01e93da9d2 100644 --- a/lldb/include/lldb/Symbol/ObjectContainer.h +++ b/lldb/include/lldb/Symbol/ObjectContainer.h @@ -167,7 +167,8 @@ protected: 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 index fd9de6202769..966a1861f0dd 100644 --- a/lldb/include/lldb/Symbol/ObjectFile.h +++ b/lldb/include/lldb/Symbol/ObjectFile.h @@ -686,7 +686,8 @@ protected: 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 index 00a618e7d858..9f5806915dcb 100644 --- a/lldb/include/lldb/Symbol/SymbolFile.h +++ b/lldb/include/lldb/Symbol/SymbolFile.h @@ -317,7 +317,8 @@ protected: 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 index 50932e668883..c9c59a3fc1be 100644 --- a/lldb/include/lldb/Symbol/SymbolVendor.h +++ b/lldb/include/lldb/Symbol/SymbolVendor.h @@ -52,7 +52,8 @@ protected: 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 index d48276850650..c232925eec75 100644 --- a/lldb/include/lldb/Symbol/Symtab.h +++ b/lldb/include/lldb/Symbol/Symtab.h @@ -224,7 +224,8 @@ private: 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 index 4bd1bfc859b9..03390858025b 100644 --- a/lldb/include/lldb/Symbol/TypeList.h +++ b/lldb/include/lldb/Symbol/TypeList.h @@ -63,7 +63,8 @@ private: 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 index 67bb65b5faec..ede54c1a09d4 100644 --- a/lldb/include/lldb/Symbol/TypeMap.h +++ b/lldb/include/lldb/Symbol/TypeMap.h @@ -67,7 +67,8 @@ private: 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 index cc800ffe814b..9548b1f3fcec 100644 --- a/lldb/include/lldb/Symbol/UnwindTable.h +++ b/lldb/include/lldb/Symbol/UnwindTable.h @@ -79,7 +79,8 @@ private: 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 index 1c7051ba0e67..9fea628a81b6 100644 --- a/lldb/include/lldb/Symbol/VariableList.h +++ b/lldb/include/lldb/Symbol/VariableList.h @@ -80,7 +80,8 @@ protected: 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 index 9d1e69960da9..b252e4b54f03 100644 --- a/lldb/include/lldb/Target/ABI.h +++ b/lldb/include/lldb/Target/ABI.h @@ -148,7 +148,8 @@ protected: 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 index 9b5fb7fe4211..d3ce1b05ed51 100644 --- a/lldb/include/lldb/Target/DynamicLoader.h +++ b/lldb/include/lldb/Target/DynamicLoader.h @@ -310,7 +310,8 @@ protected: *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 index e6fb51e5bcf4..9dc9df363d79 100644 --- a/lldb/include/lldb/Target/Language.h +++ b/lldb/include/lldb/Target/Language.h @@ -270,7 +270,8 @@ protected: 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 index e36e52bac522..3ee60a5f876f 100644 --- a/lldb/include/lldb/Target/LanguageRuntime.h +++ b/lldb/include/lldb/Target/LanguageRuntime.h @@ -185,7 +185,8 @@ protected: 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 index b1b190801ea3..b3ad22aff16b 100644 --- a/lldb/include/lldb/Target/Memory.h +++ b/lldb/include/lldb/Target/Memory.h @@ -59,7 +59,8 @@ protected: 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 @@ protected: 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 index dd0f18cda0b8..6db5c0a01f36 100644 --- a/lldb/include/lldb/Target/OperatingSystem.h +++ b/lldb/include/lldb/Target/OperatingSystem.h @@ -69,7 +69,8 @@ protected: 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 index 190ad0653073..52696f131f82 100644 --- a/lldb/include/lldb/Target/Platform.h +++ b/lldb/include/lldb/Target/Platform.h @@ -928,7 +928,8 @@ private: FileSpec GetModuleCacheRoot(); - DISALLOW_COPY_AND_ASSIGN(Platform); + Platform(const Platform &) = delete; + const Platform &operator=(const Platform &) = delete; }; class PlatformList { @@ -995,7 +996,8 @@ protected: 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 @@ public: 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 @@ public: 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 @@ public: 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 index 6f31741b4ce6..700f74f26958 100644 --- a/lldb/include/lldb/Target/Process.h +++ b/lldb/include/lldb/Target/Process.h @@ -497,7 +497,8 @@ public: 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 @@ private: 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 index 134885b2020e..058d46a75a83 100644 --- a/lldb/include/lldb/Target/Queue.h +++ b/lldb/include/lldb/Target/Queue.h @@ -144,7 +144,8 @@ private: // 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 index b679e16dab34..64d3d23b3986 100644 --- a/lldb/include/lldb/Target/QueueItem.h +++ b/lldb/include/lldb/Target/QueueItem.h @@ -159,7 +159,8 @@ protected: 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 index 1dc8fe5cf81b..d2bcc614f587 100644 --- a/lldb/include/lldb/Target/RegisterCheckpoint.h +++ b/lldb/include/lldb/Target/RegisterCheckpoint.h @@ -45,7 +45,8 @@ protected: 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 index 2f3573cecf2d..651973de64bf 100644 --- a/lldb/include/lldb/Target/RegisterContext.h +++ b/lldb/include/lldb/Target/RegisterContext.h @@ -201,7 +201,8 @@ protected: 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 index 6c91a649684e..fa96c3e42c78 100644 --- a/lldb/include/lldb/Target/RegisterContextUnwind.h +++ b/lldb/include/lldb/Target/RegisterContextUnwind.h @@ -249,7 +249,9 @@ private: 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 index 925a667e51e2..dd024301d0cf 100644 --- a/lldb/include/lldb/Target/SectionLoadHistory.h +++ b/lldb/include/lldb/Target/SectionLoadHistory.h @@ -75,7 +75,8 @@ protected: 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 index 667428e7d749..905c56c91263 100644 --- a/lldb/include/lldb/Target/StackFrame.h +++ b/lldb/include/lldb/Target/StackFrame.h @@ -525,7 +525,8 @@ private: 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 index be5e009e8a1e..1b0b986d7059 100644 --- a/lldb/include/lldb/Target/StackFrameList.h +++ b/lldb/include/lldb/Target/StackFrameList.h @@ -155,7 +155,8 @@ protected: 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 index 6be506391deb..9c9105ac04e4 100644 --- a/lldb/include/lldb/Target/StackFrameRecognizer.h +++ b/lldb/include/lldb/Target/StackFrameRecognizer.h @@ -90,7 +90,9 @@ public: 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 index b5f40708c15d..4378d2d63799 100644 --- a/lldb/include/lldb/Target/StopInfo.h +++ b/lldb/include/lldb/Target/StopInfo.h @@ -183,7 +183,8 @@ protected: 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 index 888dddc2e18f..09241d5281fb 100644 --- a/lldb/include/lldb/Target/StructuredDataPlugin.h +++ b/lldb/include/lldb/Target/StructuredDataPlugin.h @@ -162,7 +162,8 @@ protected: 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 index a83aed7618fb..4f07d7ab52e5 100644 --- a/lldb/include/lldb/Target/SystemRuntime.h +++ b/lldb/include/lldb/Target/SystemRuntime.h @@ -300,7 +300,8 @@ protected: 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 index a8c62917bea0..280ce6359c72 100644 --- a/lldb/include/lldb/Target/Target.h +++ b/lldb/include/lldb/Target/Target.h @@ -485,7 +485,8 @@ public: 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 @@ private: 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 index 933c193cf2df..5ed0344f175c 100644 --- a/lldb/include/lldb/Target/TargetList.h +++ b/lldb/include/lldb/Target/TargetList.h @@ -206,7 +206,8 @@ private: 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 index 97c35d7f870d..75cc902b465a 100644 --- a/lldb/include/lldb/Target/Thread.h +++ b/lldb/include/lldb/Target/Thread.h @@ -113,7 +113,8 @@ public: 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: 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 index 65bb7a2d11a4..677286e9692e 100644 --- a/lldb/include/lldb/Target/ThreadPlan.h +++ b/lldb/include/lldb/Target/ThreadPlan.h @@ -616,7 +616,8 @@ private: 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 @@ protected: 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 index ed748bb5a609..48058a9b40ab 100644 --- a/lldb/include/lldb/Target/ThreadPlanBase.h +++ b/lldb/include/lldb/Target/ThreadPlanBase.h @@ -47,7 +47,8 @@ private: 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 index 2b8578f727ad..5b432e5e604a 100644 --- a/lldb/include/lldb/Target/ThreadPlanCallFunction.h +++ b/lldb/include/lldb/Target/ThreadPlanCallFunction.h @@ -146,7 +146,9 @@ protected: 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 index 49efcae6bc29..af343d8a6635 100644 --- a/lldb/include/lldb/Target/ThreadPlanCallFunctionUsingABI.h +++ b/lldb/include/lldb/Target/ThreadPlanCallFunctionUsingABI.h @@ -44,7 +44,10 @@ protected: 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 index fe19f1eb711a..adaea6c7056f 100644 --- a/lldb/include/lldb/Target/ThreadPlanCallUserExpression.h +++ b/lldb/include/lldb/Target/ThreadPlanCallUserExpression.h @@ -56,7 +56,9 @@ private: 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 index 5b8713c328e2..27bf3a560b1f 100644 --- a/lldb/include/lldb/Target/ThreadPlanPython.h +++ b/lldb/include/lldb/Target/ThreadPlanPython.h @@ -68,7 +68,8 @@ private: 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 index 45445762803b..10b8ec658cdd 100644 --- a/lldb/include/lldb/Target/ThreadPlanRunToAddress.h +++ b/lldb/include/lldb/Target/ThreadPlanRunToAddress.h @@ -59,7 +59,9 @@ private: 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 index 8cfab036d5c6..54b30291c399 100644 --- a/lldb/include/lldb/Target/ThreadPlanShouldStopHere.h +++ b/lldb/include/lldb/Target/ThreadPlanShouldStopHere.h @@ -130,7 +130,9 @@ protected: 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 index 447caefa08e2..59b5721998b5 100644 --- a/lldb/include/lldb/Target/ThreadPlanStepInRange.h +++ b/lldb/include/lldb/Target/ThreadPlanStepInRange.h @@ -105,7 +105,9 @@ private: 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 index 4f89f037551c..760bc4886faa 100644 --- a/lldb/include/lldb/Target/ThreadPlanStepInstruction.h +++ b/lldb/include/lldb/Target/ThreadPlanStepInstruction.h @@ -49,7 +49,9 @@ private: 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 index 7d02b421ce7e..5c39232fd2e8 100644 --- a/lldb/include/lldb/Target/ThreadPlanStepOut.h +++ b/lldb/include/lldb/Target/ThreadPlanStepOut.h @@ -85,7 +85,8 @@ private: 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 index 93995321545c..86f7798487c3 100644 --- a/lldb/include/lldb/Target/ThreadPlanStepOverBreakpoint.h +++ b/lldb/include/lldb/Target/ThreadPlanStepOverBreakpoint.h @@ -47,7 +47,9 @@ private: 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 index 4f42ec732052..8585ac62f09b 100644 --- a/lldb/include/lldb/Target/ThreadPlanStepOverRange.h +++ b/lldb/include/lldb/Target/ThreadPlanStepOverRange.h @@ -45,7 +45,9 @@ private: 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 index 790067d82046..2fe885277100 100644 --- a/lldb/include/lldb/Target/ThreadPlanStepRange.h +++ b/lldb/include/lldb/Target/ThreadPlanStepRange.h @@ -86,7 +86,8 @@ protected: 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 index d34da0d7e2b3..89262258e873 100644 --- a/lldb/include/lldb/Target/ThreadPlanStepThrough.h +++ b/lldb/include/lldb/Target/ThreadPlanStepThrough.h @@ -53,7 +53,9 @@ private: 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 index e90064e4d7a0..27e1f85e9cb9 100644 --- a/lldb/include/lldb/Target/ThreadPlanStepUntil.h +++ b/lldb/include/lldb/Target/ThreadPlanStepUntil.h @@ -59,7 +59,8 @@ private: // 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 index 0e45b922416b..783b7103e8fe 100644 --- a/lldb/include/lldb/Target/Unwind.h +++ b/lldb/include/lldb/Target/Unwind.h @@ -77,7 +77,8 @@ protected: 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 index bc36df36faa5..abfd38774399 100644 --- a/lldb/include/lldb/Target/UnwindAssembly.h +++ b/lldb/include/lldb/Target/UnwindAssembly.h @@ -45,7 +45,8 @@ protected: 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 index 6dd0b13edfbc..c7c9cfbccbad 100644 --- a/lldb/include/lldb/Target/UnwindLLDB.h +++ b/lldb/include/lldb/Target/UnwindLLDB.h @@ -122,7 +122,8 @@ private: 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 @@ private: 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 index 0b619984a4d4..03995454ecb0 100644 --- a/lldb/include/lldb/Utility/Broadcaster.h +++ b/lldb/include/lldb/Utility/Broadcaster.h @@ -514,7 +514,8 @@ protected: 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 @@ private: /// 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 index 1c3221df4ce4..39e6e40191b0 100644 --- a/lldb/include/lldb/Utility/Connection.h +++ b/lldb/include/lldb/Utility/Connection.h @@ -175,7 +175,8 @@ public: 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 index 17b286297280..563fc7118530 100644 --- a/lldb/include/lldb/Utility/DataEncoder.h +++ b/lldb/include/lldb/Utility/DataEncoder.h @@ -243,7 +243,8 @@ private: /// 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 index dd5d08024cef..06c02629d448 100644 --- a/lldb/include/lldb/Utility/Event.h +++ b/lldb/include/lldb/Utility/Event.h @@ -48,7 +48,8 @@ public: 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 @@ public: 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 @@ private: 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 @@ private: 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 index d500929985fe..9b2b9cfcfec0 100644 --- a/lldb/include/lldb/Utility/IOObject.h +++ b/lldb/include/lldb/Utility/IOObject.h @@ -45,7 +45,8 @@ protected: 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 index 17fc47880e8f..9d96e36c5abc 100644 --- a/lldb/include/lldb/Utility/Listener.h +++ b/lldb/include/lldb/Utility/Listener.h @@ -145,7 +145,8 @@ private: // 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 index 5a9322f525b0..a17ac05f6e56 100644 --- a/lldb/include/lldb/Utility/Predicate.h +++ b/lldb/include/lldb/Utility/Predicate.h @@ -221,7 +221,8 @@ private: 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 index a8ccdd92fa27..f97315b2db0f 100644 --- a/lldb/include/lldb/Utility/Timer.h +++ b/lldb/include/lldb/Utility/Timer.h @@ -34,7 +34,8 @@ public: 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 @@ protected: 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 index d829809f9783..fea8079779a1 100644 --- 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 index 11198f68490d..48df77357201 100644 --- a/lldb/source/Commands/CommandCompletions.cpp +++ b/lldb/source/Commands/CommandCompletions.cpp @@ -97,7 +97,8 @@ protected: CompletionRequest &m_request; private: - DISALLOW_COPY_AND_ASSIGN(Completer); + Completer(const Completer &) = delete; + const Completer &operator=(const Completer &) = delete; }; } // namespace @@ -154,7 +155,8 @@ private: 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 @@ private: 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 @@ private: 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 index e850d5d13cdd..8dc3f1b7b9e9 100644 --- a/lldb/source/Commands/CommandObjectLog.h +++ b/lldb/source/Commands/CommandObjectLog.h @@ -24,7 +24,8 @@ public: 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.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp index 4b19592af75a..103185a8839e 100644 --- a/lldb/source/Commands/CommandObjectPlatform.cpp +++ b/lldb/source/Commands/CommandObjectPlatform.cpp @@ -133,7 +133,8 @@ public: 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 @@ public: 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 @@ public: 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/CommandObjectPlatform.h b/lldb/source/Commands/CommandObjectPlatform.h index 289ae45c93b5..86f55c7d9b08 100644 --- a/lldb/source/Commands/CommandObjectPlatform.h +++ b/lldb/source/Commands/CommandObjectPlatform.h @@ -22,7 +22,9 @@ public: ~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/CommandObjectRegister.h b/lldb/source/Commands/CommandObjectRegister.h index cd9dd83cf1b2..671ffc570147 100644 --- a/lldb/source/Commands/CommandObjectRegister.h +++ b/lldb/source/Commands/CommandObjectRegister.h @@ -24,7 +24,9 @@ public: 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 index 41a6135f340c..ce2fb99fba7d 100644 --- a/lldb/source/Commands/CommandObjectTarget.cpp +++ b/lldb/source/Commands/CommandObjectTarget.cpp @@ -200,7 +200,9 @@ public: 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 @@ public: 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 @@ public: 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 index 013b1b9d6ddc..c5f365973c40 100644 --- a/lldb/source/Core/IOHandlerCursesGUI.cpp +++ b/lldb/source/Core/IOHandlerCursesGUI.cpp @@ -744,7 +744,8 @@ protected: 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 index d9f32ca498fa..5c60caa33e6f 100644 --- a/lldb/source/Host/macosx/objcxx/HostThreadMacOSX.mm +++ b/lldb/source/Host/macosx/objcxx/HostThreadMacOSX.mm @@ -44,7 +44,8 @@ protected: 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 index 20ce726f7a3b..8659cd575bc3 100644 --- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h +++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h @@ -296,7 +296,9 @@ protected: 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 index 15de31261996..2d39ce06a8d9 100644 --- a/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.h +++ b/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.h @@ -132,7 +132,9 @@ private: 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 index ca2277b7742f..4c9a27f08537 100644 --- a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.h +++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.h @@ -238,7 +238,8 @@ protected: 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 index 9dfec4956bbd..12e294e89e88 100644 --- a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.h +++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.h @@ -105,7 +105,8 @@ protected: // 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 index e14344c4477f..21bf5875dc13 100644 --- a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h +++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.h @@ -169,7 +169,9 @@ protected: 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 index 3ea6c5a7919a..a7fcdfbadeaf 100644 --- a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.h +++ b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.h @@ -159,7 +159,9 @@ protected: 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 index 1ec828744520..ce78804f9a92 100644 --- a/lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.h +++ b/lldb/source/Plugins/DynamicLoader/Static/DynamicLoaderStatic.h @@ -53,7 +53,8 @@ public: 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 index 13bd94a80b07..bf52bec4b1fa 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.h @@ -35,7 +35,8 @@ public: } 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 index 47686911862b..2dc921608348 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h @@ -331,7 +331,8 @@ private: ///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 index f9dc0fca733b..58d589962abe 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionVariable.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionVariable.h @@ -197,7 +197,9 @@ public: } /// 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 index f61dc1b06772..955c7c642058 100644 --- a/lldb/source/Plugins/Instruction/ARM/EmulationStateARM.h +++ b/lldb/source/Plugins/Instruction/ARM/EmulationStateARM.h @@ -73,7 +73,8 @@ private: // 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 index 71725361e6ae..ec27df6997f2 100644 --- a/lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.h +++ b/lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.h @@ -90,7 +90,8 @@ private: 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 index fd9d2168b1c1..99264d556da5 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h @@ -162,7 +162,8 @@ private: friend class AppleObjCRuntimeV2; - DISALLOW_COPY_AND_ASSIGN(NonPointerISACache); + NonPointerISACache(const NonPointerISACache &) = delete; + const NonPointerISACache &operator=(const NonPointerISACache &) = delete; }; class TaggedPointerVendorV2 @@ -181,7 +182,9 @@ private: : 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 @@ private: 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 @@ private: 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 @@ private: 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 index 2388a9aa800f..17ff2f5929e0 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h @@ -186,7 +186,8 @@ public: TaggedPointerVendor() = default; private: - DISALLOW_COPY_AND_ASSIGN(TaggedPointerVendor); + TaggedPointerVendor(const TaggedPointerVendor &) = delete; + const TaggedPointerVendor &operator=(const TaggedPointerVendor &) = delete; }; ~ObjCLanguageRuntime() override; @@ -417,7 +418,8 @@ protected: 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 index 4378a52960d4..2ea1c0f46181 100644 --- a/lldb/source/Plugins/Platform/Android/PlatformAndroid.h +++ b/lldb/source/Plugins/Platform/Android/PlatformAndroid.h @@ -77,7 +77,8 @@ private: 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 index 5f7f9d87d579..c3e0d0f66e8d 100644 --- a/lldb/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.h +++ b/lldb/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.h @@ -54,7 +54,10 @@ protected: 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 index f958817cc172..56f2f2771d12 100644 --- a/lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.h +++ b/lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.h @@ -62,7 +62,8 @@ public: 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 index 5d2f0d138f00..765a0a86a4ef 100644 --- a/lldb/source/Plugins/Platform/Linux/PlatformLinux.h +++ b/lldb/source/Plugins/Platform/Linux/PlatformLinux.h @@ -60,7 +60,8 @@ public: 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 index 5dd669acf0f9..446f4fa9d97d 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.h @@ -57,7 +57,9 @@ protected: #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 index 2170e03e4552..2cbd38d36635 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleTVSimulator.h @@ -80,7 +80,9 @@ protected: 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 index eceb3f08886b..cd80ece62f91 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.h @@ -80,7 +80,9 @@ protected: 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 index a197cb3cc8ff..f93f8f4ffc72 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h @@ -172,7 +172,8 @@ protected: 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 index 850c8b9e4526..9cf9e41208eb 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.h @@ -172,7 +172,8 @@ public: // 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 index 3e3187c0da31..30b11eb37684 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h @@ -77,7 +77,8 @@ public: } 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 index b839dfacc5cd..b255fa37ed16 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.h @@ -58,7 +58,9 @@ protected: 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 index cef8b10f4bf8..f5b554d2f66c 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleTV.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleTV.h @@ -58,7 +58,9 @@ protected: 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 index 01813220408d..712693f6c410 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.h @@ -61,7 +61,9 @@ protected: 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 index 5e8422b4df45..b1b760f16d45 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.h @@ -103,7 +103,9 @@ protected: 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 index a09ddaf8a0e2..4f38128bfb0a 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h @@ -57,7 +57,8 @@ protected: 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 index 095d81b7ca5f..9ede35d462a6 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulator.h +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulator.h @@ -82,7 +82,8 @@ protected: 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 index 26b4550423a4..d53e58418884 100644 --- a/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.h +++ b/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.h @@ -60,7 +60,8 @@ public: 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 index 39a57e48c67f..9cfe32c3720c 100644 --- a/lldb/source/Plugins/Platform/OpenBSD/PlatformOpenBSD.h +++ b/lldb/source/Plugins/Platform/OpenBSD/PlatformOpenBSD.h @@ -54,7 +54,8 @@ public: 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 index f3920f5bec86..72c54f4147c2 100644 --- a/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.h +++ b/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.h @@ -101,7 +101,8 @@ protected: 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 index 5ad7f307c523..d8b2cd8a26a3 100644 --- a/lldb/source/Plugins/Platform/Windows/PlatformWindows.h +++ b/lldb/source/Plugins/Platform/Windows/PlatformWindows.h @@ -67,7 +67,8 @@ public: 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 index b06eafacc802..0602be1fa377 100644 --- a/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.h +++ b/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.h @@ -194,7 +194,9 @@ private: 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 index 2f5c904fac5d..d04765f9d86b 100644 --- a/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h @@ -241,7 +241,8 @@ protected: 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 index 61db72df6742..67f8ac069820 100644 --- a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.h +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.h @@ -186,7 +186,8 @@ protected: 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 index 059a3a4716d7..de98767693fe 100644 --- a/lldb/source/Plugins/Process/Utility/RegisterContextDummy.h +++ b/lldb/source/Plugins/Process/Utility/RegisterContextDummy.h @@ -56,7 +56,8 @@ private: 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 index 7cca95901cba..407640d2bdb9 100644 --- a/lldb/source/Plugins/Process/Utility/RegisterContextHistory.h +++ b/lldb/source/Plugins/Process/Utility/RegisterContextHistory.h @@ -58,7 +58,9 @@ private: 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 index 37cc1d47fd34..764ee9b97211 100644 --- a/lldb/source/Plugins/Process/Utility/RegisterContextMemory.h +++ b/lldb/source/Plugins/Process/Utility/RegisterContextMemory.h @@ -67,7 +67,9 @@ protected: // 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 index fbc150b8ccf6..40688a502a66 100644 --- a/lldb/source/Plugins/Process/Utility/RegisterContextThreadMemory.h +++ b/lldb/source/Plugins/Process/Utility/RegisterContextThreadMemory.h @@ -92,7 +92,9 @@ protected: 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 index 0543632fa01b..d124f5780ea9 100644 --- a/lldb/source/Plugins/Process/Utility/ThreadMemory.h +++ b/lldb/source/Plugins/Process/Utility/ThreadMemory.h @@ -100,7 +100,8 @@ protected: 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 index f175499259eb..6f6309799f43 100644 --- a/lldb/source/Plugins/Process/elf-core/ProcessElfCore.h +++ b/lldb/source/Plugins/Process/elf-core/ProcessElfCore.h @@ -125,7 +125,8 @@ private: 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 index 4cc466667c82..b1e2075a64fe 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h @@ -226,7 +226,9 @@ private: 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 index bd4a254433e9..8df08cbde735 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h @@ -621,7 +621,9 @@ protected: 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 index 65587293667f..c13e5ee0bf92 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.h @@ -76,7 +76,10 @@ protected: 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 index 93150ff2e6fe..a7c2ea47e3ba 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.h @@ -74,7 +74,9 @@ protected: 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 index f2cb3a8c7e5d..3ce285910c25 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h @@ -224,7 +224,10 @@ private: 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 index 8a8d113c7fc0..a8cacea78835 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.h @@ -100,7 +100,10 @@ private: 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 index 87e492e72911..015862587103 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h @@ -120,7 +120,9 @@ private: 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 index 6ed75dd03f63..22d86d6cdd75 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h @@ -450,7 +450,8 @@ private: 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 index f9ae069fff53..309464102705 100644 --- a/lldb/source/Plugins/Process/mach-core/ProcessMachCore.h +++ b/lldb/source/Plugins/Process/mach-core/ProcessMachCore.h @@ -121,7 +121,8 @@ private: 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 index ba127eae10a8..06afbc060186 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h @@ -90,7 +90,9 @@ public: 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 index 11bb1addfd5f..3ec161f7dd51 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h @@ -27,7 +27,8 @@ private: 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 index 0a4d443f4e3e..bdc718a5c2fa 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.h @@ -79,7 +79,8 @@ private: 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 index bc080db0105e..affad286a490 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h @@ -98,7 +98,8 @@ public: 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 @@ private: 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 index 1e4a793e8b1a..76ceb279c718 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h @@ -329,7 +329,8 @@ protected: 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 index 5311191c5dfa..9557ebbcb272 100644 --- a/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.h +++ b/lldb/source/Plugins/SymbolFile/Symtab/SymbolFileSymtab.h @@ -106,7 +106,8 @@ protected: 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 index f39a44e31e6e..824906c04955 100644 --- a/lldb/source/Plugins/SymbolVendor/ELF/SymbolVendorELF.h +++ b/lldb/source/Plugins/SymbolVendor/ELF/SymbolVendorELF.h @@ -38,7 +38,8 @@ public: 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 index 52ef6797ab48..7d2de4ac29ac 100644 --- a/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.h +++ b/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.h @@ -38,7 +38,8 @@ public: 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 index 34c5b60c813d..96e737b1be96 100644 --- a/lldb/source/Plugins/SymbolVendor/wasm/SymbolVendorWasm.h +++ b/lldb/source/Plugins/SymbolVendor/wasm/SymbolVendorWasm.h @@ -35,7 +35,8 @@ public: /// \} 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 index be0c556f1226..844682e53ad9 100644 --- a/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h +++ b/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h @@ -286,7 +286,8 @@ private: 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 index d08f82a3320f..f39dce1afaa6 100644 --- a/lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.h +++ b/lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.h @@ -191,7 +191,9 @@ private: ::LLVMDisasmContextRef m_disasm_context; - DISALLOW_COPY_AND_ASSIGN(x86AssemblyInspectionEngine); + x86AssemblyInspectionEngine(const x86AssemblyInspectionEngine &) = delete; + const x86AssemblyInspectionEngine & + operator=(const x86AssemblyInspectionEngine &) = delete; }; } // namespace lldb_private