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/Commands/CommandObjectProtocolServer.cpp 
lldb/source/Plugins/Protocol/MCP/ProtocolServerMCP.cpp
``````````

: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/Commands/CommandObjectProtocolServer.cpp 
b/lldb/source/Commands/CommandObjectProtocolServer.cpp
index ff9d38c84..1a950899e 100644
--- a/lldb/source/Commands/CommandObjectProtocolServer.cpp
+++ b/lldb/source/Commands/CommandObjectProtocolServer.cpp
@@ -164,10 +164,9 @@ protected:
       return;
     }
 
-    std::string address =
-        llvm::join(socket->GetListeningConnectionURI(), ", ");
-    result.AppendMessageWithFormatv(
-        "{0} server connection listeners: {1}", protocol, address);
+    std::string address = llvm::join(socket->GetListeningConnectionURI(), ", 
");
+    result.AppendMessageWithFormatv("{0} server connection listeners: {1}",
+                                    protocol, address);
     result.SetStatus(eReturnStatusSuccessFinishNoResult);
   }
 };
@@ -181,8 +180,8 @@ CommandObjectProtocolServer::CommandObjectProtocolServer(
                               interpreter)));
   LoadSubCommand("stop", CommandObjectSP(
                              new 
CommandObjectProtocolServerStop(interpreter)));
-  LoadSubCommand("get", CommandObjectSP(
-                            new CommandObjectProtocolServerGet(interpreter)));
+  LoadSubCommand(
+      "get", CommandObjectSP(new CommandObjectProtocolServerGet(interpreter)));
 }
 
 CommandObjectProtocolServer::~CommandObjectProtocolServer() = default;

``````````

</details>


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

Reply via email to