[clang-tools-extra] [clang-tidy] Add flag to specify an alternative to std::forward (PR #138755)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 30 10:58:39 PDT 2025


================
@@ -35,6 +35,14 @@ Example:
     f(1, 2); // Incorrect - may not invoke the desired qualified function operator
   }
 
+Options
+-------
+
+.. option:: ForwardFunction
+
+   Specify the function used for forwarding.
+   Default is `::std::forward`.
----------------
EugeneZelenko wrote:

```suggestion
   Specify the function used for forwarding. Default is `::std::forward`.
```

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


More information about the cfe-commits mailing list