Added a way to open the current source file & line in an external editor, and you can turn this on with:
lldb -e
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@112502 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Host/macosx/cfcpp/CFCReleaser.h b/source/Host/macosx/cfcpp/CFCReleaser.h
index cd35de6..2aa1350 100644
--- a/source/Host/macosx/cfcpp/CFCReleaser.h
+++ b/source/Host/macosx/cfcpp/CFCReleaser.h
@@ -96,11 +96,14 @@
// assertion fires, check the offending code, or call
// reset() prior to using the "ptr_address()" member to make
// sure any owned objects has CFRelease called on it.
+ // I had to add the "enforce_null" bool here because some
+ // API's require the pointer address even though they don't change it.
//----------------------------------------------------------
T*
- ptr_address()
+ ptr_address(bool enforce_null = true)
{
- assert (_ptr == NULL);
+ if (enforce_null)
+ assert (_ptr == NULL);
return &_ptr;
}