forked from OSchip/llvm-project
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:
parent
ca62b8673b
commit
a07a2c88d9
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue