[Lldb-commits] [llvm] [clang-tools-extra] [mlir] [lldb] [clang] [libcxx] [compiler-rt] [flang] [libc] [openmp] [clang-tidy] Add performance-move-smart-pointer-contents check. (PR #66139)

via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 7 11:12:02 PST 2023


================
@@ -0,0 +1,21 @@
+.. title:: clang-tidy - performance-move-smart-pointer-contents
+
+performance-move-smart-pointer-contents
+=======================================
+
+Recommends avoiding moving out of a smart pointer when moving the pointer is
+cheaper.
+
+Given a smart pointer containing a movable type, such as a
+``std::unique_ptr<SomeProtocolBuffer>``, it's possible to move the contents of the
----------------
EugeneZelenko wrote:

Please follow 80 characters limit. Same below.

https://github.com/llvm/llvm-project/pull/66139


More information about the lldb-commits mailing list