Home
last modified time | relevance | path

Searched refs:PyRefType (Results 1 – 9 of 9) sorted by relevance

/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.h102 enum class PyRefType { enum
123 T thing(PyRefType::Owned, obj); in Take()
141 T thing(PyRefType::Borrowed, obj); in Retain()
229 PythonObject(PyRefType type, PyObject *py_obj) {
235 if (m_py_obj && Py_IsInitialized() && type == PyRefType::Borrowed)
240 : PythonObject(PyRefType::Borrowed, rhs.m_py_obj) {}
310 return T(PyRefType::Borrowed, m_py_obj);
392 return T(PyRefType::Borrowed, std::move(obj.get().get()));
410 TypedPythonObject(PyRefType type, PyObject *py_obj) {
415 else if (type == PyRefType::Owned)
[all …]
H A DPythonDataObjects.cpp190 return PythonString(PyRefType::Owned, repr); in Repr()
199 return PythonString(PyRefType::Owned, str); in Str()
261 return PythonObject(PyRefType::Owned, in GetAttributeValue()
269 return PythonDictionary(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject()
272 return PythonBoolean(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject()
290 return PythonByteArray(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject()
296 PythonObject(PyRefType::Borrowed, m_py_obj))); in CreateStructuredObject()
608 PythonObject object(PyRefType::Borrowed, py_object); in PythonTuple()
688 return PythonList(PyRefType::Owned, PyDict_Keys(m_py_obj)); in GetKeys()
919 return PythonObject(PyRefType::Owned, in operator ()()
[all …]
H A DScriptInterpreterPython.cpp743 PythonDictionary main_dict(PyRefType::Borrowed, in GetSessionDictionary()
807 PythonObject module(PyRefType::Borrowed, in GetEmbeddedInterpreterModuleObjects()
879 PyRefType::Owned, in ExecuteOneLine()
883 PyRefType::Owned, in ExecuteOneLine()
1494 PythonObject implementor(PyRefType::Borrowed, in GetRecognizedArguments()
1500 PythonObject py_return(PyRefType::Owned, in GetRecognizedArguments()
2297 PythonObject implementor(PyRefType::Borrowed, in GetSyntheticTypeName()
2812 PythonObject implementor(PyRefType::Borrowed, in GetShortHelpForCommandObject()
2849 PythonObject implementor(PyRefType::Borrowed, in GetFlagsForCommandObject()
2855 PythonObject pmeth(PyRefType::Owned, in GetFlagsForCommandObject()
[all …]
/freebsd-14.2/contrib/llvm-project/lldb/bindings/python/
H A Dpython-typemaps.swig18 PythonList list(PyRefType::Borrowed, $input);
44 PythonList list(PyRefType::Borrowed, $input);
63 PythonObject obj(PyRefType::Borrowed, $input);
76 PythonObject obj(PyRefType::Borrowed, $input);
242 PythonString str(PyRefType::Borrowed, $input);
250 PythonBytes bytes(PyRefType::Borrowed, $input);
262 PythonString str(PyRefType::Borrowed, $input);
270 PythonBytes bytes(PyRefType::Borrowed, $input);
480 PythonFile py_file(PyRefType::Borrowed, $input);
492 PythonFile py_file(PyRefType::Borrowed, $input);
[all …]
H A Dpython-wrapper.swig144 PythonDictionary dict(PyRefType::Borrowed, py_dict);
148 PythonCallable pfunc(PyRefType::Borrowed, pfunc_impl);
295 PythonObject self(PyRefType::Borrowed, static_cast<PyObject *>(implementor));
333 PythonObject self(PyRefType::Borrowed, static_cast<PyObject *>(implementor));
396 PythonObject self(PyRefType::Borrowed, static_cast<PyObject *>(implementor));
497 PythonObject self(PyRefType::Borrowed, static_cast<PyObject *>(implementor));
553 PythonObject self(PyRefType::Borrowed, implementor);
588 PythonObject self(PyRefType::Borrowed, implementor);
614 PythonObject self(PyRefType::Borrowed, implementor);
820 PythonObject self(PyRefType::Borrowed, implementor);
[all …]
H A Dpython-swigsafecast.swig5 return {PyRefType::Owned, SWIG_NewPointerObj(obj, info, SWIG_POINTER_OWN)};
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/
H A DScriptedPythonInterface.cpp33 python::PythonList result_list(python::PyRefType::Borrowed, p.get()); in ExtractValueFromPythonObject()
41 python::PythonDictionary result_dict(python::PyRefType::Borrowed, p.get()); in ExtractValueFromPythonObject()
H A DScriptedPythonInterface.h103 result = PythonObject(PyRefType::Borrowed, in CreatePluginObject()
247 PythonObject implementor(PyRefType::Borrowed, in Dispatch()
352 python::PyRefType::Borrowed, transformed_arg.get()); in ReverseTransform()
/freebsd-14.2/contrib/llvm-project/lldb/bindings/interface/
H A DSBTargetExtensions.i6 PythonList list(PyRefType::Borrowed, $input);