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
Bug 38187 is fixed by https://reviews.llvm.org/D113708, but the following example (where both the move and the use-after-move occur in the constructor's initializer list) still does not cause a bugprone-use-after-move warning:
#include
class UseAfterMoveInCtorInit {
public:
// FIXME: warn here
UseAfterMoveInCtorInit(std::string val) : s(std::move(val)), b(val.empty()) {
}