[lldb] Add color support to StreamString (#77380)

This change just adds a `bool colors` parameter to the `StreamString`
class's constructor, which it passes up to its superclass’s constructor.

I'm working on another patch that prints out error messages using a
`StreamString` but I wasn't getting colorized text because of this
missing implementation detail.

rdar://120671168
This commit is contained in:
Pete Lawrence
2024-01-10 08:13:14 -10:00
committed by GitHub
parent f502b981b4
commit cd7eaaa6db
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ namespace lldb_private {
class StreamString : public Stream {
public:
StreamString();
StreamString(bool colors = false);
StreamString(uint32_t flags, uint32_t addr_size, lldb::ByteOrder byte_order);

View File

@@ -11,7 +11,7 @@
using namespace lldb;
using namespace lldb_private;
StreamString::StreamString() : Stream(0, 4, eByteOrderBig) {}
StreamString::StreamString(bool colors) : Stream(0, 4, eByteOrderBig, colors) {}
StreamString::StreamString(uint32_t flags, uint32_t addr_size,
ByteOrder byte_order)