Does the current CDT parser parse down to the level of individual
statements and their tokens? I've been playing around with it and it looks
like I can only get to the class/function declaration level. Given an
IASTFunction node, is there a way to get at nodes within the function
body?
There are no AST nodes for statements. We parse through the funciton bodies
and provide callbacks on references only.
Even if we did have AST Statements, we wouldn't be able to attach them to
the IASTFunction/IASTMethod as we would likely run out of memory on large
files with large number of inclusions.
That is why the interface between the parser and its clients is a callback
requestor interface, so that we can drop unnecessary constructs after they
are called back upon.
If this is something that you require, please raise an enhancement request
in bugzilla, setting the Component to CDT-Parser.
"Adam" <adam@fortifysoftware.com> wrote in message
news:bm4phj$ggn$1@eclipse.org...
> Does the current CDT parser parse down to the level of individual
> statements and their tokens? I've been playing around with it and it looks
> like I can only get to the class/function declaration level. Given an
> IASTFunction node, is there a way to get at nodes within the function
> body?
>