[PATCH] D79477: [clang-tidy] Add --color-diagnostics command line option and ColorDiagnostics option to control colors in diagnostics

hyd-dev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 6 21:01:32 PDT 2020


hyd-dev updated this revision to Diff 262537.
hyd-dev added a comment.

Rename `--color-diagnostics` and `ColorDiagnostics` to `--use-color` and `UseColor`.  Also, improve the comment of `UseColor` option and the help text of `--use-color`, and add `cl::init(false)` to `cl::opt<bool> UseColor`.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79477/new/

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.262537.patch
Type: text/x-patch
Size: 6019 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200507/8cd7146c/attachment.bin>


More information about the cfe-commits mailing list