Home | History | Annotate | Download | only in Checkers

Lines Matching defs:Moved

1 // MoveChecker.cpp - Check use of moved-from objects. - C++ ---------------===//
9 // This defines checker which checks for potential misuses of a moved-from
10 // object. That means method calls on the object or copying it in moved-from
32 enum Kind { Moved, Reported } K;
37 bool isMoved() const { return K == Moved; }
40 static RegionState getMoved() { return RegionState(Moved); }
88 // STL smart pointers are automatically re-initialized to null when moved
307 OS << " is reset to null when moved from";
318 OS << " is moved";
409 OS << "Method called on moved-from object";
413 OS << "Moved-from object";
418 OS << "Moved-from object";
420 OS << " is moved";
449 // Check if an object became moved-from.
450 // Object can become moved from after a call to move assignment operator or
485 // Mark object as moved-from.
608 // Check for copying a moved-from object and report the bug.
622 // Calling a destructor on a moved object is fine.
630 // The remaining part is check only for method call on a moved-from object.
738 Out << Sep << "Moved-from objects :" << NL;
742 Out << ": moved";
744 Out << ": moved and reported";