[cfe-dev] Parsing C++ code to an AST and processing the result

Russell Wallace via cfe-dev cfe-dev at lists.llvm.org
Sat Dec 5 02:48:21 PST 2015

On Fri, Dec 4, 2015 at 12:22 PM, Manuel Klimek <klimek at google.com> wrote:

> You can implement your own FrontendAction / FrontendActionFactory, where
> you'll just get called with a TranslationUnitDecl (which is basically the
> whole AST).

That works, thanks! I initially tripped over the use of templates in the
factory, but the relevant line ends up being

  return Tool.run(newFrontendActionFactory<MainAction>().get());
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151205/fd277622/attachment.html>

More information about the cfe-dev mailing list