Use --use-color in run-clang-tidy.py

Now that clang-tidy supports the --use-color command line option, it's
a better user experience to use --use-color in run-clang-tidy.py and
preserving the colored output.
This commit is contained in:
David Sanders 2020-11-02 08:38:20 -05:00 committed by Aaron Ballman
parent ca62b8673b
commit a07a2c88d9
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ def get_tidy_invocation(f, clang_tidy_binary, checks, tmpdir, build_path,
header_filter, allow_enabling_alpha_checkers,
extra_arg, extra_arg_before, quiet, config):
"""Gets a command line for clang-tidy."""
start = [clang_tidy_binary]
start = [clang_tidy_binary, '--use-color']
if allow_enabling_alpha_checkers:
start.append('-allow-enabling-analyzer-alpha-checkers')
if header_filter is not None: