Hi, I found a false negative regarding the rule AccessMoved.
In the following program, cppcheck should have reported a AccessMoved warning at line 5 or 6 because static_cast<std::string&&>(s) is equivalent to std::move(s). However, actually it reported no warnings. So I believe this is a false negative.
Hi, I found a false negative regarding the rule AccessMoved.
In the following program, cppcheck should have reported a AccessMoved warning at line 5 or 6 because
static_cast<std::string&&>(s)is equivalent tostd::move(s). However, actually it reported no warnings. So I believe this is a false negative.Version: 2.19.0
Last edit: safans 4 days ago