diff options
author | Enrico Granata <egranata@apple.com> | 2014-09-15 21:30:36 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2014-09-15 21:30:36 +0000 |
commit | 6c42cb11d6b0fb89c952b710d1dca4480d8bfed5 (patch) | |
tree | 5abdb6e1916b72735311667e5fbfd903987bd197 /lldb/scripts/Python/interface | |
parent | e1779e2a8b123403bb2c1c641f30a1c85614689a (diff) | |
download | bcm5719-llvm-6c42cb11d6b0fb89c952b710d1dca4480d8bfed5.tar.gz bcm5719-llvm-6c42cb11d6b0fb89c952b710d1dca4480d8bfed5.zip |
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
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r-- | lldb/scripts/Python/interface/SBType.i | 31 |
1 files changed, 30 insertions, 1 deletions
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<lldb_private::TypeMemberImpl> 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 |