clang c++ inheritance

Hi,
   In case of inherited classes, does the method_iterator iterates over
methods of the parent class too? If no, how can one access the methods of
the parent class?

Regards,
Adil

In case of inherited classes, does the method_iterator iterates over
methods of the parent class too?

No.

If no, how can one access the methods of the parent class?

CXXRecordDecl has a list of base types, which in non-dependent
contexts will always be (possibly sugar for) RecordTypes.

John.

What do you mean by “in non-dependent contexts”? And what is meant by “sugared”?

What do you mean by "in non-dependent contexts"?

Within a template, a class may have a base class that depends
on the template arguments. If you don't know what I mean by that,
you may need to do more research into C++ before writing your tool.

And what is meant by "sugared"?

In programming language design, we generally use the word "sugar" to
mean some sort of language feature that isn't strictly necessary, but
which makes something easier or more convenient to express.

In C and C++, typedefs are the most obvious example of type sugar,
but things like explicit scope specifiers ("std::") and elaborated type
specifiers ("struct vector") also count.

Basically, I'm saying that, on a valid class outside of a template, you
can safely call castAs<RecordType>() on a base type.

John.