[cfe-dev] Invoking compilation after plugin execution

John McCall rjmccall at apple.com
Fri Feb 18 10:26:12 PST 2011

On Feb 18, 2011, at 9:05 AM, Nico Weber wrote:

> On Fri, Feb 18, 2011 at 5:36 PM, Dimitrij Kotrev
> <dimitrij.kotrev at googlemail.com> wrote:
>> Hi,
>> my plugin performs some transformations on the AST. I want that the
>> code is generated after i performed this transformations.
> As I said, I believe changing the AST after its construction is not
> supported. Others might be able to say more (or why :-) ).

It'll work if you understand the AST and its invariants well enough to
maintain them properly.  That's a pretty tall order, though, and we find
that most people are excessively optimistic.


More information about the cfe-dev mailing list