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 Refactoring Tool

Hi thanks for the replies all. I guess what I  wanted to know was whether or not the CDT parser in the CDT library can easily be used for an external tool. 
I've heard that it doesn't really work well for something like this as it's too closely integrated with the Eclipse IDE. Are there any external tool projects which use aspects of the CDT package (maybe not necessarily the parser) 
which I could look at? I noticed a post from way back that someone was considering using the parser for a static code analysis tool.  
Cheers

On 4/14/08, Wieant Nielander <wieant@xxxxxxxxx> wrote:
> Hi I'm currently an student doing a project which involves creating a
> program capable of representing a C project (files, functions...etc)
> visually and which will allow the user to perform simple higher as well as
> lower-level refactorings via the graphical interface itself. I originally
> intended to use the GCC translation framework available with ANTLR for the
> job of parsing the C files and source code in but someone else recommended
> that I perhaps consider Eclipse CDT's parser instead.
>
> I was wondering if I could get some feedback as to whether the CDT parser
> would be well suited for a project of this nature. Ideally the parser would
> be capable of catering for preprocessor directives, be able to read in
> different C files as a single project and perform code transformations with
> ease. It would also be much appreciated if I could perhaps be pointed to
> other standalone projects, examples which use the CDT parser in this manner
> or maybe even tutorials if they exist. Thanks alot in advance


I guess the CDT parser is well suited for this as there is already a
C++ refactoring plugin, see:
  http://r2.ifs.hsr.ch/cdtrefactoring
C refactoring enhancements/extensions will be welcome.

Regards,

  Wieant

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top