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

Manuel Klimek klimek at google.com
Mon Aug 4 05:43:28 PDT 2014


On Sun, Aug 3, 2014 at 10:54 PM, Kim Gräsman <kim.grasman at gmail.com> wrote:

> 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.
>

Can we somehow get this into the tooling infrastructure? I'd consider it a
bug if fdelayed-template-parsing leads to ASTs that don't have the
templates; from reading the docs, it seems like all it should do is parse
them at the end of the translation unit, or am I missing something?

Cheers,
/Manuel


> Thanks for your help!
>
> - Kim
>
> _______________________________________________
> 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/20140804/f94317bd/attachment.html>


More information about the cfe-dev mailing list