[analyzer] Model trivial copy/move assignment operators with a bind as well.
authorJordan Rose <jordan_rose@apple.com>
Sat, 16 Mar 2013 02:14:06 +0000 (02:14 +0000)
committerJordan Rose <jordan_rose@apple.com>
Sat, 16 Mar 2013 02:14:06 +0000 (02:14 +0000)
commit3d7b7f526806db95753e6b3377425c5065a54899
tree4f40305e8ec0688606b6bdecbb405297475bc17c
parent9f71ad4fa8b2591fc6b36385263f02ae4184e646
[analyzer] Model trivial copy/move assignment operators with a bind as well.

r175234 allowed the analyzer to model trivial copy/move constructors as
an aggregate bind. This commit extends that to trivial assignment
operators as well. Like the last commit, one of the motivating factors here
is not warning when the right-hand object is partially-initialized, which
can have legitimate uses.

<rdar://problem/13405162>

llvm-svn: 177220
clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
clang/test/Analysis/ctor-inlining.mm