[clang-tools-extra] [clang-tidy] Add performance-move-smart-pointer-contents check. (PR #66139)

via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 14 10:48:05 PDT 2023


================
@@ -0,0 +1,23 @@
+.. title:: clang-tidy - performance-move-smart-pointer-contents
+
+performance-move-smart-pointer-contents
+=======================================
+
+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 use double back-ticks for language constructs. Same in other places.

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


More information about the cfe-commits mailing list