[cfe-dev] Deleting Variable on the AST - Was: Future of AST transformation

Maximilian Odendahl maxodendahl at gmail.com
Fri Jul 27 00:33:25 PDT 2012


any idea on this one?


On Tue, Jul 24, 2012 at 8:48 AM, Maximilian Odendahl
<maxodendahl at gmail.com>wrote:

> Hi,
> > The way to deal with this is to perform your transformation from the
> >ASTConsumer::**HandleTranslationUnit callback. At that point, the entire
> >AST has been formed, but the Sema object is still alive and ready to >do
> stuff.
> I am jumping in here, as I am trying to do this exactly. I would now like
> to delete a global variable on the AST so it is gone when printing the AST
> later on. I understand it is not really a transformation, but any easy way
> to do this?
> Best,
> Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120727/c4dd3636/attachment.html>

More information about the cfe-dev mailing list