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

via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 20 09:26:21 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>


cor3ntin wrote:

> Interestingly, I found `GCC_COLORS`, which changes the colors for GCC diagnostics. I hope we support the same (https://stackoverflow.com/questions/26070873/how-to-set-gcc-colors-in-gcc4-9-to-emit-colorizing-diagnostics-messages), and could just extend it.

This is news to me, neat.
There is some documentation, maybe we could support it 
https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Message-Formatting-Options.html
(I am not sure how much it is an option on windows, the new windows terminal supports AINSI escape afaik but not everyone uses it)


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


More information about the cfe-commits mailing list