]> granicus.if.org Git - clang/commitdiff
static analyzer: Rename 'BlocksAborted' to 'BlocksExhausted' to reflect that a given...
authorTed Kremenek <kremenek@apple.com>
Sat, 2 Apr 2011 02:56:17 +0000 (02:56 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 2 Apr 2011 02:56:17 +0000 (02:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128760 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h
lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp
lib/StaticAnalyzer/Checkers/IdempotentOperationChecker.cpp
lib/StaticAnalyzer/Core/CoreEngine.cpp

index 74cba32cd390de580262130df2f92c51fb18ddc4..a968385b3c88a751fdc6e802921c207c9de15438 100644 (file)
@@ -47,7 +47,7 @@ class CoreEngine {
 
 public:
   typedef std::vector<std::pair<BlockEdge, const ExplodedNode*> >
-            BlocksAborted;
+            BlocksExhausted;
 private:
 
   SubEngine& SubEng;
@@ -67,7 +67,7 @@ private:
 
   /// The locations where we stopped doing work because we visited a location
   ///  too many times.
-  BlocksAborted blocksAborted;
+  BlocksExhausted blocksExhausted;
 
   void generateNode(const ProgramPoint& Loc, const GRState* State,
                     ExplodedNode* Pred);
@@ -122,16 +122,16 @@ public:
                                        ExplodedNodeSet &Dst);
 
   // Functions for external checking of whether we have unfinished work
-  bool wasBlockAborted() const { return !blocksAborted.empty(); }
+  bool wasBlockAborted() const { return !blocksExhausted.empty(); }
   bool hasWorkRemaining() const { return wasBlockAborted() || WList->hasWork(); }
 
   WorkList *getWorkList() const { return WList; }
 
-  BlocksAborted::const_iterator blocks_aborted_begin() const {
-    return blocksAborted.begin();
+  BlocksExhausted::const_iterator blocks_aborted_begin() const {
+    return blocksExhausted.begin();
   }
-  BlocksAborted::const_iterator blocks_aborted_end() const {
-    return blocksAborted.end();
+  BlocksExhausted::const_iterator blocks_aborted_end() const {
+    return blocksExhausted.end();
   }
 };
 
index 99398cc26b1836e5d795245ee9715f4a47f734d5..07d56b5f6e9edf9f32cfb4e44dfb3e2931fb9111 100644 (file)
@@ -97,7 +97,7 @@ void AnalyzerStatsChecker::checkEndAnalysis(ExplodedGraph &G,
       D->getLocation());
 
   // Emit warning for each block we bailed out on
-  typedef CoreEngine::BlocksAborted::const_iterator AbortedIterator;
+  typedef CoreEngine::BlocksExhausted::const_iterator AbortedIterator;
   const CoreEngine &CE = Eng.getCoreEngine();
   for (AbortedIterator I = CE.blocks_aborted_begin(),
       E = CE.blocks_aborted_end(); I != E; ++I) {
index 8e4c6732c4aa37ff3ee3ea4d18e5d5b1ff6c48c3..6190b02379cace798242ddcdb04d16290a55c2b3 100644 (file)
@@ -534,7 +534,7 @@ IdempotentOperationChecker::pathWasCompletelyAnalyzed(AnalysisContext *AC,
   CFGReverseBlockReachabilityAnalysis *CRA = AC->getCFGReachablityAnalysis();
   
   // Test for reachability from any aborted blocks to this block
-  typedef CoreEngine::BlocksAborted::const_iterator AbortedIterator;
+  typedef CoreEngine::BlocksExhausted::const_iterator AbortedIterator;
   for (AbortedIterator I = CE.blocks_aborted_begin(),
       E = CE.blocks_aborted_end(); I != E; ++I) {
     const BlockEdge &BE =  I->first;
index 08a2068c0106184c34a01197b4a3fbde550ec4f9..73709e39d0d0b6b250f7f740bf278afb12ecff16 100644 (file)
@@ -310,7 +310,7 @@ void CoreEngine::HandleBlockEdge(const BlockEdge& L, ExplodedNode* Pred) {
   for (llvm::SmallVectorImpl<ExplodedNode*>::const_iterator
        I = nodeBuilder.sinks().begin(), E = nodeBuilder.sinks().end();
        I != E; ++I) {
-    blocksAborted.push_back(std::make_pair(L, *I));
+    blocksExhausted.push_back(std::make_pair(L, *I));
   }
 }