summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-12-17 20:08:54 +0000
committerAnna Zaks <ganna@apple.com>2012-12-17 20:08:54 +0000
commitad3704c96a8b19cbc0188550d6a9b0bef44fcc27 (patch)
tree0173d99c0cae71165bf2cfb0ec2a84f59e9db851 /clang/lib/StaticAnalyzer
parentd53182b0dfcc7402bda7ef1589dc933c2b84f4df (diff)
downloadbcm5719-llvm-ad3704c96a8b19cbc0188550d6a9b0bef44fcc27.tar.gz
bcm5719-llvm-ad3704c96a8b19cbc0188550d6a9b0bef44fcc27.zip
[analyzer] Tweak the NumFunctionsAnalyzed stat so that it's more useful.
llvm-svn: 170362
Diffstat (limited to 'clang/lib/StaticAnalyzer')
-rw-r--r--clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp b/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
index a531f6df3f4..6133e168c42 100644
--- a/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
+++ b/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
@@ -53,9 +53,10 @@ static ExplodedNode::Auditor* CreateUbiViz();
STATISTIC(NumFunctionTopLevel, "The # of functions at top level.");
STATISTIC(NumFunctionsAnalyzed,
- "The # of functions and blocks analyzed (as top level).");
+ "The # of functions and blocks analyzed (as top level "
+ "with inlining turned on).");
STATISTIC(NumBlocksInAnalyzedFunctions,
- "The # of basic blocks in the analyzed functions.");
+ "The # of basic blocks in the analyzed functions.");
STATISTIC(PercentReachableBlocks, "The % of reachable basic blocks.");
STATISTIC(MaxCFGSize, "The maximum number of basic blocks in a function.");
@@ -617,7 +618,8 @@ void AnalysisConsumer::HandleCode(Decl *D, AnalysisMode Mode,
checkerMgr->runCheckersOnASTBody(*WI, *Mgr, BR);
if ((Mode & AM_Path) && checkerMgr->hasPathSensitiveCheckers()) {
RunPathSensitiveChecks(*WI, IMode, VisitedCallees);
- NumFunctionsAnalyzed++;
+ if (IMode != ExprEngine::Inline_None)
+ NumFunctionsAnalyzed++;
}
}
}
OpenPOWER on IntegriCloud