[analyzer] Place all inlining policy checks into one palce
authorAnna Zaks <ganna@apple.com>
Fri, 22 Feb 2013 02:59:24 +0000 (02:59 +0000)
committerAnna Zaks <ganna@apple.com>
Fri, 22 Feb 2013 02:59:24 +0000 (02:59 +0000)
commit04e7ff43a19692f857a60da16b0102b8c38569ba
tree7972dcfed4c6b57df6837fc8beb558646a822e33
parentcd4218f5c14e6a3194c4726b06d9d68841f59083
[analyzer] Place all inlining policy checks into one palce

Previously, we had the decisions about inlining spread out
over multiple functions.

In addition to the refactor, this commit ensures
that we will always inline BodyFarm functions as long as the Decl
is available. This fixes false positives due to those functions
not being inlined when no or minimal inlining is enabled such (as
shallow mode).

llvm-svn: 175857
clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
clang/test/Analysis/NSString.m