[clang-tools-extra] [clang-tidy]fix false positives of the result of std::move() is used as rvalue for performance-move-const-arg (PR #95633)
Danny Mösch via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 15 02:57:23 PDT 2024
================
@@ -387,6 +387,10 @@ Changes in existing checks
- Improved :doc:`modernize-use-using <clang-tidy/checks/modernize/use-using>`
check by adding support for detection of typedefs declared on function level.
+- Improved :doc:`performance-move-const-arg
+ <clang-tidy/checks/performance/move-const-arg>` check ignoring the result
+ of ``std::move()`` is used as rvalue.
----------------
SimplyDanny wrote:
```suggestion
- Improved :doc:`performance-move-const-arg
<clang-tidy/checks/performance/move-const-arg>` check by ignoring
``std::move()`` calls when their target is used as an rvalue.
```
https://github.com/llvm/llvm-project/pull/95633
More information about the cfe-commits
mailing list