We provide a periodically updated installer for Windows:
If there is a previous version installed, the installer provides an option to uninstall it.
Currently, the package includes clang, clang-format, lld, and the AddressSanitizer runtime from compiler-rt. Eventually it should grow to encompass other Clang tools, and possibly other LLVM projects such as libc++.
To use the LLVM toolchain from Visual Studio after running the installer
above, install the LLVM
Compiler Toolchain Visual Studio extension (supports Visual Studio 2017 and
later), select a project in Solution Explorer, open its Property Page (Alt+F7 by
default), and in the "General" section of "Configuration Properties" change
"Platform Toolset" to "llvm". Alternatively, invoke MSBuild with
/p:PlatformToolset=llvm to try out the toolchain without
modifying the project files.
The .sig files are PGP signatures using key 345AD05D.
We also provide a standalone Visual Studio plugin for clang-format. It requires Visual Studio 2012 Professional or later. Notably, the Express editions do not support plugins.
Visual Studio plugin installer (.sig), based on SVN r351376. Also available at the Visual Studio Marketplace. A separate build of the clang-format binary is available as clang-format-r351376.exe (.sig).