[Lldb-commits] [lldb] [lldb] Fixing edge cases in "source list" (PR #126526)

via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 20 07:14:05 PST 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 d7784a649e80d346ba57ccc39f5e2a3e2f7e0a51 27d7bedee0de54abb9ec900c4d21eff6a8e7084a --extensions h,cpp -- lldb/include/lldb/Symbol/Function.h lldb/source/Commands/CommandObjectSource.cpp lldb/source/Symbol/Function.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/source/Symbol/Function.cpp b/lldb/source/Symbol/Function.cpp
index bcee29b8ad..c80f37ae68 100644
--- a/lldb/source/Symbol/Function.cpp
+++ b/lldb/source/Symbol/Function.cpp
@@ -336,7 +336,7 @@ Function::GetSourceInfo() {
     for (auto [idx, end] = line_table->GetLineEntryIndexRange(range); idx < end;
          ++idx) {
       LineEntry entry;
-        // Ignore entries belonging to inlined functions or #included files.
+      // Ignore entries belonging to inlined functions or #included files.
       if (line_table->GetLineEntryAtIndex(idx, entry) &&
           source_file_sp->Equal(*entry.file_sp,
                                 SupportFile::eEqualFileSpecAndChecksumIfSet))

``````````

</details>


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


More information about the lldb-commits mailing list