You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[clang-tidy] Fix cppcoreguidelines-missing-std-forward false positive for deleted functions
A definition like this:
```cpp
template <typename T>
void f(T &&) = delete;
```
would previously generate the the following output:
```sh
<source>:2:12: warning: forwarding reference parameter '' is never forwarded inside the function body [cppcoreguidelines-missing-std-forward]
2 | void f(T &&) = delete;
| ^
1 warning generated.
```
[godbolt](https://godbolt.org/z/9d4Y9qeWW)
which is obviously not correct and this simple patch fixes that.
0 commit comments