[Lldb-commits] [PATCH] D54616: [Reproducers] Improve reproducer API and add unit tests.

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 27 12:07:50 PST 2018


labath added a comment.

I haven't been following the reproducer work in detail, but this seems reasonable to me. Thanks for incorporating my drive-by suggestions.



================
Comment at: include/lldb/Utility/Reproducer.h:104
+  template <typename T> T *Create() {
+    std::unique_ptr<ProviderBase> provider(new T(m_root));
+    return static_cast<T *>(Register(std::move(provider)));
----------------
You should still be able to use make_unique here.


================
Comment at: include/lldb/Utility/Reproducer.h:134
 
-  std::vector<std::unique_ptr<Provider>> m_providers;
+  /// List of providers indexed by their name for easy access.
+  llvm::DenseMap<const void *, std::unique_ptr<ProviderBase>> m_providers;
----------------
Out of date comment.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D54616/new/

https://reviews.llvm.org/D54616





More information about the lldb-commits mailing list