[PATCH] Permit duplicate explicit class instantiations if MSVCCompat is enabled

Will Wilson will at indefiant.com
Wed May 7 09:58:06 PDT 2014


Now with added patch...


On 7 May 2014 18:57, Will Wilson <will at indefiant.com> wrote:

> Hi All,
>
> Here's a small patch to allow duplicate explicit class instantiations
> through with only a warning in MSVCCompat mode. MSVC itself silently
> ignores duplicate explicit instantiations. Clang appears to skip any
> duplicates so it shouldn't be too much of an issue to reduce the error to a
> warning for MSVC compatibility in this case.
>
> Test case included and clang format applied. Let me know if it LGTY.
>
> Cheers,
> Will.
>



-- 
*Indefiant *: http://www.indefiant.com
Home of Recode : Runtime C++ Editing for VS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140507/272659d0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ms_explicit_warn_formatted.patch
Type: application/octet-stream
Size: 2346 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140507/272659d0/attachment.obj>


More information about the cfe-commits mailing list