[Lldb-commits] [lldb] [lldb] refactor highlighting function for image lookup command (PR #76112)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 19 03:44:46 PST 2024
================
@@ -262,14 +263,12 @@ void Symbol::GetDescription(Stream *s, lldb::DescriptionLevel level,
}
if (ConstString demangled = m_mangled.GetDemangledName()) {
s->PutCString(", name=\"");
- s->PutCStringColorHighlighted(demangled.GetStringRef(), pattern,
- ansi_prefix, ansi_suffix);
+ s->PutCStringColorHighlighted(demangled.GetStringRef(), pattern_info);
s->PutCString("\"");
}
if (ConstString mangled_name = m_mangled.GetMangledName()) {
s->PutCString(", mangled=\"");
- s->PutCStringColorHighlighted(mangled_name.GetStringRef(), pattern,
- ansi_prefix, ansi_suffix);
+ s->PutCStringColorHighlighted(mangled_name.GetStringRef(), pattern_info);
----------------
DavidSpickett wrote:
`highlight_settings`, given that you could use any ANSII sequence. I'm sure you could turn the text upside down if you really wanted to :)
https://github.com/llvm/llvm-project/pull/76112
More information about the lldb-commits
mailing list