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 origin/main HEAD --extensions cpp,h --
lldb/include/lldb/Core/IOHandler.h lldb/include/lldb/Host/Editline.h
lldb/source/Core/IOHandler.cpp lldb/source/Host/common/Editline.cpp
--diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Core/IOHandler.cpp b/lldb/source/Core/IOHandler.cpp
index febfd9e42..0e78e971e 100644
--- a/lldb/source/Core/IOHandler.cpp
+++ b/lldb/source/Core/IOHandler.cpp
@@ -441,7 +441,7 @@ int IOHandlerEditline::FixIndentationCallback(Editline
*editline,
std::optional<std::string>
IOHandlerEditline::SuggestionCallback(llvm::StringRef line,
- std::string &description) {
+ std::string &description) {
// In tab-mode, we just display what tab would complete if the user
// would tab.
if (m_debugger.GetAutosuggestionMode() == eAutosuggestionTabMode) {
diff --git a/lldb/source/Host/common/Editline.cpp
b/lldb/source/Host/common/Editline.cpp
index 101701430..3e502be8a 100644
--- a/lldb/source/Host/common/Editline.cpp
+++ b/lldb/source/Host/common/Editline.cpp
@@ -1238,8 +1238,7 @@ unsigned char Editline::TypedCharacter(int ch) {
// the description up to its first newline so it stays on a single line.
std::string suggestion = to_add.value();
if (!description.empty())
- suggestion +=
- " (" + description.substr(0, description.find('\n')) + ")";
+ suggestion += " (" + description.substr(0, description.find('\n')) + ")";
int editline_cursor_position =
(int)((line_info->cursor - line_info->buffer) + GetPromptWidth());
``````````
</details>
https://github.com/llvm/llvm-project/pull/208677
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits