Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Using Eclipse CDT's Parser in a Standalone RefactoringTool

If you want to work with the CDT parser, I recommend to use CDT projects for that (Why would you not do so?).


As the guy building the refactoring engine in Photran, I have to agree with Markus on this. Eclipse has some very nice infrastructure for refactoring tools. For example, the LTK provides a Preview window which shows a graphical diff, and a set of Change objects basically gives you Undo for free. Moreover, if you're interested in refactoring C, the CDT already has a (single-configuration) preprocessor, a way to specify #include paths, etc., and I believe Markus added some new C-specific refactoring infrastructure (prettyprinter, etc.) in CDT 5. IMHO, the cost of learning this framework is a lot lower than the cost of building it yourself...

Jeff Overbey
University of Illinois at Urbana-Champaign


Back to the top