Fix a few oversights in the clang-tidy VS plugin.

Over-zealous cleanup of using statements removed some that were
actually needed.  Also cleaned up a few warnings.

llvm-svn: 280844
This commit is contained in:
Zachary Turner 2016-09-07 19:41:19 +00:00
parent b96ebe6a1a
commit 8c9a7d7c41
4 changed files with 2 additions and 9 deletions

View File

@ -50,7 +50,7 @@ namespace LLVM.ClangTidy
foreach (var Check in Checks_)
{
if (Names.Contains(Check.Name))
throw new ArgumentException(String.Format("Check {0} exists more than once!", Check.Name));
continue;
Names.Add(Check.Name);
}
}

View File

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
namespace LLVM.ClangTidy

View File

@ -40,7 +40,6 @@ namespace LLVM.ClangTidy
static ClangTidyProperties()
{
RootProperties_ = new ClangTidyProperties(null);
PropertyDescriptor D;
}
public static ClangTidyProperties RootProperties

View File

@ -42,13 +42,6 @@ namespace LLVM.ClangTidy
/// </summary>
List<KeyValuePair<string, ClangTidyProperties>> PropertyChain_ = null;
/// <summary>
/// A tree representing all the checks that the extension knows about, used
/// when serializing a file to intelligently determine when to use wildcard
/// include / exclude rules.
/// </summary>
CheckTree Checks_;
public ClangTidyPropertyGrid()
{
InitializeComponent();