[cfe-dev] Using clang for source to source transformations

Nathan Lawrence nlawren2 at uiuc.edu
Thu Feb 11 16:18:11 PST 2010


I'm trying to use clang as a source-to-source transformer to reorder
statements in c code.  It is not necessary maintain formatting.

I've been looking through the documentation, but I can't find an
obvious way to do this.  I would like to be able to operate on an AST
and not a token stream.

How would you recommend doing this?

-- Nathan

More information about the cfe-dev mailing list