summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2013-02-02 00:30:04 +0000
committerAnna Zaks <ganna@apple.com>2013-02-02 00:30:04 +0000
commit453cb859a3c8dcafe79ae840dfc35ff8eae1b4b3 (patch)
tree984e38c6799e9ed6ebfa8f4a72590c7719d8db56 /include
parenta5245a51593aa45c2a5ef38a10861697d29c7789 (diff)
downloadclang-453cb859a3c8dcafe79ae840dfc35ff8eae1b4b3.tar.gz
clang-453cb859a3c8dcafe79ae840dfc35ff8eae1b4b3.tar.bz2
clang-453cb859a3c8dcafe79ae840dfc35ff8eae1b4b3.tar.xz
[analyzer] Always inline functions with bodies generated by BodyFarm.
Inlining these functions is essential for correctness. We often have cases where we do not inline calls. For example, the shallow mode and when reanalyzing previously inlined ObjC methods as top level. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174245 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/clang/Analysis/AnalysisContext.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/clang/Analysis/AnalysisContext.h b/include/clang/Analysis/AnalysisContext.h
index 168fc003dc..062af1bad1 100644
--- a/include/clang/Analysis/AnalysisContext.h
+++ b/include/clang/Analysis/AnalysisContext.h
@@ -133,7 +133,21 @@ public:
void registerForcedBlockExpression(const Stmt *stmt);
const CFGBlock *getBlockForRegisteredExpression(const Stmt *stmt);
+ /// \brief Get the body of the Declaration.
Stmt *getBody() const;
+
+ /// \brief Get the body of the Declaration.
+ /// \param IsAutosynthesized Output parameter that specifies if the body is
+ /// auto-generated by the BodyFarm.
+ Stmt *getBody(bool &IsAutosynthesized) const;
+
+ /// \brief Checks if the body of the Decl is generated by the BodyFarm.
+ ///
+ /// Note, the lookup is not free. We are going to call getBody behind
+ /// the sceines.
+ /// \sa getBody
+ bool isBodyAutosynthesized() const;
+
CFG *getCFG();
CFGStmtMap *getCFGStmtMap();