diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-05-15 05:31:14 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-05-15 05:31:14 +0000 |
commit | c18740976e53e847892ffcbc5278c4c7789a1289 (patch) | |
tree | de8df82e7fbc4ac01d5e73c4e438ceca83ec618e /lldb/tools/debugserver | |
parent | c31a45e62a2a4212a9bb23a7de20d4023e333dac (diff) | |
download | bcm5719-llvm-c18740976e53e847892ffcbc5278c4c7789a1289.tar.gz bcm5719-llvm-c18740976e53e847892ffcbc5278c4c7789a1289.zip |
Mark private unimplemented functions as deleted
Applies modernize-use-equals-delete to the LLDB code base and removes
the now redundant comments.
llvm-svn: 360751
Diffstat (limited to 'lldb/tools/debugserver')
-rw-r--r-- | lldb/tools/debugserver/source/MacOSX/MachTask.h | 4 | ||||
-rw-r--r-- | lldb/tools/debugserver/source/PThreadEvent.h | 4 | ||||
-rw-r--r-- | lldb/tools/debugserver/source/PseudoTerminal.h | 5 | ||||
-rw-r--r-- | lldb/tools/debugserver/source/RNBContext.h | 5 | ||||
-rw-r--r-- | lldb/tools/debugserver/source/RNBRemote.h | 3 | ||||
-rw-r--r-- | lldb/tools/debugserver/source/RNBSocket.h | 3 |
6 files changed, 10 insertions, 14 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachTask.h b/lldb/tools/debugserver/source/MacOSX/MachTask.h index a933bffc8a0..c975e15a555 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachTask.h +++ b/lldb/tools/debugserver/source/MacOSX/MachTask.h @@ -102,8 +102,8 @@ protected: allocation_collection m_allocations; private: - MachTask(const MachTask &); // Outlaw - MachTask &operator=(const MachTask &rhs); // Outlaw + MachTask(const MachTask &) = delete; + MachTask &operator=(const MachTask &rhs) = delete; }; #endif // __MachTask_h__ diff --git a/lldb/tools/debugserver/source/PThreadEvent.h b/lldb/tools/debugserver/source/PThreadEvent.h index 5689cbfb9ca..f81798de5c7 100644 --- a/lldb/tools/debugserver/source/PThreadEvent.h +++ b/lldb/tools/debugserver/source/PThreadEvent.h @@ -54,8 +54,8 @@ protected: uint32_t m_reset_ack_mask; private: - PThreadEvent(const PThreadEvent &); // Outlaw copy constructor - PThreadEvent &operator=(const PThreadEvent &rhs); + PThreadEvent(const PThreadEvent &) = delete; + PThreadEvent &operator=(const PThreadEvent &rhs) = delete; }; #endif // #ifndef __PThreadEvent_h__ diff --git a/lldb/tools/debugserver/source/PseudoTerminal.h b/lldb/tools/debugserver/source/PseudoTerminal.h index e4093bd98e9..e3324c1c358 100644 --- a/lldb/tools/debugserver/source/PseudoTerminal.h +++ b/lldb/tools/debugserver/source/PseudoTerminal.h @@ -72,9 +72,8 @@ protected: int m_slave_fd; private: - // Outlaw copy and assignment constructors - PseudoTerminal(const PseudoTerminal &rhs); - PseudoTerminal &operator=(const PseudoTerminal &rhs); + PseudoTerminal(const PseudoTerminal &rhs) = delete; + PseudoTerminal &operator=(const PseudoTerminal &rhs) = delete; }; #endif // #ifndef __PseudoTerminal_h__ diff --git a/lldb/tools/debugserver/source/RNBContext.h b/lldb/tools/debugserver/source/RNBContext.h index 9159057329f..946dfb2eb10 100644 --- a/lldb/tools/debugserver/source/RNBContext.h +++ b/lldb/tools/debugserver/source/RNBContext.h @@ -149,9 +149,8 @@ protected: static void *ThreadFunctionProcessStatus(void *arg); private: - // Outlaw copy and assignment operators - RNBContext(const RNBContext &rhs); - RNBContext &operator=(const RNBContext &rhs); + RNBContext(const RNBContext &rhs) = delete; + RNBContext &operator=(const RNBContext &rhs) = delete; }; #endif // #ifndef __RNBContext_h__ diff --git a/lldb/tools/debugserver/source/RNBRemote.h b/lldb/tools/debugserver/source/RNBRemote.h index 1fb309bbc44..88d82091130 100644 --- a/lldb/tools/debugserver/source/RNBRemote.h +++ b/lldb/tools/debugserver/source/RNBRemote.h @@ -264,8 +264,7 @@ public: RNBSocket &Comm() { return m_comm; } private: - // Outlaw some constructors - RNBRemote(const RNBRemote &); + RNBRemote(const RNBRemote &) = delete; protected: rnb_err_t GetCommData(); diff --git a/lldb/tools/debugserver/source/RNBSocket.h b/lldb/tools/debugserver/source/RNBSocket.h index da6c6d88874..2f68eb00f37 100644 --- a/lldb/tools/debugserver/source/RNBSocket.h +++ b/lldb/tools/debugserver/source/RNBSocket.h @@ -59,8 +59,7 @@ public: int option_value); private: - // Outlaw some constructors - RNBSocket(const RNBSocket &); + RNBSocket(const RNBSocket &) = delete; protected: rnb_err_t ClosePort(int &fd, bool save_errno); |