=?utf-8?q?Jos=C3=A9?= L. Junior <[email protected]>,taalhaataahir0102
 <[email protected]>,taalhaataahir0102 
<[email protected]>,taalhaataahir0102
 <[email protected]>,taalhaataahir0102 <[email protected]>,
=?utf-8?q?Jos=C3=A9?= L. Junior <[email protected]>,
=?utf-8?q?Jos=C3=A9?= L. Junior <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>


================
@@ -70,6 +72,32 @@ size_t Stream::PutCString(llvm::StringRef str) {
   return bytes_written;
 }
 
+void Stream::PutCStringColorHighlighted(llvm::StringRef text,
+                                        llvm::StringRef pattern,
+                                        llvm::StringRef prefix,
+                                        llvm::StringRef suffix) {
+  // If there is no pattern to match, we should not use color
+  if (pattern.empty()) {
+    PutCString(text);
+    return;
+  }
----------------
JDevlieghere wrote:

If the prefix and suffix are empty, we can also take this shortcut, right? 

https://github.com/llvm/llvm-project/pull/69422
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to