[cfe-dev] Allow to selectively skip function bodies while parsing.
Olivier Goffart
ogoffart at kde.org
Mon Nov 26 04:03:46 PST 2012
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-hook-in-the-ASTConsumer-to-be-able-to-skip-fun.patch
Type: text/x-patch
Size: 1596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121126/e0902a7e/attachment.bin>
More information about the cfe-dev
mailing list