[clang-tools-extra] [clang-tidy] Add check performance-lost-std-move (PR #139525)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 1 07:49:22 PDT 2025
================
@@ -136,6 +136,12 @@ New checks
Finds unintended character output from ``unsigned char`` and ``signed char``
to an ``ostream``.
+- New :doc:`performance-lost-std-move
+ <clang-tidy/checks/performance/lost-std-move>` check.
+
+ Warns if copy constructor is used instead of std::move() and suggests a fix.
----------------
EugeneZelenko wrote:
```suggestion
Warns if copy constructor is used instead of ``std::move()`` and suggests a fix.
```
https://github.com/llvm/llvm-project/pull/139525
More information about the cfe-commits
mailing list