Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Identifying library usages

Given an IBinding for a name in the cpp file, you can call IIndex.findDeclarations(IBinding) to get an array of IIndexName objects representing the declarations of the binding (the index can be obtained via IASTTranslationUnit.getIndex()).

Once you have an IIndexName, you can call getFile() on it to get an IIndexFile, then getLocation() on that to get an IIndexFileLocation. IIndexFileLocation has methods that you should be able to use to identify your header file, such as getFullPath().

Let me know if that answers your question.


Back to the top