Skip to content

Commit 79b3748

Browse files
committed
Update some code used in our visual studio plugins to use linux file
endings. We already used them in some cases, and this makes things consistent. This will also simplify updating the licenses in these files. llvm-svn: 351632
1 parent 469bdef commit 79b3748

File tree

6 files changed

+723
-723
lines changed

6 files changed

+723
-723
lines changed
Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
1-
//===-- ClangTidyPackages.cs - VSPackage for clang-tidy ----------*- C# -*-===//
2-
//
3-
// The LLVM Compiler Infrastructure
4-
//
5-
// This file is distributed under the University of Illinois Open Source
6-
// License. See LICENSE.TXT for details.
7-
//
8-
//===----------------------------------------------------------------------===//
9-
//
10-
// This class contains a VS extension package that runs clang-tidy over a
11-
// file in a VS text editor.
12-
//
13-
//===----------------------------------------------------------------------===//
14-
15-
using Microsoft.VisualStudio.Editor;
16-
using Microsoft.VisualStudio.Shell;
17-
using Microsoft.VisualStudio.Shell.Interop;
18-
using Microsoft.VisualStudio.TextManager.Interop;
19-
using System;
20-
using System.Collections;
21-
using System.ComponentModel;
22-
using System.ComponentModel.Design;
23-
using System.IO;
24-
using System.Runtime.InteropServices;
25-
using System.Windows.Forms;
26-
using System.Xml.Linq;
27-
28-
namespace LLVM.ClangTidy
29-
{
30-
[PackageRegistration(UseManagedResourcesOnly = true)]
31-
[InstalledProductRegistration("#110", "#112", "1.0", IconResourceID = 400)]
32-
[ProvideMenuResource("Menus.ctmenu", 1)]
33-
[Guid(GuidList.guidClangTidyPkgString)]
34-
[ProvideOptionPage(typeof(ClangTidyConfigurationPage), "LLVM/Clang", "ClangTidy", 0, 0, true)]
35-
public sealed class ClangTidyPackage : Package
36-
{
37-
#region Package Members
38-
protected override void Initialize()
39-
{
40-
base.Initialize();
41-
42-
var commandService = GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
43-
if (commandService != null)
44-
{
45-
var menuCommandID = new CommandID(GuidList.guidClangTidyCmdSet, (int)PkgCmdIDList.cmdidClangTidy);
46-
var menuItem = new MenuCommand(MenuItemCallback, menuCommandID);
47-
commandService.AddCommand(menuItem);
48-
}
49-
}
50-
#endregion
51-
52-
private void MenuItemCallback(object sender, EventArgs args)
53-
{
54-
}
55-
}
56-
}
1+
//===-- ClangTidyPackages.cs - VSPackage for clang-tidy ----------*- C# -*-===//
2+
//
3+
// The LLVM Compiler Infrastructure
4+
//
5+
// This file is distributed under the University of Illinois Open Source
6+
// License. See LICENSE.TXT for details.
7+
//
8+
//===----------------------------------------------------------------------===//
9+
//
10+
// This class contains a VS extension package that runs clang-tidy over a
11+
// file in a VS text editor.
12+
//
13+
//===----------------------------------------------------------------------===//
14+
15+
using Microsoft.VisualStudio.Editor;
16+
using Microsoft.VisualStudio.Shell;
17+
using Microsoft.VisualStudio.Shell.Interop;
18+
using Microsoft.VisualStudio.TextManager.Interop;
19+
using System;
20+
using System.Collections;
21+
using System.ComponentModel;
22+
using System.ComponentModel.Design;
23+
using System.IO;
24+
using System.Runtime.InteropServices;
25+
using System.Windows.Forms;
26+
using System.Xml.Linq;
27+
28+
namespace LLVM.ClangTidy
29+
{
30+
[PackageRegistration(UseManagedResourcesOnly = true)]
31+
[InstalledProductRegistration("#110", "#112", "1.0", IconResourceID = 400)]
32+
[ProvideMenuResource("Menus.ctmenu", 1)]
33+
[Guid(GuidList.guidClangTidyPkgString)]
34+
[ProvideOptionPage(typeof(ClangTidyConfigurationPage), "LLVM/Clang", "ClangTidy", 0, 0, true)]
35+
public sealed class ClangTidyPackage : Package
36+
{
37+
#region Package Members
38+
protected override void Initialize()
39+
{
40+
base.Initialize();
41+
42+
var commandService = GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
43+
if (commandService != null)
44+
{
45+
var menuCommandID = new CommandID(GuidList.guidClangTidyCmdSet, (int)PkgCmdIDList.cmdidClangTidy);
46+
var menuItem = new MenuCommand(MenuItemCallback, menuCommandID);
47+
commandService.AddCommand(menuItem);
48+
}
49+
}
50+
#endregion
51+
52+
private void MenuItemCallback(object sender, EventArgs args)
53+
{
54+
}
55+
}
56+
}

0 commit comments

Comments
 (0)