[cfe-dev] clang 'emulating' VC++ on Windows predefined macros
Yaron Keren via cfe-dev
cfe-dev at lists.llvm.org
Mon Mar 28 07:00:26 PDT 2016
Both __clang__ and _MSC_VER would be defined for clang-cl. In this mode you
are more likely to use clang or gcc-compatible features rather than the VC
bugs/workarounds, not all of which are emulated by clang-cl.
Some examples from the last time I tried using Boost with clang-cl :
2016-03-28 14:43 GMT+03:00 Edward Diener via cfe-dev <cfe-dev at lists.llvm.org
> There is a build of clang which 'emulates' VC++ including the non-standard
> VC++ preprocessor. How can I tell, via preprocessor defines, when this
> occurs in preprocessor code ?
> I am the author of Boost VMD and a maintainer of Boost PP and I need to
> set internal macros in both, when the non-standard VC++ preprocessor is
> being used, so that the VC++ workarounds which allow both libraries to work
> with VC++ are in effect.
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev