How to use CDT-Parser to write an extension? [message #109893] |
Thu, 08 July 2004 17:27  |
Eclipse User |
|
|
|
Originally posted by: schmidt.2002.gmx.de
I would like to implement a little extension to CDT that generates some
code from a class interface. So, my little plugin will ask the CDT
C++ parser for the code description of a given class declaration, and then
do sth with it, for example generate code, print some information etc.
So, how hard is it to get the class information from the parser? I need
sth like an iterator over all contained C++ member functions, and get the
return type and information on all parameters for each C++ member function.
How do I start? Which classes in the CDT API shall I look at? Or are there
even examples/tutorials on how to use the CDT C++ parser?
Thanks!
Andi
|
|
|
|
Re: How to use CDT-Parser to write an extension? [message #110287 is a reply to message #109893] |
Sun, 11 July 2004 16:29  |
Eclipse User |
|
|
|
Do note that the Parser APIs are not documented, or considered frozen.
JC
"Andreas Schmidt" <schmidt.2002@gmx.de> wrote in message
news:opsat8kdg8hj6ai6@news.eclipse.org...
> I would like to implement a little extension to CDT that generates some
> code from a class interface. So, my little plugin will ask the CDT
> C++ parser for the code description of a given class declaration, and then
> do sth with it, for example generate code, print some information etc.
>
> So, how hard is it to get the class information from the parser? I need
> sth like an iterator over all contained C++ member functions, and get the
> return type and information on all parameters for each C++ member
function.
>
> How do I start? Which classes in the CDT API shall I look at? Or are there
> even examples/tutorials on how to use the CDT C++ parser?
>
> Thanks!
> Andi
|
|
|
Powered by
FUDForum. Page generated in 0.06461 seconds