[PATCH] D79477: [clang-tidy] Add --color-diagnostics option to control colors in diagnostics
hyd-dev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 6 04:16:17 PDT 2020
hyd-dev created this revision.
Herald added subscribers: cfe-commits, xazax.hun.
Herald added a project: clang.
hyd-dev edited projects, added clang-tools-extra; removed clang.
Herald added a project: clang.
hyd-dev removed a project: clang.
Herald added a project: clang.
This patch add `--color-diagnostics` to clang-tidy to control colors in diagnostics. With this option, users can force colorful output. This is useful when using clang-tidy with parallelization command line tools (like ninja and GNU parallel), as they often pipe clang-tidy's standard output, which make colors disappear.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D79477
Files:
clang-tools-extra/clang-tidy/ClangTidy.cpp
clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
clang-tools-extra/clang-tidy/ClangTidyOptions.h
clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
clang-tools-extra/test/clang-tidy/infrastructure/color-diagnostics.cpp
clang-tools-extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79477.262328.patch
Type: text/x-patch
Size: 6534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200506/00cb1a24/attachment-0001.bin>
More information about the cfe-commits
mailing list