HomePhabricator

[analyzer] MisusedMovedObjectChecker: More precise warning message

Authored by szepet on Oct 28 2017, 4:24 PM.

Description

[analyzer] MisusedMovedObjectChecker: More precise warning message

Added new enum in order to differentiate the warning messages on "misusing" into
3 categories: function calls, moving an object, copying an object. (At the
moment the checker gives the same message in case of copying and moving.)

Additional test cases added as well.

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

llvm-svn: 316852

Details