[cfe-dev] Allow to selectively skip function bodies while parsing.

Richard Smith richard at metafoo.co.uk
Tue Nov 27 13:32:06 PST 2012


Committed with some minor style tweaks as r168726.

On Tue, Nov 27, 2012 at 10:11 AM, Argyrios Kyrtzidis <kyrtzidis at apple.com>wrote:

> LGTM.
>
> On Nov 27, 2012, at 9:34 AM, Jordan Rose <jordan_rose at apple.com> wrote:
>
> > +Argyrios, who I believe added the current skip support.
> >
> >
> > On Nov 26, 2012, at 4:03 , Olivier Goffart <ogoffart at kde.org> wrote:
> >
> >> Hi,
> >>
> >> I would like to upstream the attached patch which allows ASTConsumer to
> select
> >> which function to skip while parsing.
> >>
> >> I have been using it to do a online code browser:
> http://code.woboq.org
> >>
> >> Most of the time of my tool is spent in parsing.
> >> And I have to parse the same includes again and again, and some
> includes have
> >> a lot of inline functions.
> >> By skipping body in already seen includes, I was able to reduce the
> parsing
> >> time by 30%.
> >>
> >> This might also be useful for other tools like refactoring or so.
> >>
> >> Regards,
> >> --
> >>
> Olivier<0001-Add-a-hook-in-the-ASTConsumer-to-be-able-to-skip-fun.patch>_______________________________________________
> >> cfe-dev mailing list
> >> cfe-dev at cs.uiuc.edu
> >> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> >
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121127/5e258646/attachment.html>


More information about the cfe-dev mailing list