[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 01:54:34 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:
The tricky part here is how to handle things like function reference/CV qualifiers (do we have a dedicated variable for those too? are they part of the argument list?)
And how do we handle some of the more exotic function type syntax (e.g., functions returning function pointers).
https://github.com/llvm/llvm-project/pull/131836
More information about the llvm-commits
mailing list