[Lldb-commits] [lldb] [lldb][windows] prevent IOHandlerProcessSTDIOWindows from consuming non text inputs (PR #175812)

via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 19 05:52:31 PST 2026


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 -- lldb/source/Plugins/Process/Windows/Common/ProcessWindows.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/Plugins/Process/Windows/Common/ProcessWindows.cpp b/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp
index 71dbb3d96..0cdb51cc5 100644
--- a/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp
+++ b/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp
@@ -1007,7 +1007,8 @@ public:
                 numRead == 0)
               goto exit_loop;
 
-            // We only care about text input. Consume all non text input events before letting ReadFile handle text input.
+            // We only care about text input. Consume all non text input events
+            // before letting ReadFile handle text input.
             if (inputRecord.EventType == KEY_EVENT &&
                 inputRecord.Event.KeyEvent.bKeyDown &&
                 inputRecord.Event.KeyEvent.uChar.AsciiChar != 0)

``````````

</details>


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


More information about the lldb-commits mailing list