Hi Ming,
I found this presentation about CDT refactoring, there are a few slides about creating AST nodes (node factory), ASTRewrite and generating changes that might useful to you: https://wiki.eclipse.org/images/b/be/PTPUserDev2012_Ruegg_Refactoring.pdf
About how to use this within your tool, it will depend a lot on how close your tool is to being an Eclipse plugin running in a workspace with a C/C++ project. If some of those conditions are not met, you will have a few more hurdles, like having to add all cdt.core dependencies on the classpath, figuring out if you can do AST writing on an external file (non-workspace), etc.
Either way, it sounds like an interesting project and something that you could write about in a blog or developer FAQ if you do manage to get it working.
Regards, Marc-André
Hi The team, I want to develop C++ source code generator according to user’s diagram something like UML tool but very limited just for my needs. So my questions are: - Can I call CDT lib’s API to generate C++ class/functions?
- What’s the ABC steps so I can follow them to merge the lib into my tool to see some very basic features?
Ming Cheng. Warm Regards Sent from Mail for Windows 10 _______________________________________________cdt-dev mailing listcdt-dev@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visithttps://www.eclipse.org/mailman/listinfo/cdt-dev
|