Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] How to get the IASTName from an IIndexName ?

>The only way to get those IASTNames would be to open the corresponding
>and parse them to get ASTs. This is pretty expensive and in most cases

Suppose I want to search for all references to a public field in a class and
I want the results in the form of IASTNode-s. I have to open all the files
in the workspace and search their ASTs one by one for any reference to the
field. Then what is the use of IIndexManager, IIndex, IIndexName etc.?

Can you please tell me how the C/C++ search works? Can't I invoke the same
functionality by code to find all references to a field?


View this message in context:
Sent from the Eclipse CDT - Development mailing list archive at

Back to the top