[Lldb-commits] [lldb] 4d40d66 - Fix up a clang-tidy nit about using empty rather than size == 0.

Eric Christopher via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 27 15:23:19 PDT 2020


Author: Eric Christopher
Date: 2020-04-27T15:22:44-07:00
New Revision: 4d40d6640238a8d304c39603a4938de85301fcba

URL: https://github.com/llvm/llvm-project/commit/4d40d6640238a8d304c39603a4938de85301fcba
DIFF: https://github.com/llvm/llvm-project/commit/4d40d6640238a8d304c39603a4938de85301fcba.diff

LOG: Fix up a clang-tidy nit about using empty rather than size == 0.

Added: 
    

Modified: 
    lldb/source/Host/common/TCPSocket.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Host/common/TCPSocket.cpp b/lldb/source/Host/common/TCPSocket.cpp
index d6f6b2cd30a7..047cb0e4c2bf 100644
--- a/lldb/source/Host/common/TCPSocket.cpp
+++ b/lldb/source/Host/common/TCPSocket.cpp
@@ -238,7 +238,7 @@ Status TCPSocket::Listen(llvm::StringRef name, int backlog) {
     m_listen_sockets[fd] = address;
   }
 
-  if (m_listen_sockets.size() == 0) {
+  if (m_listen_sockets.empty()) {
     assert(error.Fail());
     return error;
   }


        


More information about the lldb-commits mailing list