[cfe-dev] Clang and MSVC11 headers
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 /
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...
More information about the cfe-dev