[Lldb-commits] [lldb] [lldb-dap] Reimplement `runInTerminal` with signals (PR #142374)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 2 05:32:32 PDT 2025
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
More information about the lldb-commits
mailing list