forked from OSchip/llvm-project
586448763e
Previously it was hard-coded to 1.0, which meant the installer would not install the plugin over previous versions. This commit makes us use LLVM's major.minor.patch version from cmake, or whatever CLANG_FORMAT_VS_VERSION is set to when configuring the build. It's pretty dirty to update a configuration file in the source directory from the cmake build like this. However, the plugin build is already dirty in this regard since it builds in the source dir when visual studio, and then copies out the resulting vsix. llvm-svn: 213584 |
||
---|---|---|
.. | ||
ClangFormat | ||
CMakeLists.txt | ||
ClangFormat.sln | ||
README.txt | ||
source.extension.vsixmanifest.in |
README.txt
This directory contains a VSPackage project to generate a Visual Studio extension for clang-format. Build prerequisites are: - Visual Studio 2012 Professional - Visual Studio 2010 Professional - Visual Studio 2010 SDK. clang-format.exe must be copied into the ClangFormat/ directory before building. It will be bundled into the .vsix file. The extension can be built manually from ClangFormat.sln (e.g. by opening it in Visual Studio), or with cmake by setting the BUILD_CLANG_FORMAT_VS_PLUGIN flag.