[Lldb-commits] [lldb] [lldb] Skip remote PutFile when MD5 hashes equal (PR #88812)

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 16 10:51:00 PDT 2024


================
@@ -684,6 +684,14 @@ Status PlatformRemoteGDBServer::RunShellCommand(
                                           signo_ptr, command_output, timeout);
 }
 
+bool PlatformRemoteGDBServer::CalculateMD5(const FileSpec &file_spec,
+                                           uint64_t &low, uint64_t &high) {
+  if (!IsConnected()) {
+    return false;
+  }
----------------
bulbazord wrote:

The LLVM coding standards suggest not having curly braces for 1 line bodies: https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements

https://github.com/llvm/llvm-project/pull/88812


More information about the lldb-commits mailing list