[cfe-dev] Clang-cl.exe and the VC++ preprocessor

Jonathan 'Rynn' Sauer jonathan.sauer at gmx.de
Fri Jul 11 08:32:48 PDT 2014


Hello,

> Also it's worth pointing out that the idea is not to emulate VC++ in every respect.  Only in every respect where not doing so will break vast amounts of code.  There are plenty of places where not emulating VC++ will *fix* vasts amounts of code.  I imagine the goal is to depart with VC++ in those respects.   
> 
> There are examples where not emulating VC++'s bugs means **we can't even include standard windows headers**.  Surely we agree that a Windows compiler that cannot include <windows.h> would not be particularly useful.

Could it be an option to limit the emulation of VC++'s preprocessor to system headers and macros defined
there, similar to how clang suppresses warnings in these cases?


Jonathan





More information about the cfe-dev mailing list