/llvm-project/lldb/unittests/ScriptInterpreter/Python/ |
H A D | PythonDataObjectsTests.cpp | 62 PythonObject owned(PyRefType::Owned, obj); in TEST_F() 91 PythonByteArray byte_value(PyRefType::Owned, in TEST_F() 96 PythonByteArray borrowed_byte(PyRefType::Borrowed, byte_value.get()); in TEST_F() 121 PythonObject version_info_type(PyRefType::Owned, in TEST_F() 180 PythonInteger python_long(PyRefType::Owned, py_long); in TEST_F() 198 PythonBoolean python_true(PyRefType::Owned, Py_True); in TEST_F() 203 PythonBoolean python_false(PyRefType::Owned, Py_False); in TEST_F() 209 PythonBoolean python_boolean(PyRefType::Owned, py_bool); in TEST_F() 224 PythonBytes python_bytes(PyRefType::Owned, py_bytes); in TEST_F() 240 PythonByteArray python_bytes(PyRefType in TEST_F() [all...] |
/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/ |
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() 231 PythonObject(PyRefType type, PyObject *py_obj) { 237 if (m_py_obj && Py_IsInitialized() && type == PyRefType::Borrowed) 242 : PythonObject(PyRefType::Borrowed, rhs.m_py_obj) {} 312 return T(PyRefType::Borrowed, m_py_obj); 394 return T(PyRefType::Borrowed, std::move(obj.get().get())); 412 TypedPythonObject(PyRefType type, PyObject *py_obj) { 417 else if (type == PyRefType::Owned) [all …]
|
H A D | PythonDataObjects.cpp | 188 return PythonString(PyRefType::Owned, repr); in Repr() 197 return PythonString(PyRefType::Owned, str); in Str() 259 return PythonObject(PyRefType::Owned, in GetAttributeValue() 267 return PythonDictionary(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject() 270 return PythonBoolean(PyRefType::Borrowed, m_py_obj) in CreateStructuredObject() 274 PythonInteger(PyRefType::Borrowed, m_py_obj).CreateStructuredInteger(); in CreateStructuredObject() 282 return PythonList(PyRefType::Borrowed, m_py_obj).CreateStructuredArray(); in CreateStructuredObject() 284 return PythonString(PyRefType::Borrowed, m_py_obj).CreateStructuredString(); in CreateStructuredObject() 286 return PythonBytes(PyRefType::Borrowed, m_py_obj).CreateStructuredString(); in CreateStructuredObject() 288 return PythonByteArray(PyRefType in CreateStructuredObject() [all...] |
H A D | ScriptInterpreterPython.cpp | 728 PythonDictionary main_dict(PyRefType::Borrowed, in EnterSession() 790 PythonObject module(PyRefType::Borrowed, in GetMaxPositionalArgumentsForCallable() 795 PythonDictionary module_dict(PyRefType::Borrowed, in GenerateUniqueName() 862 PyRefType::Owned, in ExecuteOneLine() 866 PyRefType::Owned, in ExecuteOneLine() 1476 PythonObject implementor(PyRefType::Borrowed, in CreateFrameRecognizer() 1482 PythonObject py_return(PyRefType::Owned, in CreateFrameRecognizer() 1492 PythonList result_list(PyRefType::Borrowed, py_return.get()); in GetRecognizedArguments() 1520 PythonObject implementor(PyRefType::Borrowed, in GetRecognizedArguments() 1566 PythonObject py_obj(PyRefType in CreateScriptedBreakpointResolver() [all...] |
/llvm-project/lldb/bindings/python/ |
H A D | python-typemaps.swig | 18 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); 246 PythonByteArray bytearray(PyRefType::Borrowed, $input); 250 PythonBytes bytes(PyRefType::Borrowed, $input); 263 PythonString str(PyRefType::Borrowed, $input); 267 PythonByteArray bytearray(PyRefType::Borrowed, $input); 271 PythonBytes bytes(PyRefType::Borrowed, $input); [all …]
|
H A D | python-wrapper.swig | 144 PythonDictionary dict(PyRefType::Borrowed, py_dict); 148 PythonCallable pfunc(PyRefType::Borrowed, pfunc_impl); 269 PythonObject self(PyRefType::Borrowed, static_cast<PyObject *>(implementor)); 311 PythonObject self(PyRefType::Borrowed, static_cast<PyObject *>(implementor)); 330 PythonObject self(PyRefType::Borrowed, implementor); 365 PythonObject self(PyRefType::Borrowed, implementor); 391 PythonObject self(PyRefType::Borrowed, implementor); 634 PythonObject self(PyRefType::Borrowed, implementor); 653 PythonObject self(PyRefType::Borrowed, implementor); 676 PythonObject self(PyRefType [all...] |
H A D | python-swigsafecast.swig | 5 return {PyRefType::Owned, SWIG_NewPointerObj(obj, info, SWIG_POINTER_OWN)};
|
/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ |
H A D | ScriptedPythonInterface.cpp | 33 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 D | ScriptedPythonInterface.h | 147 result = PythonObject(PyRefType::Borrowed, in CreatePluginObject() 350 PythonObject implementor(PyRefType::Borrowed, in Transform() 478 python::PyRefType::Borrowed, transformed_arg.get());
|
/llvm-project/lldb/bindings/interface/ |
H A D | SBTargetExtensions.i | 6 PythonList list(PyRefType::Borrowed, $input);
|