[all-commits] [llvm/llvm-project] a21498: [lldb] Move parts of OutputFormattedUsageText into...

David Spickett via All-commits all-commits at lists.llvm.org
Wed Feb 11 07:44:03 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a2149815ccbb466f8646ef14fc59185d652a45b8
      https://github.com/llvm/llvm-project/commit/a2149815ccbb466f8646ef14fc59185d652a45b8
  Author: David Spickett <david.spickett at arm.com>
  Date:   2026-02-11 (Wed, 11 Feb 2026)

  Changed paths:
    M lldb/include/lldb/Utility/AnsiTerminal.h
    M lldb/source/Interpreter/Options.cpp
    M lldb/unittests/Utility/AnsiTerminalTest.cpp

  Log Message:
  -----------
  [lldb] Move parts of OutputFormattedUsageText into utility function (#180947)

As seen in #177570, this code has a bunch of corner cases, does not
handle ANSI codes properly and does not handle unicode at all. That's
enough to fix that we need some tests to make it clear where we're
starting from.

The body of OutputFormattedUsageText is moved into a utility in the
AnsiTerminal.h header and tests added to the existing
AnsiTerminalTest.cpp.

Some results are known to be wrong. Some that cause crashes are
commented out, to be enabled once fixed.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list