[cfe-dev] TreeTransform and Clang

John McCall rjmccall at apple.com
Fri Aug 6 15:56:45 PDT 2010


On Aug 6, 2010, at 6:00 AM, Vassil Vassilev wrote:

> Hello,
>  I need to transform the generated AST just before it is passed to the
> Sema. I know that I have to use (inherit) the TreeTransform class but it
> is difficult for me to find where to put the new transformation (I want
> to preserve the architecture of LLVM). Where I can call the new
> transformer so that it will be able to transform the tree before the
> semantic analysis?

I think you're confused;  semantic analysis is what builds the AST.  We don't
build separate parse trees and semantic trees.

John.



More information about the cfe-dev mailing list