Why use Clang on Windows
Are you looking to to Windows, or starting a fresh project? clang compiler windows
I blinked. I looked at the code. There was a logic path where my function returned nothing. It was a bug that had been dormant for five years. MSVC had happily compiled it, returning random garbage from the stack, which was causing a crash ten minutes later in a completely different thread. MSVC was blaming the linker; Clang blamed the logic. Why use Clang on Windows Are you looking
1. "Clang error: cannot find crtdefs.h" or missing standard headers There was a logic path where my function returned nothing
If you maintain software that runs across Windows, macOS, Linux, iOS, and Android, using the same compiler front-end across all environments drastically reduces "compiler-specific" bugs. Code that compiles successfully under Clang on Linux is highly likely to compile identically under Clang on Windows. 3. ABI Compatibility with MSVC