Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » ASTRewrite - Editing cpp Files with cdt
ASTRewrite - Editing cpp Files with cdt [message #170793] Mon, 05 June 2006 14:15 Go to next message
Eclipse UserFriend
Hi,
I'm looking for a class similar to the jdt "ASTRewrite" but for cpp to be
able to
edit cpp files.

this is the jdt ASTRewrite class:
org.eclipse.jdt.core.dom.rewrite.ASTRewrite
see:
http://help.eclipse.org/help31/topic/org.eclipse.jdt.doc.isv /reference/api/org/eclipse/jdt/core/dom/rewrite/ASTRewrite.h tml

I need to manipulate the tree of a cpp file for editing. Is there such a
class for cdt? (otherwise, what should I use?)

Thanks,
Sebastian
Re: ASTRewrite - Editing cpp Files with cdt [message #170918 is a reply to message #170793] Tue, 06 June 2006 13:12 Go to previous message
Eclipse UserFriend
Currently the CDT DOM is not "rewritable". I think the best you can do
now is to use the location information on the IASTNodes to make your
changes directly back to the file.

You might want to try on the cdt-dev mailing list, there may be others
investigating the rewrite problem.

-Andrew

Sebastian wrote:
> Hi,
> I'm looking for a class similar to the jdt "ASTRewrite" but for cpp to be
> able to
> edit cpp files.
>
> this is the jdt ASTRewrite class:
> org.eclipse.jdt.core.dom.rewrite.ASTRewrite
> see:
> http://help.eclipse.org/help31/topic/org.eclipse.jdt.doc.isv /reference/api/org/eclipse/jdt/core/dom/rewrite/ASTRewrite.h tml
>
> I need to manipulate the tree of a cpp file for editing. Is there such a
> class for cdt? (otherwise, what should I use?)
>
> Thanks,
> Sebastian
>
>
>
Previous Topic:How to indentify a variable-argument function using cdt?
Next Topic:error parsing
Goto Forum:
  


Current Time: Sat May 10 14:35:12 EDT 2025

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

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

Back to the top