SourceMgr: Colorize diagnostics.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 18 Apr 2012 19:04:15 +0000 (19:04 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 18 Apr 2012 19:04:15 +0000 (19:04 +0000)
commit89f33fdb774da54d2040ec6e5e2f4a4e4e3a25b0
treed6b49690e3fb1a1800b70eead5385081b3d0bb26
parenta5b0685142e8d3f5d9b6cf5aee270ebbd796c1ba
SourceMgr: Colorize diagnostics.

Same color scheme as clang uses. The colors are only enabled if the output is a tty.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155035 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/SourceMgr.h
lib/Support/SourceMgr.cpp