Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Indexer not detecting any definitions(or occurences) in custom refactoring

Nathan,
   This is awesome. Thanks a lot

Sergey,
       I will look into that. But for my current purpose, Nathans help worked. But I would like to learn the fundas about this binding. As I have bigger flow analysis coming up. 

On Wed, Nov 25, 2015 at 7:24 PM, Nathan Ridge <zeratul976@xxxxxxxxxxx> wrote:
> What is the way to bind local variable names to their type definitions

The IBinding for the variable will be an IVariable, which has a getType() method.

> and also references?

To find references of a local variable, you need to search the AST rather than the index. You can do this with IASTTranslationUnit.getReferences(IBinding).

Regards,
Nate

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top