diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-09-03 03:06:11 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-09-03 03:06:11 +0000 |
commit | 60dbad831a35ba0f58256b9bcd2a085af98ff2ec (patch) | |
tree | fe49ff6a7826e53607a455c7e779ba6ddeeb36a0 /lib/Analysis/CFRefCount.cpp | |
parent | 2307d312f779b204468ac36aab3b153e66a853c0 (diff) |
Store: (static analyzer)
- Change definition of store::Region and store::Binding (once again) to make
them real classes that just wrap pointers. This makes them more strictly
typed, and allows specific implementations of Regions/Bindings to just
subclass them.
- minor renamings to RegionExtent and its subclasses
- added a bunch of doxygen comments
StoreManager: (static analyzer)
- added 'iterBindings', an iteration method for iterating over the bindings of a
store. It that takes a callback object (acting like a poor man's closure).
- added 'getRVal' version for store::Binding. Will potentially phase the other
versions of GetRVal in StoreManager out.
- reimplemented 'getBindings' to be non-virtual and to use 'iterBindings'
BasicStoreManager: (static analyzer)
- implemented 'iterBindings' for BasicStoreManager
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55688 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 8ea8301134..25841cd8db 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -2308,7 +2308,7 @@ GetAllocationSite(GRStateManager* StateMgr, ExplodedNode<GRState>* N, // Find both first node that referred to the tracked symbol and the // memory location that value was store to. ExplodedNode<GRState>* Last = N; - store::Binding FirstBinding = 0; + store::Binding FirstBinding; while (N) { const GRState* St = N->getState(); @@ -2351,7 +2351,7 @@ PathDiagnosticPiece* CFRefReport::getEndPath(BugReporter& br, // symbol appeared, and also get the first VarDecl that tracked object // is stored to. ExplodedNode<GRState>* AllocNode = 0; - store::Binding FirstBinding = 0; + store::Binding FirstBinding; llvm::tie(AllocNode, FirstBinding) = GetAllocationSite(&BR.getStateManager(), EndN, Sym); |