[Lldb-commits] [lldb] [lldb][breakpointoptions] Make disabled keyword red (PR #91404)
Chelsea Cassanova via lldb-commits
lldb-commits at lists.llvm.org
Wed May 8 12:43:20 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:
I was speaking to Ismail about this and seems like it would be nice if we had a `Stream::GetUseColor` for this given that you can set whether or not the stream has colours at construction but you can't query the state of it after that.
https://github.com/llvm/llvm-project/pull/91404
More information about the lldb-commits
mailing list