Hi Marc-André
I for CDT from git://git.eclipse.org/gitroot/cdt/org.eclipse.cdt.git. When I tried to build it, I got following error:
“Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:1.4.0:build-qualifier (default-build-qualifier) on project org.eclipse.cdt.core.native: Working tree is dirty.
git status core/org.eclipse.cdt.core.native:
Changes not staged for commit:
modified: core/org.eclipse.cdt.core.native/plugin.properties
You are trying to use tycho-buildtimestamp-jgit on a directory that has uncommitted changes (see details above).
Either commit all changes/add files to .gitignore, or enable fallback to default timestamp provider by configuring
jgit.dirtyWorkingTree=warning for tycho-packaging-plugin”
Although I did not touch the folder.
Is there anyway I can get a complete CDT jar file Eclipse?
Following your kind suggestion, if I want to create my first ASTNode of main(),
How to achieve the effect of “new
IASTFunctionDefinition()”. ? It seem new Function is not the way because IFunction is not IASTNode.
According to the
https://wiki.eclipse.org/images/b/be/PTPUserDev2012_Ruegg_Refactoring.pdf
I think I should create a
ICPPASTTranslationUnit first. Some internet sample shows
ITranslationUnit
tu = (ITranslationUnit)
CDTUITools.getEditorInputCElement(editor.getEditorInput());
ITranslationUnit
tu = (ITranslationUnit)
CDTUITools.getEditorInputCElement(editor.getEditorInput());
- ITranslationUnit tu = (ITranslationUnit) CDTUITools.getEditorInputCElement(editor.getEditorInput());
- ITranslationUnit tu= (ITranslationUnit) CoreModel.getDefault().create(file);
I don’t have (need) UI Editor, and assume I just start my UML tool, so neither a src file; so how to create a tu? BTW how many different ways to create tu?
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