]> granicus.if.org Git - clang/commit
[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)
commita8d937e4bdd39cdf503f77454e9dc4c9c730a9f7
tree65ee038158a5c39ef1ccdab25ba148327bc3d5fa
parent6aa240c03dd68ab413106d6af7a18af1c9b4e872
[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>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177220 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
test/Analysis/ctor-inlining.mm