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
The current check falsely tries to remove the std::move when the return value is a rvalue reference type.
An example:
structA {};
structB {
operator A&&() const {
static A a;
returnstd::move(a); // Clang-Tidy: Std::move of the variable 'a' of the trivially-copyable type 'A' has no effect; remove std::move()
}
};
The text was updated successfully, but these errors were encountered:
The current check falsely tries to remove the
std::move
when the return value is a rvalue reference type.An example:
The text was updated successfully, but these errors were encountered: