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)
commitcfb53e49b6962f314d7a153d7d940d9aff291274
tree053246fe620352ed9204745fb6f0dbd75d14497d
parent81cfeb19997230fc8b4eefcfbf15b22ecf0b97e1
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.

llvm-svn: 232693
llvm/test/tools/llvm-cov/binary-formats.c
llvm/test/tools/llvm-cov/report.cpp
llvm/test/tools/llvm-cov/showLineExecutionCounts.cpp
llvm/test/tools/llvm-cov/showTemplateInstantiations.cpp
llvm/test/tools/llvm-cov/universal-binary.c
llvm/tools/llvm-cov/CodeCoverage.cpp