llvm-project
a9cef141 - [clang-tidy] Fix some false positive in bugprone-move-forwarding-reference (#191435)

Commit
3 days ago
[clang-tidy] Fix some false positive in bugprone-move-forwarding-reference (#191435) In the following case: template <typename T, typename U> void shocase(U&& SomeU) { [SomeU] () { T SomeT(std::move(SomeU)); }; } We use to flag the move as a forward, while the lambda captures SomeU by copy, which makes the move valid.
Parents
Loading