Hope I could understand your concern.
@Override
public int visit(IASTDeclaration decl) {
IASTDeclarationImplClass.visit(index, decl);
return PROCESS_CONTINUE;
}
Question is that how to know a declaration is class/struct/function as detail as possible yet without using internal iface/class?
From: cdt-dev-bounces@xxxxxxxxxxx <cdt-dev-bounces@xxxxxxxxxxx> on behalf of Jonah Graham <jonah@xxxxxxxxxxxxxxxx>
Sent: Wednesday, February 26, 2020 2:45 AM
To: CDT General developers list. <cdt-dev@xxxxxxxxxxx>
Subject: Re: [cdt-dev] Your advice
They are internal - use what you like if you are going to peek inside the API - I don't think it matters in this case but I would generally use the highest item in the hierarchy that serves my purposes.
(BTW ICASTAmbiguousDeclarator does not exist, I assume you mean IASTAmbiguousDeclarator)
so the ans should be ICASTAmbiguousDeclarator interfaces?
Should I use class like CASTAmbiguousDeclarator or interface like ICASTAmbiguousDeclarator?
Generally you should avoid accessing the internal classes from outside of CDT. Not sure if you really need them here or not.
Please submit a change to CDT containing your improvement to the visitor classes.
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev
|