From b5d892b5b92535444b8bc4ff4a3d6196331c265e Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Thu, 13 Apr 2017 17:42:45 +0000 Subject: [PATCH] Warning-free clang-format plugin install for VS 15.0 With the new release of VS, it's required that all plugins migrate to the new VSIX manifest format. The new format is backwards compatible with all versions newer that Visual Studio 2012, so this migration effectively drops support for older versions of the IDE. It's also required that these new extensions are built with Visual Studio 2017, so unfortunately it was necessary to migrate the project and solution. Also removed COM references to EnvDTE and Microsoft.VisualStudio.TextManager.Interop from the csproj, as they seem to both be unnecessary and would trigger build warnings because of changes to GAC. Patch by Hugo Puhlmann! Differential Revision: https://reviews.llvm.org/D31740 llvm-svn: 300225 --- .../clang-format-vs/ClangFormat/ClangFormat.csproj | 52 ++++------------------ .../clang-format-vs/ClangFormat/packages.config | 1 - .../source.extension.vsixmanifest.in | 52 +++++++--------------- 3 files changed, 24 insertions(+), 81 deletions(-) diff --git a/clang/tools/clang-format-vs/ClangFormat/ClangFormat.csproj b/clang/tools/clang-format-vs/ClangFormat/ClangFormat.csproj index db34a68..c83c413 100644 --- a/clang/tools/clang-format-vs/ClangFormat/ClangFormat.csproj +++ b/clang/tools/clang-format-vs/ClangFormat/ClangFormat.csproj @@ -59,8 +59,10 @@ - ..\packages\VSSDK.DTE.7.0.3\lib\net20\envdte.dll - False + True + + + True @@ -116,10 +118,6 @@ ..\packages\VSSDK.Text.10.0.4\lib\net40\Microsoft.VisualStudio.Text.UI.Wpf.dll False - - ..\packages\VSSDK.TextManager.Interop.7.0.4\lib\net20\Microsoft.VisualStudio.TextManager.Interop.dll - True - False @@ -146,42 +144,6 @@ - - {80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2} - 8 - 0 - 0 - primary - False - False - - - {26AD1324-4B7C-44BC-84F8-B86AED45729F} - 10 - 0 - 0 - primary - False - False - - - {1A31287A-4D7D-413E-8E32-3B374931BD89} - 8 - 0 - 0 - primary - False - False - - - {2CE2370E-D744-4936-A090-3FFFE667B0E1} - 9 - 0 - 0 - primary - False - False - {1CBA492E-7263-47BB-87FE-639000619B15} 8 @@ -230,7 +192,9 @@ - + + Designer + Designer @@ -294,4 +258,4 @@ --> - \ No newline at end of file + diff --git a/clang/tools/clang-format-vs/ClangFormat/packages.config b/clang/tools/clang-format-vs/ClangFormat/packages.config index 38f64ed..07dc281 100644 --- a/clang/tools/clang-format-vs/ClangFormat/packages.config +++ b/clang/tools/clang-format-vs/ClangFormat/packages.config @@ -2,7 +2,6 @@ - diff --git a/clang/tools/clang-format-vs/source.extension.vsixmanifest.in b/clang/tools/clang-format-vs/source.extension.vsixmanifest.in index 55440e1..c0545e6 100644 --- a/clang/tools/clang-format-vs/source.extension.vsixmanifest.in +++ b/clang/tools/clang-format-vs/source.extension.vsixmanifest.in @@ -1,39 +1,19 @@  - - - ClangFormat - LLVM - @CLANG_FORMAT_VS_VERSION@ + + + + ClangFormat A tool to format C/C++/Obj-C code. - 1033 - http://clang.llvm.org/docs/ClangFormat.html + http://clang.llvm.org/docs/ClangFormat.html license.txt - false - - - Pro - - - Pro - - - Pro - - - Pro - - - Pro - - - - - - - Visual Studio MPF - - - - |%CurrentProject%;PkgdefProjectOutputGroup| - - + + + + + + + + + + + -- 2.7.4