[cfe-dev] Source rewrite

Douglas Gregor dgregor at apple.com
Tue Dec 22 15:48:42 PST 2009


On Dec 21, 2009, at 7:23 PM, ether zhhb wrote:

> hi,
>
> its there any simple example that shows us how to rewrite the source
> code that clang just parsed?


The simplest rewriter that works on parsed ASTs is probably the blocks  
rewriter, in lib/Frontend/RewriteBlocks.cpp

	- Doug



More information about the cfe-dev mailing list