[cfe-dev] Final AST

James Dennett james.dennett at gmail.com
Mon Jun 17 00:44:57 PDT 2013


On Mon, Jun 17, 2013 at 12:35 AM, Manuel Klimek <klimek at google.com> wrote:
> On Fri, Jun 14, 2013 at 1:39 PM, Lukas Vogel <lukedirtwalkerdev at gmail.com>
> wrote:
>>
>> Hi,
>>
>> I'm currently writing a Tool using libtooling & RecursiveAstVisitor.
>> In the AST I come across quite a lot of Unresolved expressions and I
>> looked through the documentation of UnresolvedMemberExpr
>> [UnresolvedMemberExpr] there it says that those nodes will be resolved in
>> the final AST.
>> Is there any possibility to get this final AST and run the tool over this?
>> Or to what does this refer?
>
>
> The AST you see with libtooling should be the final AST :) Are you running
> over incomplete code (that is, code that doesn't compile)?
>
> Can you paste a reproduction?

I've not checked, but I'd assume that there are plenty of unresolved
nodes in parsed templates (as opposed to their instantiations).
Likely the documentation could be improved.

-- James



More information about the cfe-dev mailing list