Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] best way to find out if a variable reference in AST is for read or write

You can create a feature request to expose this functionality in a public API and provide a patch that does that. In meantime you can use the internal class, although its API may change between CDT versions.

-sergey


On Fri, Jul 12, 2013 at 12:13 PM, Ayupov, Andrey <andrey.ayupov@xxxxxxxxx> wrote:
I found this static method for that which seems to work (from org.eclipse.cdt.internal.core.dom.parser.VariableReadWriteFlags):

 

int CPPVariableReadWriteFlags.getReadWriteFlags(IASTName n)

 

but seems like it is for internal use only. Is there a better way I can get what I want or should I use this one above?

 

Thanks!


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top