[cfe-dev] Clang and MSVC11 headers

Leszek Świrski leszek at swirski.co.uk
Thu May 2 02:56:57 PDT 2013


On 2 May 2013 04:39, Nico Weber <thakis at chromium.org> wrote:

> …no, it broke gtest. http://llvm.org/bugs/show_bug.cgi?id=13924 /
> http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120924/065029.html
>
>
Oddly enough, that test passes using MSVC.

I suspect this might be because the given patch only partially emulates
MSVC behaviour; that is, it has commas as a special case, whereas I think
the problem is something along the lines of the expanded macro parameter
not being re-tokenised, commas, parens and all. If there is indeed such a
retokenisation step, perhaps MS compatibility mode could skip it? I don't
know nearly enough about Clang internals, or indeed the C preprocessor, to
submit a patch, but that's my "layman's analysis".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130502/cc53a836/attachment.html>


More information about the cfe-dev mailing list