<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Dec 4, 2015 at 12:22 PM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><span class=""></span><div>You can implement your own FrontendAction / FrontendActionFactory, where you'll just get called with a TranslationUnitDecl (which is basically the whole AST).</div></div></div></blockquote><div><br>That works, thanks! I initially tripped over the use of templates in the factory, but the relevant line ends up being <br></div><div><br>  return Tool.run(newFrontendActionFactory<MainAction>().get());<br></div></div><br></div></div>