[all-commits] [llvm/llvm-project] d915d4: Use ANSI escape codes for --use-color on Windows

David Sanders via All-commits all-commits at lists.llvm.org
Sat Oct 31 07:37:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d915d403d7410b17e8ac52f1f435859713a7b354
      https://github.com/llvm/llvm-project/commit/d915d403d7410b17e8ac52f1f435859713a7b354
  Author: David Sanders <dsanders11 at ucsbalum.com>
  Date:   2020-10-31 (Sat, 31 Oct 2020)

  Changed paths:
    M clang-tools-extra/clang-tidy/ClangTidy.cpp
    M clang-tools-extra/test/clang-tidy/infrastructure/use-color.cpp

  Log Message:
  -----------
  Use ANSI escape codes for --use-color on Windows

On Windows the --use-color option cannot be used for its originally
intended purpose of forcing color when piping stdout, since Windows
does not use ANSI escape codes by default. This change turns on ANSI
escape codes on Windows when forcing color to a non-displayed stdout
(e.g. piped).




More information about the All-commits mailing list