]> granicus.if.org Git - clang/commitdiff
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194477 91177308-0d34-0410...
authorManuel Klimek <klimek@google.com>
Tue, 12 Nov 2013 13:54:22 +0000 (13:54 +0000)
committerManuel Klimek <klimek@google.com>
Tue, 12 Nov 2013 13:54:22 +0000 (13:54 +0000)
tools/clang-format-vs/ClangFormat.sln
tools/clang-format-vs/ClangFormat/ClangFormat.csproj
tools/clang-format-vs/ClangFormat/ClangFormat.vsct
tools/clang-format-vs/ClangFormat/Resources/Package.ico
tools/clang-format-vs/ClangFormat/source.extension.vsixmanifest

index d6b211fe506f2c46bd09970a3cc580bd11cdb74c..56d89555d66a900697aa3db219a16e9cd9ac5e42 100644 (file)
@@ -1,7 +1,7 @@
 \r
-Microsoft Visual Studio Solution File, Format Version 12.00\r
-# Visual Studio 2012\r
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClangFormat", "ClangFormat\ClangFormat.csproj", "{7FD1783E-2D31-4D05-BF23-6EBE1B42B608}"\r
+Microsoft Visual Studio Solution File, Format Version 11.00\r
+# Visual Studio 2010\r
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClangFormat", "ClangFormat\ClangFormat.csproj", "{70E9F7C8-C51D-436C-A16E-135A9DBE1266}"\r
 EndProject\r
 Global\r
        GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
@@ -9,10 +9,10 @@ Global
                Release|Any CPU = Release|Any CPU\r
        EndGlobalSection\r
        GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
-               {7FD1783E-2D31-4D05-BF23-6EBE1B42B608}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
-               {7FD1783E-2D31-4D05-BF23-6EBE1B42B608}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
-               {7FD1783E-2D31-4D05-BF23-6EBE1B42B608}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
-               {7FD1783E-2D31-4D05-BF23-6EBE1B42B608}.Release|Any CPU.Build.0 = Release|Any CPU\r
+               {70E9F7C8-C51D-436C-A16E-135A9DBE1266}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
+               {70E9F7C8-C51D-436C-A16E-135A9DBE1266}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
+               {70E9F7C8-C51D-436C-A16E-135A9DBE1266}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
+               {70E9F7C8-C51D-436C-A16E-135A9DBE1266}.Release|Any CPU.Build.0 = Release|Any CPU\r
        EndGlobalSection\r
        GlobalSection(SolutionProperties) = preSolution\r
                HideSolutionNode = FALSE\r
index 51e138216d67dd91ca23309cb6ec24f3755e7c4c..f26fc1a72cbf33abde7cb145e047d62d26b13ec2 100644 (file)
@@ -1,27 +1,18 @@
 <?xml version="1.0" encoding="utf-8"?>\r
 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">\r
-  <PropertyGroup>\r
-    <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>\r
-    <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">11.0</VisualStudioVersion>\r
-    <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>\r
-  </PropertyGroup>\r
-  <PropertyGroup>\r
-    <DelaySign>false</DelaySign>\r
-  </PropertyGroup>\r
-  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />\r
   <PropertyGroup>\r
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>\r
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>\r
     <SchemaVersion>2.0</SchemaVersion>\r
