This patch eliminates a bunch of boilerplate from
PythonDataObjects, as well as the use of virtual methods.
In my opinion it also makes the Reset logic a lot more
clear and easy to follow. The price is yet another
template. I think it's worth it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Yes, this definitely looks better. Ideally, I'd like to get rid of the Reset functions altogether, and just ensure we already create/return fully valid objects (probably via factory functions returning Expecteds, Optionals or whatever)..
lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h | ||
---|---|---|
207–211 | BTW, is this needed? My impression was that PythonObject was/is not convertible to a PyObject*.. |
lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h | ||
---|---|---|
207–211 | Yea it's not actually convertible, i'll remove this. |
BTW, is this needed? My impression was that PythonObject was/is not convertible to a PyObject*..