[cfe-dev] Tooling vs -fdelayed-template-parsing WAS: Clang-cl.exe and the VC++ preprocessor

Kim Gräsman kim.grasman at gmail.com
Sun Aug 3 13:54:48 PDT 2014

On Sun, Aug 3, 2014 at 10:41 PM, Reid Kleckner <rnk at google.com> wrote:

> On Sun, Aug 3, 2014 at 10:30 AM, Kim Gräsman <kim.grasman at gmail.com>
> wrote:
>> I'm guessing this introduces a risk for double-visiting FunctionDecls
>> that _do_ become instantiated; can I somehow check the FDs before
>> forcefully instantiating them? Not that I think it makes a big difference,
>> it just seems hygienic not to late-parse and revisit stuff that's already
>> been recorded.
> I think parsing a late parsed function body has the side effect of making
> it not late parsed, so it should never be visited twice.

That makes sense, and seems to be the case.

Thanks for your help!

- Kim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140803/8e056c61/attachment.html>

More information about the cfe-dev mailing list