eliminate one form of PythonObject::Reset()
authorLawrence D'Anna <lawrence_danna@apple.com>
Thu, 17 Oct 2019 22:22:09 +0000 (22:22 +0000)
committerLawrence D'Anna <lawrence_danna@apple.com>
Thu, 17 Oct 2019 22:22:09 +0000 (22:22 +0000)
commit03819d1c80ad5d7b34f8fe0d375fcd2ef6aa5e7f
tree7d1f66147d89ee00239ace90f0b8280720979c7e
parentc86a6acaee55c98072ff06d372d049cb4a671fb5
eliminate one form of PythonObject::Reset()

Summary:
I'd like to eliminate all forms of Reset() and all public constructors
on these objects, so the only way to make them is with Take<> and Retain<>
and the only way to copy or move them is with actual c++ copy, move, or
assignment.

This is a simple place to start.

Reviewers: JDevlieghere, clayborg, labath, jingham

Reviewed By: labath

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D69080

llvm-svn: 375182
lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp