[analyzer] Follow up to r167762 - precisely determine the adjustment
authorAnna Zaks <ganna@apple.com>
Mon, 12 Nov 2012 23:40:29 +0000 (23:40 +0000)
committerAnna Zaks <ganna@apple.com>
Mon, 12 Nov 2012 23:40:29 +0000 (23:40 +0000)
commit6ec9c3cbc1b598aabf6debbfcae5f9fe5dab53ec
treeebf9f2c1817deb7e34ea960ad7e429cf7a59cd95
parent11d1959ff21b47373696bfa9a574eb64b5545507
[analyzer] Follow up to r167762 - precisely determine the adjustment
conditions.

The adjustment is needed only in case of dynamic dispatch performed by
the analyzer - when the runtime declaration is different from the static
one.

Document this explicitly in the code (by adding a helper). Also, use
canonical Decls to avoid matching against the case where the definition
is different from found declaration.

This fix suppresses the testcase I added in r167762, so add another
testcase to make sure we do test commit r167762.

llvm-svn: 167780
clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
clang/test/Analysis/inlining/InlineObjCInstanceMethod.m