Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » [AST] Getting AST Node from Binding
[AST] Getting AST Node from Binding [message #762650] Thu, 08 December 2011 07:58
Eclipse UserFriend
Hi,

let us say I have an IBinding for an IType. How can I get the IASTNode associated with its definition?

I tried IIndex.findDefinitions(), but I do not know how to use the resulting IIndexName to get to the original IASTNode.

Is IASTTranslationUnit.getDeclarationsInAST() a better option? If so, how can I find the IASTTranslationUnit associated with the definition of an IBinding?

Regards,
Olivier.

[Updated on: Thu, 08 December 2011 07:59] by Moderator

Previous Topic:Adding cut/copy/paste to the toolbar
Next Topic:No source available for "__libc_start_main() "
Goto Forum:
  


Current Time: Thu Jul 17 21:50:03 EDT 2025

Powered by FUDForum. Page generated in 1.05332 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top