-
Notifications
You must be signed in to change notification settings - Fork 11.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cppcoreguidelines-rvalue-reference-param-not-moved
not reported for templated method
#61420
Comments
@llvm/issue-subscribers-clang-tidy |
No issue here: Enforcement: Flag all X&& parameters (where X is not a template type parameter name) where the function body uses them without std::move.
Then you got problem, because |
There's already https://clang.llvm.org/extra/clang-tidy/checks/bugprone/move-forwarding-reference.html which is somewhat related. |
https://reviews.llvm.org/D146921 implements cppcoreguideline F.19, which flags when a forwarding reference is not forwarded with |
Already fixed by new check. |
I assume the new check is A reference to the commit fixing this would be great if closing the ticket. |
Your comment made it seem like it was different from the referenced review. My bad. |
https://godbolt.org/z/zddq9hz34
The text was updated successfully, but these errors were encountered: