r368131 - Re-submit r367649: Improve raw_ostream so that you can "write" colors using operator<<
Rui Ueyama via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 7 01:08:18 PDT 2019
Author: ruiu
Date: Wed Aug 7 01:08:17 2019
New Revision: 368131
URL: http://llvm.org/viewvc/llvm-project?rev=368131&view=rev
Log:
Re-submit r367649: Improve raw_ostream so that you can "write" colors using operator<<
The original patch broke buildbots, perhaps because it changed the
default setting whether colors are enabled or not.
Modified:
cfe/trunk/tools/diagtool/TreeView.cpp
Modified: cfe/trunk/tools/diagtool/TreeView.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/diagtool/TreeView.cpp?rev=368131&r1=368130&r2=368131&view=diff
==============================================================================
--- cfe/trunk/tools/diagtool/TreeView.cpp (original)
+++ cfe/trunk/tools/diagtool/TreeView.cpp Wed Aug 7 01:08:17 2019
@@ -37,7 +37,8 @@ public:
void setColor(llvm::raw_ostream::Colors Color) {
if (ShowColors)
- out << llvm::sys::Process::OutputColor(Color, false, false);
+ out << llvm::sys::Process::OutputColor(static_cast<char>(Color), false,
+ false);
}
void resetColor() {
More information about the cfe-commits
mailing list