Re: Refactoring tool

2007-07-29 Thread ori bar
You are right about C, but i believe templates in C++ make parsing harder.
DOxygen also parses C/C++.

On 7/29/07, Rafael Espindola <[EMAIL PROTECTED]> wrote:
> > Having spent some time looking at the code for gcc it seems reasonably 
> > easy(with some suggestions) to traverse the tree generated and
> > write the relevant information to a file.   Any suggestions or pointers to 
> > related work would be much appreciated.
>
> For C and C++, it might be easier to use a stand alone parser.
> Depending on what you want, these might be sufficient:
>
> http://llvm.org/cfe/
> http://www.cs.berkeley.edu/~smcpeak/elkhound/sources/elsa/
>
> > Patrick
>
> Cheers,
> --
> Rafael Avila de Espindola
>
> Google Ireland Ltd.
> Gordon House
> Barrow Street
> Dublin 4
> Ireland
>
> Registered in Dublin, Ireland
> Registration Number: 368047
>


-- 
11101010 - it's a way of life


Re: Refactoring tool

2007-07-29 Thread Rafael Espindola
> Having spent some time looking at the code for gcc it seems reasonably 
> easy(with some suggestions) to traverse the tree generated and
> write the relevant information to a file.   Any suggestions or pointers to 
> related work would be much appreciated.

For C and C++, it might be easier to use a stand alone parser.
Depending on what you want, these might be sufficient:

http://llvm.org/cfe/
http://www.cs.berkeley.edu/~smcpeak/elkhound/sources/elsa/

> Patrick

Cheers,
-- 
Rafael Avila de Espindola

Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland

Registered in Dublin, Ireland
Registration Number: 368047


Re: Refactoring tool

2007-07-22 Thread Robert Dewar

Patrick Flannery wrote:

Any suggestions or pointers to related work would be much appreciated.


The GNAT front end generates the kind of information you are suggesting
for Ada (see format of ali files), and GPS has a refactoring tool that
makes use of this information, so that might be one place to look for
ideas.