[PATCH] D81056: [Support] Replace 'DisableColors' boolean with 'ColorMode' enum

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 2 23:25:40 PDT 2020


JDevlieghere created this revision.
JDevlieghere added reviewers: MaskRay, jdenny.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

Replace the `DisableColors` with a `ColorMode` which can be set to `Auto`, `Enabled` and `Disabled`. The purpose of this change is to make it possible to ignore `raw_ostream::has_colors()` not only for disabling colors, but also for enabling them.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81056

Files:
  llvm/include/llvm/Support/WithColor.h
  llvm/lib/Support/SourceMgr.cpp
  llvm/lib/Support/WithColor.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81056.268061.patch
Type: text/x-patch
Size: 5564 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200603/2cd53bdf/attachment.bin>


More information about the llvm-commits mailing list