Category : clang-cl

There is CLang-CL which is a drop-in replacement for MSVC’s CL. Does anyone know how to distinguish if my code is currently compiled by clang-cl or msvc’s cl? Without passing any extra defined macros on command line. Using #ifdef _MSC_VER //….. #endif doesn’t work, both compilers define _MSC_VER. Also in regular CLang on Linux (Windows ..

Read more