github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. 
:warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp -- 
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp 
--diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp 
b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index 21da81d11..ab5572afc 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -243,13 +243,13 @@ 
GDBRemoteCommunication::WaitForPacketNoLock(StringExtractorGDBRemote &packet,
 
   // Check for a packet from our cache first without trying any reading...
   switch (CheckForPacket(nullptr, 0, packet)) {
-    case PacketType::Standard:
-      return PacketResult::Success;
-    case PacketType::Invalid:
-      break;
-    case PacketType::Notify:
-      // No notifications are currently supported so they should be ignored.
-      break;
+  case PacketType::Standard:
+    return PacketResult::Success;
+  case PacketType::Invalid:
+    break;
+  case PacketType::Notify:
+    // No notifications are currently supported so they should be ignored.
+    break;
   }
 
   bool timed_out = false;
@@ -266,13 +266,13 @@ 
GDBRemoteCommunication::WaitForPacketNoLock(StringExtractorGDBRemote &packet,
 
     if (bytes_read > 0) {
       switch (CheckForPacket(buffer, bytes_read, packet)) {
-        case PacketType::Standard:
-          return PacketResult::Success;
-        case PacketType::Invalid:
-          break;
-        case PacketType::Notify:
-          // No notifications are currently supported so they should be 
ignored.
-          break;
+      case PacketType::Standard:
+        return PacketResult::Success;
+      case PacketType::Invalid:
+        break;
+      case PacketType::Notify:
+        // No notifications are currently supported so they should be ignored.
+        break;
       }
     } else {
       switch (status) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/204788
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to