r368131 introduced this new API to print out messages in colors.
If the colored output is disabled, operator<<(Colors) becomes nop.
No functionality change intended.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 36307 Build 36306: arc lint + arc unit
Event Timeline
clang/tools/diagtool/TreeView.cpp | ||
---|---|---|
167 | out.enable_colors(out.has_colors()); It looks the function hasColors is overengineered. out in these files can only be llvm::outs(). It doesn't have to check if llvm::errs() is connected to a terminal. |
clang/tools/diagtool/TreeView.cpp | ||
---|---|---|
167 | Done. Thanks. |
out.enable_colors(out.has_colors());
It looks the function hasColors is overengineered. out in these files can only be llvm::outs(). It doesn't have to check if llvm::errs() is connected to a terminal.