llvm-project/clang/tools/clang-format-vs
Hans Wennborg 586448763e clang-format vs plugin: set version number from cmake (PR20307)
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
2014-07-21 21:48:06 +00:00
..
ClangFormat clang-format vs plugin: set version number from cmake (PR20307) 2014-07-21 21:48:06 +00:00
CMakeLists.txt clang-format vs plugin: set version number from cmake (PR20307) 2014-07-21 21:48:06 +00:00
ClangFormat.sln Upgrade the VS solution to 2012. 2013-11-12 17:01:53 +00:00
README.txt CMake: enable building the clang-format vs plugin 2013-12-03 18:02:51 +00:00
source.extension.vsixmanifest.in clang-format vs plugin: set version number from cmake (PR20307) 2014-07-21 21:48:06 +00:00

README.txt

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.