From 6c42cb11d6b0fb89c952b710d1dca4480d8bfed5 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Mon, 15 Sep 2014 21:30:36 +0000 Subject: Change SBType.GetMemberFunctionAtIndex() to return an object describing the member function in more detail. A type was really quite vague. This now has function name, kind, as well as function type llvm-svn: 217828 --- lldb/scripts/Python/interface/SBType.i | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'lldb/scripts/Python/interface') diff --git a/lldb/scripts/Python/interface/SBType.i b/lldb/scripts/Python/interface/SBType.i index 1e45864b8c1..7daa144feb1 100644 --- a/lldb/scripts/Python/interface/SBType.i +++ b/lldb/scripts/Python/interface/SBType.i @@ -67,6 +67,35 @@ public: protected: std::unique_ptr m_opaque_ap; }; + +class SBTypeMemberFunction +{ +public: + SBTypeMemberFunction (); + + SBTypeMemberFunction (const lldb::SBTypeMemberFunction& rhs); + + ~SBTypeMemberFunction(); + + bool + IsValid() const; + + const char * + GetName (); + + lldb::SBType + GetType (); + + lldb::MemberFunctionKind + GetKind(); + + bool + GetDescription (lldb::SBStream &description, + lldb::DescriptionLevel description_level); + +protected: + lldb::TypeMemberFunctionImplSP m_opaque_sp; +}; %feature("docstring", "Represents a data type in lldb. The FindFirstType() method of SBTarget/SBModule @@ -243,7 +272,7 @@ public: uint32_t GetNumberOfMemberFunctions (); - lldb::SBType + lldb::SBTypeMemberFunction GetMemberFunctionAtIndex (uint32_t idx); bool -- cgit v1.2.3