diff options
| author | Pete Lawrence <plawrence@apple.com> | 2024-01-10 08:13:14 -1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-10 10:13:14 -0800 |
| commit | cd7eaaa6db0dc9a00a097ba8e6ebad6fb2dec56a (patch) | |
| tree | bab70c8097ca0401a971b1f710fa27a9278b533c /lldb/source/Utility/StreamString.cpp | |
| parent | f502b981b471c04bef1b2a6c581c02b59f931163 (diff) | |
[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
Diffstat (limited to 'lldb/source/Utility/StreamString.cpp')
| -rw-r--r-- | lldb/source/Utility/StreamString.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Utility/StreamString.cpp b/lldb/source/Utility/StreamString.cpp index 745a85b75765..0d35ccbdbbd0 100644 --- a/lldb/source/Utility/StreamString.cpp +++ b/lldb/source/Utility/StreamString.cpp @@ -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) |
