[Lldb-commits] [lldb] [lldb] Avoid unnecessary regex check in dwim-print (PR #114608)
Dave Lee via lldb-commits
lldb-commits at lists.llvm.org
Sat Nov 23 13:26:06 PST 2024
================
@@ -101,6 +101,10 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command,
// Add a hint if object description was requested, but no description
// function was implemented.
auto maybe_add_hint = [&](llvm::StringRef output) {
+ static bool note_shown = false;
+ if (note_shown)
+ return;
----------------
kastiglione wrote:
I don't see how call_once would work here. This lambda might be called once, or it might be called multiple times (even indefinitely).
https://github.com/llvm/llvm-project/pull/114608
More information about the lldb-commits
mailing list