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

> 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).


Back to the top