[cfe-dev] Late Parsed Template support for PCH
Francois Pichet
pichet2000 at gmail.com
Wed Jul 24 10:52:43 PDT 2013
Hi, I implemented the original -fdelayed-template-parsing mode and I simply
did not consider PCH during the design/implementation. As it is currently
this should output an error instead of creating an incomplete AST.
Feel free to add support for fdelayed-template-parsing + PCH.
I never looked at the PCH part of clang so I got no advice really.
On Wed, Jul 24, 2013 at 12:18 PM, Will Wilson <will at indefiant.com> wrote:
> Hi All,
>
> I've discovered a rather nasty issue with -fdelayed-template-parsing
> enabled. If this is used to build a PCH all of the stored template tokens
> are lost leading an incomplete AST when the PCH is used to create the
> complete TU.
>
> Is this by design or a missing feature for the serialization code?
>
> Unfortunately, due to a huge body of MSVC targeted code and a need to use
> PCH files to maintain acceptable performance I need to make this work
> seamlessly. The data that would need preserving is currently stored in the
> Parser and is a map of const FunctionDecl* to LateParsedTemplatedFunction*.
> The LateParsedTemplatedFunction is essentially a SmallVector of Tokens.
>
> Before I dive in and attempt to add support for serializing this, is there
> anything I should know?
>
> Cheers,
> Will.
>
> --
> *Indefiant Ltd.*
>
> _______________________________________________
> 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/20130724/ad4f9032/attachment.html>
More information about the cfe-dev
mailing list