llvm-cov: Only emit colour by default if the output is a tty
authorJustin Bogner <mail@justinbogner.com>
Thu, 19 Mar 2015 00:02:23 +0000 (00:02 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 19 Mar 2015 00:02:23 +0000 (00:02 +0000)
commitcc690d62e3813d1bf6eb23cc350a52d23991f633
tree2bcbc9c3c79fde7697c32cb6f4cd942591a47f1c
parentc3fc12d59612af2272d9b1d20dc1ae802a331253
llvm-cov: Only emit colour by default if the output is a tty

This replaces the -no-color flag with a -color={auto|always|never}
option, with auto as the default, which is much saner.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232693 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-cov/binary-formats.c
test/tools/llvm-cov/report.cpp
test/tools/llvm-cov/showLineExecutionCounts.cpp
test/tools/llvm-cov/showTemplateInstantiations.cpp
test/tools/llvm-cov/universal-binary.c
tools/llvm-cov/CodeCoverage.cpp