[PATCH] Colored syntax highlighting for llvm-dwarfdump.
Adrian Prantl
aprantl at apple.com
Mon Jan 5 16:06:28 PST 2015
In http://reviews.llvm.org/D6852#105642, @echristo wrote:
> Definitely want it.
>
> Two things:
>
> a) Might want to make it an option?
With this implementation colorizing is depending on the terminal type: Invoking llvm-dwarfdump results in color output, whereas llvm-dwarfdump | less will be monochrome.
The frontend provides an -fdiagnostics-color option that is on by default. We could do something similar here; If we do this; it should override the terminal detection, such that llvm-dwarfdump --color | less produces color output no matter what.
> b) Formatting for the SyntaxHighlighting.h file.
>
> Is there any way we can piggy back more off the existing color support? (Not that this is complicated and I've not looked at it at all)
Is there more/better color support somewhere that we could re-use? I only looked at the AST dumper in clang so far, which just hardcodes the colors.
REPOSITORY
rL LLVM
http://reviews.llvm.org/D6852
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list