HomePhabricator

[analyzer] Add MisusedMovedObjectChecker for detecting use-after-move errors.

Description

[analyzer] Add MisusedMovedObjectChecker for detecting use-after-move errors.

The checker currently warns on copying, moving, or calling methods on an object
that was recently std::move'd from. It understands a set of "state reset"
methods that bring a moved-from object back to a well-specified state.

Patch by Peter Szecsi!

Differential Revision: https://reviews.llvm.org/D24246

Details

Committed
NoQMar 24 2017, 2:52 AM
Differential Revision
D24246: StaticAnalyzer - MisusedMovedObjectChecker
Parents
rC298697: [libclang] Bury dead TemporaryFiles
Branches
Unknown
Tags
Unknown