From 47caf9a95618142a03316f91a72eed1910a79b14 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Fri, 19 Sep 2014 18:21:05 +0000 Subject: Extend the member function discovery APIs to also support Objective-C as well as C++ For the Objective-C case, we do not have a "function type" notion, so we actually end up wrapping the clang ObjCMethodDecl in the Impl object, and ask function-y questions of it In general, you can always ask for return type, number of arguments, and type of each argument using the TypeMemberFunction layer - but in the C++ case, you can also acquire a Type object for the function itself, which instead you can't do in the Objective-C case llvm-svn: 218132 --- lldb/scripts/Python/interface/SBType.i | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lldb/scripts/Python/interface') diff --git a/lldb/scripts/Python/interface/SBType.i b/lldb/scripts/Python/interface/SBType.i index 7daa144feb1..9c37f89c772 100644 --- a/lldb/scripts/Python/interface/SBType.i +++ b/lldb/scripts/Python/interface/SBType.i @@ -86,6 +86,15 @@ public: lldb::SBType GetType (); + lldb::SBType + GetReturnType (); + + uint32_t + GetNumberOfArguments (); + + lldb::SBType + GetArgumentTypeAtIndex (uint32_t); + lldb::MemberFunctionKind GetKind(); -- cgit v1.2.3