[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 20 09:00:07 PDT 2023


Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm/llvm-project/pull/66514/clang at github.com>


tbaederr wrote:

All I know about colors in terminals is that it's a huge clusterfuck and we can only rely on a few colors without being incompatible with _some_ terminal types, etc. If you e.g. check https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit, `llvm::raw_ostream` only has predefined colors for 0-7, `llvm::sys::Process::OutputColor()` can give us more colors IIUC. I'm just not sure why it takes a `char`.

https://github.com/llvm/llvm-project/pull/66514


More information about the cfe-commits mailing list