[cfe-dev] Count methods in class

Daniel Dilts diltsman at gmail.com
Mon Mar 9 13:48:42 PDT 2015


On closer examination the unexpected methods (which matched the count from
the base classes) were the compiler provided assignment operators.

On Fri, Mar 6, 2015 at 6:24 PM, Richard Smith <richard at metafoo.co.uk> wrote:

> On Fri, Mar 6, 2015 at 4:50 PM, Daniel Dilts <diltsman at gmail.com> wrote:
>
>> CXXRecordDecl::methods() appears to list all methods in the class and
>> base classes.  How would I get a list of only the methods declared in a
>> class (none of the methods from base classes)?
>>
>
> It should only list methods in the current class (excluding those
> inherited from base classes); do you have an example where it lists more
> than that?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150309/8603c1dd/attachment.html>


More information about the cfe-dev mailing list