|
@@ -13,6 +13,7 @@
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
#include "clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h"
|
|
|
+#include "clang/StaticAnalyzer/Core/PathSensitive/ObjCMessage.h"
|
|
|
#include "clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h"
|
|
|
#include "clang/AST/Stmt.h"
|
|
|
#include "clang/AST/ParentMap.h"
|
|
@@ -114,7 +115,7 @@ bool ExplodedGraph::shouldCollect(const ExplodedNode *node) {
|
|
|
// Condition 9.
|
|
|
const ProgramPoint SuccLoc = succ->getLocation();
|
|
|
if (const StmtPoint *SP = dyn_cast<StmtPoint>(&SuccLoc))
|
|
|
- if (isa<CallExpr>(SP->getStmt()))
|
|
|
+ if (CallOrObjCMessage::canBeInlined(SP->getStmt()))
|
|
|
return false;
|
|
|
|
|
|
return true;
|