[PATCH] D90110: Use --use-color in run-clang-tidy.py

David Sanders via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 24 17:36:22 PDT 2020


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:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90110.300516.patch
Type: text/x-patch
Size: 651 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201025/eb75a554/attachment.bin>


More information about the cfe-commits mailing list