diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-06-09 10:21:09 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-06-09 10:45:45 -0700 |
commit | de019b88dd5804ec996fe8c12cddcc6feb13afa1 (patch) | |
tree | a21779363a65262f657354b00eef1e7be681555c /lldb/source/Interpreter/CommandObject.cpp | |
parent | 1f48f8f6e289d3ae14d28ad9bd000ef5ba209fc0 (diff) | |
download | llvm-de019b88dd5804ec996fe8c12cddcc6feb13afa1.zip llvm-de019b88dd5804ec996fe8c12cddcc6feb13afa1.tar.gz llvm-de019b88dd5804ec996fe8c12cddcc6feb13afa1.tar.bz2 |
[lldb/Interpreter] Support color in CommandReturnObject
Color the error: and warning: part of the CommandReturnObject output,
similar to how an error is printed from the driver when colors are
enabled.
Differential revision: https://reviews.llvm.org/D81058
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp index 4cadaa3..dfae7be 100644 --- a/lldb/source/Interpreter/CommandObject.cpp +++ b/lldb/source/Interpreter/CommandObject.cpp @@ -282,7 +282,7 @@ void CommandObject::HandleCompletion(CompletionRequest &request) { } else { // Can we do anything generic with the options? Options *cur_options = GetOptions(); - CommandReturnObject result; + CommandReturnObject result(m_interpreter.GetDebugger().GetUseColor()); OptionElementVector opt_element_vector; if (cur_options != nullptr) { |