[libcxxabi] [lldb] [llvm] [lldb] Add frame-format option to highlight function names in backtraces (PR #131836)
Michael Buch via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 9 05:28:37 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:
Yea i think we can make that work. I got something working with the following:
```
settings set frame-format "${function.return-left}${function.scope}${function.basename}${function.template-arguments}${function.arguments}${function.return-right}${function.qualifiers}\n"
```
The concept of "left" vs. "right" parts of the return type already exists in the demangler when printing the name. So I borrowed that terminology.
If people are happy with this syntax I'll update this PR
https://github.com/llvm/llvm-project/pull/131836
More information about the llvm-commits
mailing list