Hi Marc-André,
Glad to see your reply and tips. I just came back from my 2 weeks holiday and I will try to move as much as possible and hope eventually I can share something with your encourage.
Thanks.
Sent from
Mail for Windows 10
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 list
cdt-dev@xxxxxxxxxxx
To
change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev