[libcxxabi] [lldb] [llvm] [lldb] Add frame-format option to highlight function names in backtraces (PR #131836)
Felipe de Azevedo Piovezan via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 8 08:10:18 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)}
----------------
felipepiovezan wrote:
I personally would love to have my custom specifier be just `function.basename` (and sometimes arguments), so having more modular pieces would make sense for me.
Also worth mentioning that the fallback could written as part of the specifier itself, using scopes
https://github.com/llvm/llvm-project/pull/131836
More information about the llvm-commits
mailing list