[clang-tools-extra] [clang-tidy] Add check performance-lost-std-move (PR #139525)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 20 07:01:34 PDT 2025
================
@@ -203,6 +203,11 @@ New checks
Finds virtual function overrides with different visibility than the function
in the base class.
+- 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