-    <ProjectGuid>{7FD1783E-2D31-4D05-BF23-6EBE1B42B608}</ProjectGuid>\r
+    <ProjectGuid>{70e9f7c8-c51d-436c-a16e-135a9dbe1266}</ProjectGuid>\r
     <ProjectTypeGuids>{82b43b9b-a64c-4715-b499-d71e9ca2bd60};{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>\r
     <OutputType>Library</OutputType>\r
     <AppDesignerFolder>Properties</AppDesignerFolder>\r
-    <RootNamespace>LLVM.ClangFormat</RootNamespace>\r
+    <RootNamespace>Company.ClangFormat</RootNamespace>\r
     <AssemblyName>ClangFormat</AssemblyName>\r
-    <SignAssembly>true</SignAssembly>\r
+    <SignAssembly>True</SignAssembly>\r
     <AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile>\r
-    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>\r
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>\r
   </PropertyGroup>\r
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
     <DebugSymbols>true</DebugSymbols>\r
@@ -31,8 +22,6 @@
     <DefineConstants>DEBUG;TRACE</DefineConstants>\r
     <ErrorReport>prompt</ErrorReport>\r
     <WarningLevel>4</WarningLevel>\r
-    <CodeAnalysisIgnoreGeneratedCode>false</CodeAnalysisIgnoreGeneratedCode>\r
-    <RunCodeAnalysis>false</RunCodeAnalysis>\r
   </PropertyGroup>\r
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">\r
     <DebugType>pdbonly</DebugType>\r
   </PropertyGroup>\r
   <ItemGroup>\r
     <Reference Include="Microsoft.CSharp" />\r
-    <Reference Include="Microsoft.VisualStudio.CoreUtility, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />\r
-    <Reference Include="Microsoft.VisualStudio.Editor, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />\r
     <Reference Include="Microsoft.VisualStudio.OLE.Interop" />\r
     <Reference Include="Microsoft.VisualStudio.Shell.Interop" />\r
     <Reference Include="Microsoft.VisualStudio.Shell.Interop.8.0" />\r
     <Reference Include="Microsoft.VisualStudio.Shell.Interop.9.0" />\r
     <Reference Include="Microsoft.VisualStudio.Shell.Interop.10.0" />\r
-    <Reference Include="Microsoft.VisualStudio.Shell.Interop.11.0">\r
-      <EmbedInteropTypes>true</EmbedInteropTypes>\r
-    </Reference>\r
-    <Reference Include="Microsoft.VisualStudio.Text.Data, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />\r
-    <Reference Include="Microsoft.VisualStudio.Text.Logic, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />\r
-    <Reference Include="Microsoft.VisualStudio.Text.UI, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />\r
-    <Reference Include="Microsoft.VisualStudio.Text.UI.Wpf, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />\r
     <Reference Include="Microsoft.VisualStudio.TextManager.Interop" />\r
-    <Reference Include="Microsoft.VisualStudio.Shell.11.0" />\r
+    <Reference Include="Microsoft.VisualStudio.Shell.10.0">\r
+      <Private>false</Private>\r
+    </Reference>\r
     <Reference Include="Microsoft.VisualStudio.Shell.Immutable.10.0" />\r
-    <Reference Include="Microsoft.VisualStudio.Shell.Immutable.11.0" />\r
     <Reference Include="System" />\r
     <Reference Include="System.Core" />\r
     <Reference Include="System.Data" />\r
@@ -70,7 +51,6 @@
     <Reference Include="System.Drawing" />\r
     <Reference Include="System.Windows.Forms" />\r
     <Reference Include="System.Xml" />\r
-    <Reference Include="System.Xml.Linq" />\r
   </ItemGroup>\r
   <ItemGroup>\r
     <COMReference Include="EnvDTE">\r
       <DependentUpon>Resources.resx</DependentUpon>\r
     </Compile>\r
     <Compile Include="GlobalSuppressions.cs" />\r
-    <Compile Include="ClangFormatPackage.cs">\r
-      <SubType>Component</SubType>\r
-    </Compile>\r
+    <Compile Include="ClangFormatPackage.cs" />\r
     <Compile Include="Properties\AssemblyInfo.cs" />\r
+\r
     <Compile Include="PkgCmdID.cs" />\r
   </ItemGroup>\r
   <ItemGroup>\r
     </EmbeddedResource>\r
   </ItemGroup>\r
   <ItemGroup>\r
-    <None Include="Key.snk" />\r
     <None Include="source.extension.vsixmanifest">\r
       <SubType>Designer</SubType>\r
     </None>\r
   </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Key.snk" />\r
+  </ItemGroup>\r
   <ItemGroup>\r
     <VSCTCompile Include="ClangFormat.vsct">\r
       <ResourceName>Menus.ctmenu</ResourceName>\r
     </VSCTCompile>\r
   </ItemGroup>\r
   <ItemGroup>\r
-    <None Include="Resources\Images.png" />\r
+    <None Include="Resources\Images_32bit.bmp" />\r
   </ItemGroup>\r
+\r
   <ItemGroup>\r
     <Content Include="Resources\Package.ico" />\r
   </ItemGroup>\r
     <UseCodebase>true</UseCodebase>\r
   </PropertyGroup>\r
   <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />\r
-  <Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />\r
-  <PropertyGroup>\r
-    <PreBuildEvent>if not exist $(ProjectDir)Key.snk (\r
-  "$(FrameworkSDKDir)Bin\NETFX 4.0 Tools\sn.exe" -k $(ProjectDir)Key.snk\r
-)</PreBuildEvent>\r
-  </PropertyGroup>\r
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\VSSDK\Microsoft.VsSDK.targets" />\r
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. \r
        Other similar extension points exist, see Microsoft.Common.targets.\r
   <Target Name="BeforeBuild">\r
   <Target Name="AfterBuild">\r
   </Target>\r
   -->\r
-</Project>
\ No newline at end of file
+</Project>\r
index 9037ecde2493a800a092b117bb2aee4850356d82..4c92379a2deae3221e2af4a76d0b990d44dce174 100644 (file)
@@ -20,6 +20,9 @@
   <!--This header contains the command ids for the menus provided by the shell. -->\r
   <Extern href="vsshlids.h"/>\r
 \r
+  <!--Definition of some VSCT specific constants. In this sample we use it for the IDs inside the guidOfficeIcon group. -->\r
+  <Extern href="msobtnid.h"/>\r
+\r
 \r
 \r
 \r
@@ -59,7 +62,7 @@
           You can add more than one CommandFlag node e.g.:\r
               <CommandFlag>DefaultInvisible</CommandFlag>\r
               <CommandFlag>DynamicVisibility</CommandFlag>\r
-          If you do not want an image next to your command, remove the Icon node /> -->\r
+          If you do not want an image next to your command, remove the Icon node or set it to <Icon guid="guidOfficeIcon" id="msotcidNoIcon" /> -->\r
 \r
       <Button guid="guidClangFormatCmdSet" id="cmdidClangFormat" priority="0x0100" type="Button">\r
         <Parent guid="guidClangFormatCmdSet" id="MyMenuGroup" />\r
@@ -80,8 +83,8 @@
             bitmap strip containing the bitmaps and then there are the numeric ids of the elements used \r
             inside a button definition. An important aspect of this declaration is that the element id \r
             must be the actual index (1-based) of the bitmap inside the bitmap strip. -->\r
-      <Bitmap guid="guidImages" href="Resources\Images.png" usedList="bmpPic1, bmpPic2, bmpPicSearch, bmpPicX, bmpPicArrows"/>\r
-      \r
+      <Bitmap guid="guidImages" href="Resources\Images_32bit.bmp" usedList="bmpPic1, bmpPic2, bmpPicSearch, bmpPicX, bmpPicArrows"/>\r
+\r
     </Bitmaps>\r
  \r
   </Commands>\r
       <IDSymbol name="bmpPicSearch" value="3" />\r
       <IDSymbol name="bmpPicX" value="4" />\r
       <IDSymbol name="bmpPicArrows" value="5" />\r
-      <IDSymbol name="bmpPicStrikethrough" value="6" />\r
     </GuidSymbol>\r
   </Symbols>\r
 \r
index 449296f495af26f2b41bb1626a28de7432145472..ea3b23fe8d4b3a45be89f9286e617624007290be 100644 (file)
Binary files a/tools/clang-format-vs/ClangFormat/Resources/Package.ico and b/tools/clang-format-vs/ClangFormat/Resources/Package.ico differ
index 274c028ed2194a3b16d46b37ba70e6ff7167bf88..b559e9c8ecd701b4961d1ec2ea0a5d96b0022353 100644 (file)
@@ -1,18 +1,25 @@
 <?xml version="1.0" encoding="utf-8"?>\r
-<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">\r
-  <Metadata>\r
-    <Identity Id="c5286038-25d3-4f65-83a8-51fa2df4a146" Version="1.0" Language="en-US" Publisher="LLVM" />\r
-    <DisplayName>ClangFormat</DisplayName>\r
-    <Description>Formats code by calling the clang-format executable.</Description>\r
-  </Metadata>\r
-  <Installation InstalledByMsi="false">\r
-    <InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="11.0" />\r
-  </Installation>\r
-  <Dependencies>\r
-    <Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="4.5" />\r
-    <Dependency Id="Microsoft.VisualStudio.MPF.11.0" DisplayName="Visual Studio MPF 11.0" d:Source="Installed" Version="11.0" />\r
-  </Dependencies>\r
-  <Assets>\r
-    <Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />\r
-  </Assets>\r
-</PackageManifest>\r
+<Vsix Version="1.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2010">\r
+  <Identifier Id="20dbc914-1c7a-4992-b236-ef58b37850eb">\r
+    <Name>ClangFormat</Name>\r
+    <Author>LLVM</Author>\r
+    <Version>1.0</Version>\r
+    <Description xml:space="preserve">Information about my package</Description>\r
+    <Locale>1033</Locale>\r
+    <InstalledByMsi>false</InstalledByMsi>\r
+    <SupportedProducts>\r
+      <VisualStudio Version="10.0">\r
+        <Edition>Pro</Edition>\r
+      </VisualStudio>\r
+    </SupportedProducts>\r
+    <SupportedFrameworkRuntimeEdition MinVersion="4.0" MaxVersion="4.0" />\r
+  </Identifier>\r
+  <References>\r
+        <Reference Id="Microsoft.VisualStudio.MPF" MinVersion="10.0">\r
+            <Name>Visual Studio MPF</Name>\r
+        </Reference>\r
+  </References>\r
+  <Content>\r
+    <VsPackage>|%CurrentProject%;PkgdefProjectOutputGroup|</VsPackage>\r
+  </Content>\r
+</Vsix>\r