[Lldb-commits] [lldb] [lldb] enhance colorize process for image lookup command (PR #76112)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 21 08:17:27 PST 2023


=?utf-8?q?José?= L. Junior <jljuniorpb at gmail.com>,
=?utf-8?q?José?= L. Junior <jljuniorpb at gmail.com>,
=?utf-8?q?José?= L. Junior <jljuniorpb at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/76112 at github.com>


================
@@ -1609,6 +1612,11 @@ static uint32_t LookupSymbolInModule(CommandInterpreter &interpreter,
   }
 
   if (num_matches > 0) {
+    llvm::StringRef ansi_prefix =
+        interpreter.GetDebugger().GetRegexMatchAnsiPrefix();
+    llvm::StringRef ansi_suffix =
+        interpreter.GetDebugger().GetRegexMatchAnsiSuffix();
+    Information info(name, ansi_prefix, ansi_suffix);
----------------
DavidSpickett wrote:

Construct this closer to the place of use, also inline the `GetRegex...` calls into it like `info(...GetRegexMatch...())`.

https://github.com/llvm/llvm-project/pull/76112


More information about the lldb-commits mailing list