Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] How to find visibility of nested class ?

Hi all,

I am accessing the AST for a Translation Unit to get list of classes.

Some of these classes have nested classes. I could get list of nested
classes using getNestedClasses() method for ICPPClassType.

But I want to find whether that nested class is of private, public or
protected type.

Can someone help me  that how can I find it ?

ICPPClassType doesn't have any getVisibility() method . And it is not an
instance of ICPPMember also which has getVisibility() method.

Thanks in advance,
Nayna Jain



Back to the top