[Lldb-commits] [PATCH] D81058: [lldb/Interpreter] Color "error:" and "warning:" in the CommandReturnObject output.

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 8 04:53:27 PDT 2020


labath added inline comments.


================
Comment at: lldb/source/Utility/Stream.cpp:178
 
+bool Stream::HasColors() const { return m_color_enabled; }
+
----------------
It looks like the only use for this function and the member variable is to initialize the ColorEnabled field of the raw_ostream forwarder. Can we delete this and pass the value via a constructor argument instead?

(I don't mind the method itself, just the fact that information on whether colors are "enabled" is stored in two places (`m_color_enabled`, `ColorEnabled`). The simplest way to fix that is to delete these things.)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81058/new/

https://reviews.llvm.org/D81058





More information about the lldb-commits mailing list