]> granicus.if.org Git - clang/commit
[analyzer] MisusedMovedObjectChecker: More precise warning message
authorPeter Szecsi <szepet95@gmail.com>
Sat, 28 Oct 2017 23:24:00 +0000 (23:24 +0000)
committerPeter Szecsi <szepet95@gmail.com>
Sat, 28 Oct 2017 23:24:00 +0000 (23:24 +0000)
commitb25397ba806743e5d82df01cd72d400a9485493b
treef454bcafd8c7eb5eadcb80cc0852a64af9322058
parenta3962bae3fc11604e07e1a7b8f232967b7b610df
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316852 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/MisusedMovedObjectChecker.cpp
test/Analysis/MisusedMovedObject.cpp