]> granicus.if.org Git - clang/commit
Added smart pointer class "IntrusiveSPtr" that handles reference
authorTed Kremenek <kremenek@apple.com>
Mon, 24 Sep 2007 06:10:20 +0000 (06:10 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 24 Sep 2007 06:10:20 +0000 (06:10 +0000)
commitd33218cd684ff38ad3e197f4128768906e72f0c5
tree7660301a578bfa09f59d6c966c8f0dc6d9728935
parentf37bb25120f2b9532443aaee03b7a909eb27af9a
Added smart pointer class "IntrusiveSPtr" that handles reference
counted objects that maintain their own internal reference count.
This smart pointer implementation is compatible with LLVM-style
down-casting (see in llvm: include/llvm/Support/Casting.h).

Implemented "RefCounted", a base class that objects that wish to be
managed using IntrusiveSPtrs can subclass.

Reference counted objects are being targeted for use in path-sensitive
dataflow analyses where managing many live objects becomes difficult.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42260 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/Support/IntrusiveSPtr.h [new file with mode: 0644]