diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-11-13 06:53:04 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-11-13 06:53:04 +0000 |
commit | 9400613b54bf56c317786d778f58f45f1080d619 (patch) | |
tree | 73be9ba8104a559549dbe27bd2735b192edb77b2 /include/clang | |
parent | ccd373a1162803a7a11f877cbca5ad7b78e833a6 (diff) |
Check in a new interface of Checker, which will soon be used.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@87092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/Analysis/PathSensitive/Checker.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/clang/Analysis/PathSensitive/Checker.h b/include/clang/Analysis/PathSensitive/Checker.h index 37ae2e8ed4..26cfc8a520 100644 --- a/include/clang/Analysis/PathSensitive/Checker.h +++ b/include/clang/Analysis/PathSensitive/Checker.h @@ -153,6 +153,14 @@ private: VisitLocation(C, S, location); } + void GR_EvalDeadSymbols(ExplodedNodeSet &Dst, GRStmtNodeBuilder &Builder, + GRExprEngine &Eng, const Stmt *S, ExplodedNode *Pred, + SymbolReaper &SymReaper, void *tag) { + CheckerContext C(Dst, Builder, Eng, Pred, tag, + ProgramPoint::PostPurgeDeadSymbolsKind, Pred->getState()); + EvalDeadSymbols(C, S, SymReaper); + } + public: virtual ~Checker() {} virtual void _PreVisit(CheckerContext &C, const Stmt *S) {} @@ -160,6 +168,8 @@ public: virtual void VisitLocation(CheckerContext &C, const Stmt *S, SVal location) {} virtual void PreVisitBind(CheckerContext &C, const Stmt *AssignE, const Stmt *StoreE, SVal location, SVal val) {} + virtual void EvalDeadSymbols(CheckerContext &C, const Stmt *S, + SymbolReaper &SymReaper) {} }; } // end clang namespace |