[PATCH] D94624: [PATCH] [clang-query] Add a --use-color option to clang-query to allow forcing the behavior

Tom Ritter via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 14 07:18:29 PST 2021


tomrittervg added a comment.

In D94624#2498244 <https://reviews.llvm.org/D94624#2498244>, @aaron.ballman wrote:

> In D94624#2498201 <https://reviews.llvm.org/D94624#2498201>, @tomrittervg wrote:
>
>> Actually, I think I need to be smarter than changing the default. We want to let clang auto-detect the tty and behave that way by default if the option isn't specified. Otherwise you'd get ASNI color codes when you pipe to a file.
>
> +1 to this, but also, you need to thread the option through to the diagnostics engine as well.

Let me fiddle with this, I think I have an idea of how to do that.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94624/new/

https://reviews.llvm.org/D94624



More information about the cfe-commits mailing list