[Lldb-commits] [lldb] [lldb] Avoid unnecessary regex check in dwim-print (PR #114608)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 1 15:55:56 PDT 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;
----------------
adrian-prantl wrote:
If we already landed on only once per session I'm fine with that too.
You can also manually allocate a std::once and pass it to the Debugger-wide function. Or just do the call_once here.
https://github.com/llvm/llvm-project/pull/114608
More information about the lldb-commits
mailing list