hanchenye-llvm-project/clang/tools/clang-format-vs
Hans Wennborg 043d9e369f Fix VS2015 build of clang-format-vsix by using NuGet to pull in required assemblies
Also added a gitignore to help track the right items to commit.

Patch by Antonio Maiorano <amaiorano@gmail.com>!

llvm-svn: 288393
2016-12-01 18:05:41 +00:00
..
ClangFormat Fix VS2015 build of clang-format-vsix by using NuGet to pull in required assemblies 2016-12-01 18:05:41 +00:00
.gitignore Fix VS2015 build of clang-format-vsix by using NuGet to pull in required assemblies 2016-12-01 18:05:41 +00:00
CMakeLists.txt Fix VS2015 build of clang-format-vsix by using NuGet to pull in required assemblies 2016-12-01 18:05:41 +00:00
ClangFormat.sln
README.txt Fix VS2015 build of clang-format-vsix by using NuGet to pull in required assemblies 2016-12-01 18:05:41 +00:00
source.extension.vsixmanifest.in

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 2015
- Extensions SDK (you'll be prompted to install it if you open ClangFormat.sln)

The extension is built using CMake to generate the usual LLVM.sln by setting
the following CMake vars:

- BUILD_CLANG_FORMAT_VS_PLUGIN=ON

- NUGET_EXE_PATH=path/to/nuget_dir (unless nuget.exe is already available in PATH)

example:
  cd /d C:\code\llvm
  mkdir build & cd build
  cmake -DBUILD_CLANG_FORMAT_VS_PLUGIN=ON -DNUGET_EXE_PATH=C:\nuget ..

Once LLVM.sln is generated, build the clang_format_vsix target, which will build
ClangFormat.sln, the C# extension application.

The CMake build will copy clang-format.exe and LICENSE.TXT into the ClangFormat/
directory so they can be bundled with the plug-in, as well as creating
ClangFormat/source.extension.vsixmanifest. Once the plug-in has been built with
CMake once, it can be built manually from the ClangFormat.sln solution in Visual
Studio.