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 HEAD~1 HEAD --extensions cpp,h -- 
lldb/tools/lldb-dap/Handler/RequestHandler.cpp 
lldb/tools/lldb-dap/JSONUtils.cpp lldb/tools/lldb-dap/JSONUtils.h 
lldb/tools/lldb-dap/tool/lldb-dap.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/tools/lldb-dap/tool/lldb-dap.cpp 
b/lldb/tools/lldb-dap/tool/lldb-dap.cpp
index 78241afe0..0d1260ae4 100644
--- a/lldb/tools/lldb-dap/tool/lldb-dap.cpp
+++ b/lldb/tools/lldb-dap/tool/lldb-dap.cpp
@@ -410,12 +410,13 @@ int main(int argc, char *argv[]) {
   }
 
   if (llvm::opt::Arg *target_arg = input_args.getLastArg(OPT_launch_target)) {
-    if (llvm::opt::Arg *debugger_pid = 
input_args.getLastArg(OPT_debugger_pid)) {
+    if (llvm::opt::Arg *debugger_pid =
+            input_args.getLastArg(OPT_debugger_pid)) {
       lldb::pid_t pid = LLDB_INVALID_PROCESS_ID;
       llvm::StringRef debugger_pid_value = debugger_pid->getValue();
       if (debugger_pid_value.getAsInteger(10, pid)) {
         llvm::errs() << "'" << debugger_pid_value
-                    << "' is not a valid "
+                     << "' is not a valid "
                         "PID\n";
         return EXIT_FAILURE;
       }

``````````

</details>


https://github.com/llvm/llvm-project/pull/142374
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to