]> granicus.if.org Git - clang/commit
clang-format vs plugin: set version number from cmake (PR20307)
authorHans Wennborg <hans@hanshq.net>
Mon, 21 Jul 2014 21:48:06 +0000 (21:48 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 21 Jul 2014 21:48:06 +0000 (21:48 +0000)
commit4ae9fc5880d0f2d341e38d6519e1f4850c7a3bed
tree06d07913654150f91b895ea1a4ea73566e74e834
parente055412e132eef359a271de4bf02eb2b09aed960
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213584 91177308-0d34-0410-b5e6-96231b3b80d8
tools/clang-format-vs/CMakeLists.txt
tools/clang-format-vs/source.extension.vsixmanifest.in [moved from tools/clang-format-vs/ClangFormat/source.extension.vsixmanifest with 78% similarity]