]> granicus.if.org Git - clang/commitdiff
Added "EvalEndPath" to GRTransferFuncs: the default implementation does not
authorTed Kremenek <kremenek@apple.com>
Fri, 11 Apr 2008 22:07:59 +0000 (22:07 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 11 Apr 2008 22:07:59 +0000 (22:07 +0000)
change the state (and thus the GREndPathNodeBuilder automatically contructs a
node).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49563 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/GRExprEngine.h
include/clang/Analysis/PathSensitive/GRTransferFuncs.h

index 1c813dfd8999fb4408d1057c6646974ca94b68fe..fc83dcb189a110114a2062bd8f417127b0a72b7a 100644 (file)
@@ -367,7 +367,9 @@ public:
   
   /// ProcessEndPath - Called by GRCoreEngine.  Used to generate end-of-path
   ///  nodes when the control reaches the end of a function.
-  void ProcessEndPath(EndPathNodeBuilder& builder) {}
+  void ProcessEndPath(EndPathNodeBuilder& builder) {
+    TF->EvalEndPath(*this, builder);
+  }
   
   ValueStateManager& getStateManager() { return StateMgr; }
   const ValueStateManager& getStateManger() const { return StateMgr; }
index 9c68f20e746ae0c329db8c3721b9c5b4f06752d3..14d4c87676789bc76474d13eed479c810b2fcf9b 100644 (file)
@@ -65,6 +65,11 @@ public:
                         GRStmtNodeBuilder<ValueState>& Builder,
                         CallExpr* CE, LVal L,
                         ExplodedNode<ValueState>* Pred) = 0;
+  
+  // End-of-path.
+  
+  virtual void EvalEndPath(GRExprEngine& Engine,
+                           GREndPathNodeBuilder<ValueState>& Builder) {}
 };
   
 } // end clang namespace