| /llvm-project-15.0.7/lldb/unittests/ScriptInterpreter/Python/ |
| H A D | PythonDataObjectsTests.cpp | 58 PythonObject owned_long(PyRefType::Owned, obj); in TEST_F() 111 PythonObject version_info_type(PyRefType::Owned, in TEST_F() 170 PythonInteger python_long(PyRefType::Owned, py_long); in TEST_F() 188 PythonBoolean python_true(PyRefType::Owned, Py_True); in TEST_F() 193 PythonBoolean python_false(PyRefType::Owned, Py_False); in TEST_F() 214 PythonBytes python_bytes(PyRefType::Owned, py_bytes); in TEST_F() 292 PythonList list(PyRefType::Owned, py_list); in TEST_F() 381 PythonObject none_value(PyRefType::Borrowed, Py_None); in TEST_F() 450 PythonDictionary dict(PyRefType::Owned, py_dict); in TEST_F() 533 PythonObject none(PyRefType::Borrowed, Py_None); in TEST_F() [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/ScriptInterpreter/Python/ |
| H A D | ScriptInterpreterPython.cpp | 866 PyRefType::Owned, in ExecuteOneLine() 870 PyRefType::Owned, in ExecuteOneLine() 1461 PyRefType::Owned, in GetRecognizedArguments() 1521 PythonObject pmeth(PyRefType::Owned, in OSPlugin_RegisterInfo() 1542 PyRefType::Owned, in OSPlugin_RegisterInfo() 1576 PythonObject pmeth(PyRefType::Owned, in OSPlugin_ThreadsInfo() 1597 PyRefType::Owned, in OSPlugin_ThreadsInfo() 1654 PyRefType::Owned, in OSPlugin_RegisterContextData() 2470 PyRefType::Owned, in GetSyntheticTypeName() 3012 PyRefType::Owned, in GetShortHelpForCommandObject() [all …]
|
| H A D | PythonDataObjects.h | 102 enum class PyRefType { enum 123 T thing(PyRefType::Owned, obj); in Take() 141 T thing(PyRefType::Borrowed, obj); in Retain() 216 PythonObject(PyRefType type, PyObject *py_obj) { 222 if (m_py_obj && Py_IsInitialized() && type == PyRefType::Borrowed) 227 : PythonObject(PyRefType::Borrowed, rhs.m_py_obj) {} 297 return T(PyRefType::Borrowed, m_py_obj); 370 return T(PyRefType::Borrowed, std::move(obj.get().get())); 388 TypedPythonObject(PyRefType type, PyObject *py_obj) { 393 else if (type == PyRefType::Owned) [all …]
|
| H A D | PythonDataObjects.cpp | 187 return PythonString(PyRefType::Owned, repr); in Repr() 196 return PythonString(PyRefType::Owned, str); in Str() 258 return PythonObject(PyRefType::Owned, in GetAttributeValue() 266 return PythonDictionary(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject() 269 return PythonBoolean(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject() 272 return PythonInteger(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject() 281 return PythonByteArray(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject() 287 PythonObject(PyRefType::Borrowed, m_py_obj))); in CreateStructuredObject() 584 PythonObject object(PyRefType::Borrowed, py_object); in PythonTuple() 881 return PythonObject(PyRefType::Owned, in operator ()() [all …]
|
| H A D | ScriptedPythonInterface.h | 52 PythonObject implementor(PyRefType::Borrowed, in Dispatch() 60 PyRefType::Owned, in Dispatch() 92 PyRefType::Owned, in Dispatch()
|
| H A D | ScriptedPythonInterface.cpp | 41 python::PythonList result_list(python::PyRefType::Borrowed, p.get()); in ExtractValueFromPythonObject() 49 python::PythonDictionary result_dict(python::PyRefType::Borrowed, p.get()); in ExtractValueFromPythonObject()
|
| H A D | ScriptedThreadPythonInterface.cpp | 51 ret_val = PythonObject(PyRefType::Borrowed, in CreatePluginObject()
|
| /llvm-project-15.0.7/lldb/bindings/python/ |
| H A D | python-typemaps.swig | 12 PythonList list(PyRefType::Borrowed, $input); 39 PythonList list(PyRefType::Borrowed, $input); 156 PythonString str(PyRefType::Borrowed, $input); 164 PythonBytes bytes(PyRefType::Borrowed, $input); 176 PythonString str(PyRefType::Borrowed, $input); 184 PythonBytes bytes(PyRefType::Borrowed, $input); 377 PythonFile py_file(PyRefType::Borrowed, $input); 389 PythonFile py_file(PyRefType::Borrowed, $input); 402 PythonFile py_file(PyRefType::Borrowed, $input); 415 PythonFile py_file(PyRefType::Borrowed, $input); [all …]
|
| H A D | python-wrapper.swig | 118 PythonDictionary dict(PyRefType::Borrowed, py_dict); 122 PythonCallable pfunc(PyRefType::Borrowed, pfunc_impl); 354 PythonObject self(PyRefType::Borrowed, static_cast<PyObject *>(implementor)); 423 PythonObject self(PyRefType::Borrowed, static_cast<PyObject *>(implementor)); 524 PythonObject self(PyRefType::Borrowed, static_cast<PyObject *>(implementor)); 561 PythonObject self(PyRefType::Borrowed, static_cast<PyObject *>(implementor)); 580 PythonObject self(PyRefType::Borrowed, implementor); 615 PythonObject self(PyRefType::Borrowed, implementor); 641 PythonObject self(PyRefType::Borrowed, implementor); 811 PythonObject self(PyRefType::Borrowed, implementor); [all …]
|
| H A D | python-swigsafecast.swig | 5 return {PyRefType::Owned, SWIG_NewPointerObj(obj, info, SWIG_POINTER_OWN)};
|
| /llvm-project-15.0.7/lldb/bindings/interface/ |
| H A D | SBTarget.i | 597 PythonList list(PyRefType::Borrowed, $input);
|