[libcxxabi] [lldb] [llvm] [lldb] Add frame-format option to highlight function names in backtraces (PR #131836)
Pavel Labath via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 9 02:22:16 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)}
----------------
labath wrote:
Just parachuting here to say I like the idea of separate variables for parts of the function name. I like how it lets you completely omit (and not just avoid highlighting) a part of the name. The funny C return types are indeed a problem but maybe we could solve that by having two variables for the return type (the part that comes after the name and the part that comes before it).
https://github.com/llvm/llvm-project/pull/131836
More information about the llvm-commits
mailing list