[Lldb-commits] [lldb] [lldb] Use the terminal height for paging editline completions (PR #119914)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Dec 16 10:47:55 PST 2024
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 88bcf7283b35b979ace0c6be32736b13f6b771ae ae4e7a10d6f88e9c3d8fb7d47365c9f5b8ee2f2b --extensions h,cpp -- lldb/include/lldb/API/SBDebugger.h lldb/include/lldb/Core/Debugger.h lldb/include/lldb/Host/Editline.h lldb/source/API/SBDebugger.cpp lldb/source/Core/Debugger.cpp lldb/source/Host/common/Editline.cpp lldb/tools/driver/Driver.cpp lldb/tools/driver/Driver.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Host/common/Editline.cpp b/lldb/source/Host/common/Editline.cpp
index a18560fdd2..6e35b15d69 100644
--- a/lldb/source/Host/common/Editline.cpp
+++ b/lldb/source/Host/common/Editline.cpp
@@ -1047,10 +1047,10 @@ void Editline::DisplayCompletions(
size_t cur_pos = 0;
while (cur_pos < results.size()) {
- cur_pos += PrintCompletion(
- editline.m_output_file, results.slice(cur_pos), max_len,
- editline.GetTerminalWidth(),
- all ? std::nullopt : std::optional<size_t>(page_size));
+ cur_pos +=
+ PrintCompletion(editline.m_output_file, results.slice(cur_pos), max_len,
+ editline.GetTerminalWidth(),
+ all ? std::nullopt : std::optional<size_t>(page_size));
if (cur_pos >= results.size())
break;
``````````
</details>
https://github.com/llvm/llvm-project/pull/119914
More information about the lldb-commits
mailing list