[Lldb-commits] [lldb] [lldb][NFC] Replace prefix/suffix variables with ColorSetting (PR #210671)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 20 07:00:46 PDT 2026
================
@@ -928,9 +928,8 @@ void Breakpoint::GetDescription(Stream *s, lldb::DescriptionLevel level,
const bool dim_breakpoint_description =
!IsEnabled() && s->AsRawOstream().colors_enabled();
if (dim_breakpoint_description)
- s->Printf("%s", ansi::FormatAnsiTerminalCodes(
- GetTarget().GetDebugger().GetDisabledAnsiPrefix())
- .c_str());
+ s->PutCString(ansi::FormatAnsiTerminalCodes(
+ GetTarget().GetDebugger().GetDisabledColor().GetPrefix()));
if (!m_kind_description.empty()) {
if (level == eDescriptionLevelBrief) {
----------------
DavidSpickett wrote:
I see it now. If we return here the suffix is not emitted.
https://github.com/llvm/llvm-project/pull/210671
More information about the lldb-commits
mailing list