[clang-tools-extra] [clang-tidy] Add flag to specify an alternative to std::move in cppcoreguidelines-rvalue-reference-param-not-moved (PR #138757)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 30 11:00:42 PDT 2025


================
@@ -79,6 +79,11 @@ Options
       T other = std::forward<T>(t);
     }
 
+.. option:: MoveFunction
+
+   Specify the function used for moving.
+   Default is `::std::move`.
----------------
EugeneZelenko wrote:

```suggestion
   Specify the function used for moving. Default is `::std::move`.
```

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


More information about the cfe-commits mailing list