Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Getting ASTs of multiple files and creating new files

Yes you can rewrite ast using ast rewriter, look at refactoring or quick fix code.


On Wed, Aug 13, 2014 at 9:51 AM, Krishna Narasimhan <krishna.nm86@xxxxxxxxx> wrote:
Actually this is for a different project too.

So basically there must be a way to obtain other IFile objects in the Workspace using the ResourcePlugin.

My question is , is it possible to rewrite them safely?

And can we write a translation unit into a newly created file in the workspace?


On Wed, Aug 13, 2014 at 3:43 PM, Alena Laskavaia <elaskavaia.cdt@xxxxxxxxx> wrote:
I think we just talked about in regards to AST diff. I am not sure it has any advantages vs doing text merge, there is no support for it in CDT. That would be very difficult task (and possibly computationally expensive)


On Tue, Aug 12, 2014 at 6:12 AM, Krishna Narasimhan <krishna.nm86@xxxxxxxxx> wrote:
Hello all,
      
         I wish to look at two versions of files using Eclipse CDT and possibly merge them. This would involve being able to analyse ASTs of two files and also merging them and creating a new file. Does CDT have support for these. If not, are there work arounds?


Regards
       Krishna

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev



--
-----------------------------------------------------
I dare do all that may become a man; Who dares do more, is none - Macbeth, twelfh night!
Regards
       Krishna


Back to the top