[Lldb-commits] [libcxxabi] [lldb] [llvm] [lldb] Add frame-format option to highlight function names in backtraces (PR #131836)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 10 03:48:15 PDT 2025


================
@@ -2074,6 +2076,64 @@ static const Definition *FindEntry(const llvm::StringRef &format_str,
   return parent;
 }
 
+/// Parses a single highlighting format specifier.
+///
+/// Example syntax for such specifier:
+/// \code
+/// ${function.name-with-args:%highlight_basename(ansi.fg.green)}
----------------
Michael137 wrote:

Oh looks like we already have a `${function.name}`, which just displays the raw demangled name (keeping the arguments not pretty-printed). Maybe we can hijack it

https://github.com/llvm/llvm-project/pull/131836


More information about the lldb-commits mailing list