[all-commits] [llvm/llvm-project] 901bc5: [NFC][lldb] Implement DiagnosticManager::Consume (...

Augusto Noronha via All-commits all-commits at lists.llvm.org
Tue Dec 5 12:26:23 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 901bc5129d1a1e8ad47801343d48dcd9e01ad386
      https://github.com/llvm/llvm-project/commit/901bc5129d1a1e8ad47801343d48dcd9e01ad386
  Author: Augusto Noronha <augusto2112 at me.com>
  Date:   2023-12-05 (Tue, 05 Dec 2023)

  Changed paths:
    M lldb/include/lldb/Expression/DiagnosticManager.h

  Log Message:
  -----------
  [NFC][lldb] Implement DiagnosticManager::Consume (#74011)

In some situations it may be useful to have a separate DiagnosticManager
instance, and then later of move the contents of that instance back to
the "main" DiagnosticManager. For example, when silently retrying some
operation with different parameters, depending on whether the retry
succeeded or failed, LLDB may want to present a different set of
diagnostics to the user (the ones generated on the first try vs the
retry). Implement DiagnosticManager::Consume to allow for this use case.




More information about the All-commits mailing list