Author: David Sanders Date: 2020-11-02T08:38:20-05:00 New Revision: a07a2c88d96cc48d7d381a0300565090c24b9770
URL: https://github.com/llvm/llvm-project/commit/a07a2c88d96cc48d7d381a0300565090c24b9770 DIFF: https://github.com/llvm/llvm-project/commit/a07a2c88d96cc48d7d381a0300565090c24b9770.diff LOG: 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. Added: Modified: clang-tools-extra/clang-tidy/tool/run-clang-tidy.py Removed: ################################################################################ diff --git a/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py b/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py index 7e23419cd916..313ecd2f9571 100755 --- a/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py +++ b/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py @@ -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: _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits