[Openmp-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 Openmp-commits openmp-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
+Recommends avoiding moving out of a smart pointer when moving the pointer is
+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.


More information about the Openmp-commits mailing list