[Lldb-commits] [lldb] [lldb][NFC] Replace prefix/suffix variables with ColorSetting (PR #210671)
Felipe de Azevedo Piovezan via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 20 06:38:55 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) {
----------------
felipepiovezan wrote:
@DavidSpickett here is what I meant, expand the diff and there will be an early return
https://github.com/llvm/llvm-project/pull/210671
More information about the lldb-commits
mailing list