[Lldb-commits] [lldb] [lldb-dap] Reuse source object logics (PR #141426)

via lldb-commits lldb-commits at lists.llvm.org
Thu May 29 15:00:53 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 h,cpp -- lldb/tools/lldb-dap/Protocol/ProtocolUtils.cpp lldb/tools/lldb-dap/Protocol/ProtocolUtils.h lldb/source/API/SBTarget.cpp lldb/source/Core/Module.cpp lldb/tools/lldb-dap/Breakpoint.cpp lldb/tools/lldb-dap/Handler/DisassembleRequestHandler.cpp lldb/tools/lldb-dap/Handler/LocationsRequestHandler.cpp lldb/tools/lldb-dap/Handler/StackTraceRequestHandler.cpp lldb/tools/lldb-dap/JSONUtils.cpp lldb/tools/lldb-dap/JSONUtils.h lldb/tools/lldb-dap/LLDBUtils.cpp lldb/tools/lldb-dap/LLDBUtils.h
``````````

</details>

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

``````````diff
diff --git a/lldb/tools/lldb-dap/LLDBUtils.cpp b/lldb/tools/lldb-dap/LLDBUtils.cpp
index bcd3308ff..3d3fc433a 100644
--- a/lldb/tools/lldb-dap/LLDBUtils.cpp
+++ b/lldb/tools/lldb-dap/LLDBUtils.cpp
@@ -254,8 +254,8 @@ std::string GetSBFileSpecPath(const lldb::SBFileSpec &file_spec) {
 
 lldb::SBLineEntry GetLineEntryForAddress(lldb::SBTarget &target,
                                          lldb::SBAddress &address) {
-  lldb::SBSymbolContext sc =
-      target.ResolveSymbolContextForAddress(address, lldb::eSymbolContextLineEntry);
+  lldb::SBSymbolContext sc = target.ResolveSymbolContextForAddress(
+      address, lldb::eSymbolContextLineEntry);
   return sc.GetLineEntry();
 }
 

``````````

</details>


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


More information about the lldb-commits mailing list