[PATCH] D79477: [clang-tidy] Add --use-color command line option and UseColor option to control colors in diagnostics
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun May 10 05:51:01 PDT 2020
njames93 added a comment.
In D79477#2027978 <https://reviews.llvm.org/D79477#2027978>, @hyd-dev wrote:
> None of the clang-tidy command line options are prefixed with `-f`.
> This command line option used to be `--color-diagnostics`, but I've followed @hokein's advice to change it to `--use-color`.
> If you mean to use the `-fcolor-diagnostics` option from `compile_commands.json`, clang-tidy and clang are two separate tools. The users may not want them to share the same setting, because they may invoke them in different environments.
Fair point, will this option also control the color of the diagnostics emitted by clang or just clang tidy specific diagnostics?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79477/new/
https://reviews.llvm.org/D79477
More information about the cfe-commits
mailing list