Home
last modified time | relevance | path

Searched refs:PythonInteger (Results 1 – 4 of 4) sorted by relevance

/llvm-project/lldb/unittests/ScriptInterpreter/Python/
H A DPythonDataObjectsTests.cpp175 // Test that integers behave correctly when wrapped by a PythonInteger. in TEST_F()
177 // Verify that `PythonInteger` works correctly when given a PyLong object. in TEST_F()
179 EXPECT_TRUE(PythonInteger::Check(py_long)); in TEST_F()
180 PythonInteger python_long(PyRefType::Owned, py_long); in TEST_F()
188 // Test that creating a `PythonInteger` object works correctly with the in TEST_F()
190 PythonInteger constructed_int(7); in TEST_F()
280 PythonInteger integer(7); in TEST_F()
290 PythonInteger integer(-42); in TEST_F()
318 list_items[0] = PythonInteger(long_value0); in TEST_F()
330 EXPECT_TRUE(PythonInteger in TEST_F()
[all...]
/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.cpp173 if (PythonInteger::Check(m_py_obj)) in GetObjectType()
274 PythonInteger(PyRefType::Borrowed, m_py_obj).CreateStructuredInteger(); in CreateStructuredObject()
452 // PythonInteger in CreateStructuredString()
454 PythonInteger::PythonInteger(int64_t value) { SetInteger(value); }
456 bool PythonInteger::Check(PyObject *py_obj) { in PythonInteger() function in PythonInteger
465 void PythonInteger::SetInteger(int64_t value) { in Check()
466 *this = Take<PythonInteger>(PyLong_FromLongLong(value));
469 StructuredData::IntegerSP PythonInteger::CreateStructuredInteger() const { in SetInteger()
476 PythonInteger in CreateStructuredInteger()
[all...]
H A DPythonDataObjects.h71 class PythonInteger; variable
481 class PythonInteger : public TypedPythonObject<PythonInteger> {
485 PythonInteger() : TypedPythonObject() {} // MSVC requires this for some reason
487 explicit PythonInteger(int64_t value);
/llvm-project/lldb/bindings/python/
H A Dpython-wrapper.swig347 As<long long>(pfunc.Call(PythonInteger(max))));
371 PythonObject result = pfunc(PythonInteger(idx));
686 PythonObject result = pfunc(args_list, PythonInteger(args_pos), PythonInteger(pos_in_arg));
714 PythonObject result = pfunc(PythonString(long_option), PythonInteger(pos_in_arg));