[Lldb-commits] [lldb] Colorize output when searching for symbols in lldb (PR #69422)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 15 02:58:35 PST 2023
=?utf-8?q?José?= L. Junior <josejunior at 10xengineers.ai>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/69422 at github.com>
================
@@ -231,6 +231,18 @@ class Stream {
/// The string to be output to the stream.
size_t PutCString(llvm::StringRef cstr);
+ /// Output a C string to the stream with color highlighting.
+ ///
+ /// Print a C string \a text to the stream, applying color highlighting to
+ /// the specified \a pattern within the string.
+ ///
+ /// \param[in] text
+ /// The string to be output to the stream.
+ ///
+ /// \param[in] pattern
+ /// The portion of the \a text string to be colorized for highlighting.
----------------
DavidSpickett wrote:
It should be noted that this is:
* A regex pattern that is matched as many times as possible throughout the string.
* If it is nullptr, then no highlighting is done.
* The highlight colour is red.
https://github.com/llvm/llvm-project/pull/69422
More information about the lldb-commits
mailing list