UPDATE
MSYS2 packages are available for clang on a 32-bit and 64-bit basis, and due to limited testing, I did this, it seems to work quite well. The compiler can be used from outside the MSYS2 environment.
See how to install MSYS2 here . Then just run
pacman -Sy mingw-w64-x86_64-clang
or
pacman -Sy mingw-w64-i686-clang
after updating MSYS2 to install Clang.
Patches used in this package (if you want to create LLVM / Clang yourself) are located here .
old answer follows, a bit outdated
If you want to use Clang for Windows for C ++, currently the only option is to use (or create yourself) Clang with / for MinGW (-w64).
Luckily for you, I provide packages:
Unzip both directories to the same directory and add mingw32-dw2/bin to PATH , or point to code blocks on it. You will be limited to GCC 4.6 libstdc ++. Clang 3.2. C ++ 11 language support is fully functional.
Note that Clang expects GCC style options, so I suggest changing the process of building GCC code and replacing g++ with clang++ and gcc with clang .
source share