[cfe-commits] [PATCH][MS] - MSVC allows type definition in anonymous union and struct

Francois Pichet pichet2000 at gmail.com
Sat Sep 4 21:12:11 PDT 2010


Hi

Here is  followup patch.
I added a warning as you said. To do this I created a new MSVC
DiagGroup similar to -Wgnu.
This MSVC (-Wmsvc) diagnostic group is just starting up but eventually
we'll put all MSVC extensions into it.


On Fri, Sep 3, 2010 at 11:26 AM, Douglas Gregor <dgregor at apple.com> wrote:
>
> On Sep 1, 2010, at 3:32 AM, Francois Pichet wrote:
>
>> Hi
>>
>> Another patch for MSVC compatibility.
>> This one deals with allowing type definition inside anonymous union or
>> struct in Microsoft mode.
>>
>> This patch removes 15 errors while parsing 1200 header files from the
>> Windows SDK.
>
> This look fine, but I think it should be an Extension or ExtWarn in Microsoft mode. The warning will get suppressed in headers, but we'll still tell users when they're making use of an extension.
>
>        - Doug
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: type_def_in_anon_type.patch
Type: application/octet-stream
Size: 4725 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100905/70f6cbbb/attachment.obj>


More information about the cfe-commits mailing list