[all-commits] [llvm/llvm-project] 550b59: [Support] Replace 'DisableColors' boolean with 'Co...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Mon Jun 8 09:49:08 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 550b5995233d6b087cddd65ff92507d7ed44f86e
      https://github.com/llvm/llvm-project/commit/550b5995233d6b087cddd65ff92507d7ed44f86e
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-06-08 (Mon, 08 Jun 2020)

  Changed paths:
    M llvm/include/llvm/Support/WithColor.h
    M llvm/lib/Support/SourceMgr.cpp
    M llvm/lib/Support/WithColor.cpp
    M llvm/unittests/Support/CMakeLists.txt
    A llvm/unittests/Support/WithColorTest.cpp

  Log Message:
  -----------
  [Support] Replace 'DisableColors' boolean with 'ColorMode' enum

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 the command line option not only for disabling colors, but
also for enabling them.

Differential revision: https://reviews.llvm.org/D81056




More information about the All-commits mailing list