1

I'm trying to implement an extension for Visual Studio 2013 (using C#) for C++ programmers, in which the user could right click on any variable in his/her C++ code and I would give him all sorts of information on that variable (like usages or which function is it passed to ... etc.).

Do you know how can I achieve this ? If so - can I get the C++ syntax tree ?

Thanks

PS Any open source project I could use as a reference ?

  • 1
    I don't think you can. See this question: http://stackoverflow.com/questions/22957350/is-the-vc-code-dom-accessible-from-vs-addons – Ira Baxter Mar 17 '15 at 16:20

1 Answers1

0

I am not sure that this will solve your problem, but you might try to use the PDB file (Program database), which contains among other global variables, local variables, function names and the addresses of their entry points, etc. Further info here, here, and here.

There is also a tool available to Inspect the Content of a Program Database (PDB) File. Further useful info to read is provided here.

Rudolf FERENC
  • 289
  • 1
  • 6