JDevlieghere added a comment. In D131900#3724366 <https://reviews.llvm.org/D131900#3724366>, @fixathon wrote:
> I am going to clean up the code in the entire file where **raw pointers** > should be **shared_ptr** (because they get cast to shared_ptr anyways). Also > planning to convert the **naked new** and the 2-step **shared_ptr** creation > to **make_shared<>** ; the former is less-safe for potential leaks, and the > latter is strictly better. > > @JDevlieghere Yes, some of these planned raw pointer changes could be > **unique_ptr**, but these types are already typedef-ed in StructuredData.h as > **shared_ptr** and I'd like to preserve the style in the absence of specific > know performance issues in this code. Yup, any smart pointer works for me π ================ Comment at: lldb/source/Plugins/InstrumentationRuntime/TSan/InstrumentationRuntimeTSan.cpp:38 +using std::make_shared; + ---------------- We don't do this anywhere in LLVM, and the coding guidelines explicitly state that "we prefer to explicitly prefix all identifiers from the standard namespace with an βstd::β prefix". [1] This isn't exactly the same as `using namespace std` but I would argue the sentiment still holds. [1] https://llvm.org/docs/CodingStandards.html#do-not-use-using-namespace-std Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131900/new/ https://reviews.llvm.org/D131900 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits