[lldb] Change Communication::SetConnection to take a unique_ptr
authorPavel Labath <pavel@labath.sk>
Thu, 2 Apr 2020 12:40:59 +0000 (14:40 +0200)
committerPavel Labath <pavel@labath.sk>
Thu, 2 Apr 2020 12:42:25 +0000 (14:42 +0200)
commit451741a9d778a260ceee608a26b5fdf2d9926982
tree945c6de2f63d9be79125b8ceeee0fde3eeff5f36
parent13a1504ffb9a9a4f82dc1b60d9e8cbb173c7d030
[lldb] Change Communication::SetConnection to take a unique_ptr

The function takes ownership of the object. This makes that explicit,
and avoids unowned pointers floating around.
14 files changed:
lldb/include/lldb/Core/Communication.h
lldb/source/API/SBCommunication.cpp
lldb/source/Core/Communication.cpp
lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
lldb/source/Target/Process.cpp
lldb/tools/lldb-server/lldb-platform.cpp
lldb/unittests/Process/gdb-remote/GDBRemoteTestUtils.h
lldb/unittests/tools/lldb-server/tests/TestClient.cpp