summaryrefslogtreecommitdiff
path: root/include/lldb/Host/Socket.h
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2015-08-18 09:06:31 +0000
committerPavel Labath <labath@google.com>2015-08-18 09:06:31 +0000
commitaa39ec6659833f6c8b4eafc5652c4c4410953e60 (patch)
tree46e2361b4e4e9447444e3e5a8c188d933691f675 /include/lldb/Host/Socket.h
parentf6899ab8d73cd1dcab56b8db715a4bbe3da90e4b (diff)
Fix Clang-tidy misc-use-override warnings in include/lldb/DataFormatters and include/lldb/Host, unify closing inclusion guards
patch by Eugene Zelenko. Differential Revision: http://reviews.llvm.org/D11729 git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@245279 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/lldb/Host/Socket.h')
-rw-r--r--include/lldb/Host/Socket.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/include/lldb/Host/Socket.h b/include/lldb/Host/Socket.h
index f4599b5ab..f9c50d6f7 100644
--- a/include/lldb/Host/Socket.h
+++ b/include/lldb/Host/Socket.h
@@ -51,7 +51,7 @@ public:
static const NativeSocket kInvalidSocketValue;
Socket(NativeSocket socket, SocketProtocol protocol, bool should_close);
- ~Socket();
+ ~Socket() override;
// Initialize a Tcp Socket object in listening mode. listen and accept are implemented
// separately because the caller may wish to manipulate or query the socket after it is
@@ -95,14 +95,14 @@ public:
NativeSocket GetNativeSocket () const { return m_socket; }
SocketProtocol GetSocketProtocol () const { return m_protocol; }
- virtual Error Read (void *buf, size_t &num_bytes);
- virtual Error Write (const void *buf, size_t &num_bytes);
+ Error Read (void *buf, size_t &num_bytes) override;
+ Error Write (const void *buf, size_t &num_bytes) override;
virtual Error PreDisconnect ();
- virtual Error Close ();
+ Error Close() override;
- virtual bool IsValid () const { return m_socket != kInvalidSocketValue; }
- virtual WaitableHandle GetWaitableHandle ();
+ bool IsValid () const override { return m_socket != kInvalidSocketValue; }
+ WaitableHandle GetWaitableHandle () override;
static bool
DecodeHostAndPort (llvm::StringRef host_and_port,
@@ -116,6 +116,7 @@ protected:
NativeSocket m_socket;
SocketAddress m_udp_send_sockaddr; // Send address used for UDP connections.
};
-}
-#endif
+} // namespace lldb_private
+
+#endif // liblldb_Host_Socket_h_