dsanders11 created this revision. dsanders11 added a reviewer: alexfh. Herald added a project: clang. Herald added a subscriber: cfe-commits. dsanders11 requested review of this revision.
Now that D79477 <https://reviews.llvm.org/D79477> landed, it's a better user experience to use '--use-color' in run-clang-tidy.py and preserving the colored output. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D90110 Files: clang-tools-extra/clang-tidy/tool/run-clang-tidy.py Index: clang-tools-extra/clang-tidy/tool/run-clang-tidy.py =================================================================== --- clang-tools-extra/clang-tidy/tool/run-clang-tidy.py +++ clang-tools-extra/clang-tidy/tool/run-clang-tidy.py @@ -83,7 +83,7 @@ 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:
Index: clang-tools-extra/clang-tidy/tool/run-clang-tidy.py =================================================================== --- clang-tools-extra/clang-tidy/tool/run-clang-tidy.py +++ clang-tools-extra/clang-tidy/tool/run-clang-tidy.py @@ -83,7 +83,7 @@ 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