[Lldb-commits] [lldb] [lldb][breakpointoptions] Make disabled keyword red (PR #91404)
Chelsea Cassanova via lldb-commits
lldb-commits at lists.llvm.org
Tue May 7 15:25:11 PDT 2024
================
@@ -534,7 +534,8 @@ void BreakpointOptions::GetDescription(Stream *s,
if (m_ignore_count > 0)
s->Printf("ignore: %d ", m_ignore_count);
- s->Printf("%sabled ", m_enabled ? "en" : "dis");
+ s->PutCStringColorHighlighted(m_enabled ? "enabled " : "disabled ",
+ m_disbaled_breakpoint_highlight_settings);
----------------
chelcassanova wrote:
Ah, so using `Printf` with `ansi::FormatAnsiTerminalCodes` instead? And yes using this with `--no-use-colors` does show the colour here so it looks like this isn't being checked at the stream level.
https://github.com/llvm/llvm-project/pull/91404
More information about the lldb-commits
mailing list