[cfe-commits] [PATCH][MS][Review request] - Late Microsoft template parsing
Francois Pichet
pichet2000 at gmail.com
Mon Mar 14 21:29:19 PDT 2011
On Mon, Mar 14, 2011 at 5:04 PM, Douglas Gregor <dgregor at apple.com> wrote:
>
> On Mar 14, 2011, at 2:03 PM, Francois Pichet wrote:
>
>> On Mon, Mar 14, 2011 at 1:46 PM, Douglas Gregor <dgregor at apple.com> wrote:
>>>
>>> On Mar 14, 2011, at 10:36 AM, John McCall wrote:
>>>
>>>> On Mar 13, 2011, at 11:07 PM, Francois Pichet wrote:
>>>>> This patch implements "Late template parsing" in Microsoft mode.
>>>>> It solves the problem of Microsoft allowing names not yet declared in
>>>>> template code.
>>>>
>>>> I haven't looked at the patch yet, but this defintely needs to be enabled
>>>> by its own -cc1 language option; that option should then be enabled by
>>>> windows targets, rather than tying this to -fms-extensions.
>>>
>>>
>>> Yes. -fdelayed-template-parsing seems a good name.
>>>
>>> - Doug
>>>
>>
>> ok then i'll provide a new patch soon. I'll remove the *Microsoft*
>> from all the structs and functions names to make the patch more
>> generic.
>
> Thanks!
hi,
Here is an updated patch.
Currently all delayed template functions are parsed at the end of the
translation unit.
What I would like to do in a next patch is to parse delayed template
code only when it is necessary because it is needed by template
instantiation. As such template code never instantiated will be never
be parsed with the -fdelayed-template-parsing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LateParsedMSTemplate.patch
Type: application/octet-stream
Size: 19467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110315/bcda3be5/attachment.obj>
More information about the cfe-commits
mailing list