aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-07-23 17:42:15 +0000
committerGreg Clayton <gclayton@apple.com>2010-07-23 17:42:15 +0000
commitaaa58c66792615a137924b0ff90e708284140494 (patch)
tree6c202a3cf254dd8e0d52f98f9aaabd3cde4f16ce /lldb/source/Commands/CommandObjectExpression.cpp
parent896dff661aaf11824b52fef5fccdb23600dfa9fb (diff)
downloadllvm-aaa58c66792615a137924b0ff90e708284140494.zip
llvm-aaa58c66792615a137924b0ff90e708284140494.tar.gz
llvm-aaa58c66792615a137924b0ff90e708284140494.tar.bz2
Added a new utility class that I have wanted for a while. The CleanUp
class is a templatized class that allows you to have a cleanup function called on a data value of type T when the value is set or when the object goes out of scope. It has support for very rudimentary invalid value detection that can be enabled by using the appropriate constructor. Anyone with template experience that can see ways of improving this class please let me know. The example code shows a few typical scenarios in which I would like to use it. It is currently coded with simple type T values in mind (integer file descriptors, pointers, etc), but I am sure some specialization might help out the class for more complex types. There is a lot of documentation including examples in the CleanUp.h header file. llvm-svn: 109239
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
0 files changed, 0 insertions, 0 deletions