[cfe-dev] AST
Micha M.
clang at mail.i88.de
Tue Nov 30 06:47:46 PST 2010
Hello!
I'd like to do some research on the AST in clang. Where do I find the root
of the AST? It seems that void ParseAST(Sema &S, bool PrintStats = false);
generates the AST, but where is it saved?
I'd like to do some modification on the AST. E.g. exchange all
BinaryOperator "+" with "-" before the a.out is generated.
Kind regards
#micha
--
main(i,c)/* /"\ ASCII Ribbon | Die Mathematik ist die Königin */{for(scanf
("%d",&c)/* \ / Campaign | der Wissenschaften und die */;1<(c/=i
);printf(/* X against | Zahlentheorie ist die Königin */"%d\n",i)
)for(i=1;/* / \ HTML e-mail | der Mathematik - C. F. Gauß */c%++i;);}
/* To err is human; to really fuck things up requires the root password */
More information about the cfe-dev
mailing list