[Lldb-commits] [lldb] fallback to assembly when source code is not available (PR #136494)

via lldb-commits lldb-commits at lists.llvm.org
Sun Apr 20 09:05:46 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 -- lldb/tools/lldb-dap/JSONUtils.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/tools/lldb-dap/JSONUtils.cpp b/lldb/tools/lldb-dap/JSONUtils.cpp
index 5b647950c..1a44df774 100644
--- a/lldb/tools/lldb-dap/JSONUtils.cpp
+++ b/lldb/tools/lldb-dap/JSONUtils.cpp
@@ -753,8 +753,7 @@ llvm::json::Value CreateStackFrame(lldb::SBFrame &frame,
   auto file_spec = line_entry.GetFileSpec();
   // A line entry of 0 indicates the line is compiler generated i.e. no source
   // file is associated with the frame.
-  if (file_spec.IsValid() &&
-      file_spec.Exists() &&
+  if (file_spec.IsValid() && file_spec.Exists() &&
       (line_entry.GetLine() != 0 ||
        line_entry.GetLine() != LLDB_INVALID_LINE_NUMBER)) {
     object.try_emplace("source", CreateSource(line_entry));

``````````

</details>


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


More information about the lldb-commits mailing list