[lldb-dev] SBType::GetNumberOfMemberFunctions

Enrico Granata egranata at apple.com
Fri Sep 19 13:30:31 PDT 2014


Also, the subclassing relation would work well for C++ but not so well for ObjC where member functions are not considered as backed by actual functions (well, yes, in some sense in practice they are - but that’s not how the object model describes things because of objc_msgSend-style dispatch)
But since subclassing in SB* is not an option, that saves us from the intricacies of this model

> On Sep 19, 2014, at 12:25 PM, jingham at apple.com wrote:
> 
>> 
>> On Sep 19, 2014, at 12:17 PM, Carlo Kok <ck at remobjects.com> wrote:
>> 
>> On Fri, 19 Sep 2014 20:32:56 +0200, Enrico Granata <egranata at apple.com> wrote:
>> 
>> Sending        include/lldb/API/SBType.h
>> Sending        include/lldb/Symbol/ClangASTType.h
>> Sending        include/lldb/Symbol/Type.h
>> Sending        scripts/Python/interface/SBType.i
>> Sending        source/API/SBType.cpp
>> Sending        source/Symbol/ClangASTType.cpp
>> Sending        source/Symbol/Type.cpp
>> Sending        test/python_api/class_members/Makefile
>> Sending        test/python_api/class_members/TestSBTypeClassMembers.py
>> Deleting       test/python_api/class_members/main.cpp
>> Adding         test/python_api/class_members/main.mm
>> Transmitting file data ..........
>> Committed revision 218132.
>> 
>> You may want to grab this revision and see if it improves things for you!
>> 
>> Cool, thanks! 
>> 
>> This is going to be very useful to me.
>> 
>> The only thing I'm wondering, shouldn't there be a relation between SBFunction and SBMemberFunction? 
> 
> Dunno if this is what you meant but though formally it might make sense to have SBMemberFunction a subclass of SBFunction, we don't do sub-classing in the SB API's.  We're trying to keep these classes as simple as possible so we don't get into any binary compatibility issues.
> 
> Jim
> 
>> 
>> 
>> -- 
>> Carlo Kok
>> RemObjects Software
>> _______________________________________________
>> lldb-dev mailing list
>> lldb-dev at cs.uiuc.edu <mailto:lldb-dev at cs.uiuc.edu>
>> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev <http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev>
Thanks,
- Enrico
📩 egranata@.com ☎️ 27683




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140919/47ebd0f9/attachment.html>


More information about the lldb-dev mailing list