Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to use CDT for name resolution ?
How to use CDT for name resolution ? [message #1730569] Tue, 26 April 2016 17:22
Nicolas Anquetil is currently offline Nicolas AnquetilFriend
Messages: 20
Registered: May 2010
Junior Member
Hello,


I am trying to use CDT to analyse a C++ project and perform name
resolution for me.

How should one use CDT to resolve names ?

1- from definition to declaration when they are separate
2- from definition/declaration to "uses"(e.g. method invocation)

I found sites suggesting I need to use the index (e.g.
http://wiki.eclipse.org/images/c/c7/CDT_APIs_for_code_introspection.pdf)
other suggesting I need to use the PDOM (e.g.
http://www.ibm.com/developerworks/opensource/library/os-ecl-cdt4/index.html)

Looking at the FileLocations, I found that in some cases, the
IASTDefintion (in the .cpp file) will point to the IASTDeclaration (in
the header file)
Which would seem to solve problem 1-

I saw that ASTNodes have a IBinding that do not seem to be part of the
index nor the PDOM and which I don't know what to do with ...


In short, I am lost :-(

Can anyone provide some clue?

nicolas
Previous Topic:Getting IProject handle to a project outside workspace
Next Topic:Mars g++ erros
Goto Forum:
  


Current Time: Tue Mar 19 06:13:19 GMT 2024

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

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

Back to the top