summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy-vs/ClangTidy/ForwardingPropertyDescriptor.cs
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2019-08-27 18:36:08 +0000
committerAlex Lorenz <arphaman@gmail.com>2019-08-27 18:36:08 +0000
commit559ae14c9b6cf203e0e7495892080e52e89c1ea0 (patch)
tree1a4e5f547fad08a4fcded9e8b0d451cce44ae4ac /clang-tools-extra/clang-tidy-vs/ClangTidy/ForwardingPropertyDescriptor.cs
parent2f2feebf4d30a03793e587e8cbcde73e693c1d13 (diff)
downloadbcm5719-llvm-559ae14c9b6cf203e0e7495892080e52e89c1ea0.tar.gz
bcm5719-llvm-559ae14c9b6cf203e0e7495892080e52e89c1ea0.zip
Remove clang-tidy-vs from clang-tools-extra (PR41791)
The clang-tidy-vs visual studio plugin in clang-tools-extra contains a security vulnerability in the YamlDotNet package [1]. I posted to cfe-dev [2], asking if there was anyone who was interested in updating the the plugin to address the vulnerability. Reid mentioned that Zach (the original committer), said that there's another plugin (Clang Power Tools) that provides clang-tidy support, with additional extra features, so it would be ok to remove clang-tidy-vs. This commit removes the plugin to address the security vulnerability, and adds a section to the release notes that mentions that the plugin was removed, and suggests to use Clang Power Tools. Fixes PR 41791. [1]: https://nvd.nist.gov/vuln/detail/CVE-2018-1000210 [2]: http://lists.llvm.org/pipermail/cfe-dev/2019-August/063196.html Differential Revision: https://reviews.llvm.org/D66813 llvm-svn: 370096
Diffstat (limited to 'clang-tools-extra/clang-tidy-vs/ClangTidy/ForwardingPropertyDescriptor.cs')
-rw-r--r--clang-tools-extra/clang-tidy-vs/ClangTidy/ForwardingPropertyDescriptor.cs191
1 files changed, 0 insertions, 191 deletions
diff --git a/clang-tools-extra/clang-tidy-vs/ClangTidy/ForwardingPropertyDescriptor.cs b/clang-tools-extra/clang-tidy-vs/ClangTidy/ForwardingPropertyDescriptor.cs
deleted file mode 100644
index 22b08fbb543..00000000000
--- a/clang-tools-extra/clang-tidy-vs/ClangTidy/ForwardingPropertyDescriptor.cs
+++ /dev/null
@@ -1,191 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace LLVM.ClangTidy
-{
- /// <summary>
- /// A decorator of sorts. Accepts a PropertyDescriptor to its constructor
- /// and forwards all calls to the underlying PropertyDescriptor. In this way
- /// we can inherit from ForwardingPropertyDescriptor and override only the
- /// few methods we need to customize the behavior of, while allowing the
- /// underlying PropertyDescriptor to do the real work.
- /// </summary>
- public abstract class ForwardingPropertyDescriptor : PropertyDescriptor
- {
- private readonly PropertyDescriptor root;
- protected PropertyDescriptor Root { get { return root; } }
- protected ForwardingPropertyDescriptor(PropertyDescriptor root)
- : base(root)
- {
- this.root = root;
- }
-
- public override void AddValueChanged(object component, EventHandler handler)
- {
- root.AddValueChanged(component, handler);
- }
-
- public override AttributeCollection Attributes
- {
- get
- {
- return root.Attributes;
- }
- }
-
- public override bool CanResetValue(object component)
- {
- return root.CanResetValue(component);
- }
-
- public override string Category
- {
- get
- {
- return root.Category;
- }
- }
-
- public override Type ComponentType
- {
- get
- {
- return root.ComponentType;
- }
- }
-
- public override TypeConverter Converter
- {
- get
- {
- return root.Converter;
- }
- }
-
- public override string Description
- {
- get
- {
- return root.Description;
- }
- }
-
- public override bool DesignTimeOnly
- {
- get
- {
- return root.DesignTimeOnly;
- }
- }
-
- public override string DisplayName
- {
- get
- {
- return root.DisplayName;
- }
- }
-
- public override bool Equals(object obj)
- {
- return root.Equals(obj);
- }
-
- public override PropertyDescriptorCollection GetChildProperties(object instance, Attribute[] filter)
- {
- return root.GetChildProperties(instance, filter);
- }
-
- public override object GetEditor(Type editorBaseType)
- {
- return root.GetEditor(editorBaseType);
- }
-
- public override int GetHashCode()
- {
- return root.GetHashCode();
- }
-
- public override object GetValue(object component)
- {
- return root.GetValue(component);
- }
-
- public override bool IsBrowsable
- {
- get
- {
- return root.IsBrowsable;
- }
- }
-
- public override bool IsLocalizable
- {
- get
- {
- return root.IsLocalizable;
- }
- }
-
- public override bool IsReadOnly
- {
- get
- {
- return root.IsReadOnly;
- }
- }
-
- public override string Name
- {
- get
- {
- return root.Name;
- }
- }
-
- public override Type PropertyType
- {
- get
- {
- return root.PropertyType;
- }
- }
-
- public override void RemoveValueChanged(object component, EventHandler handler)
- {
- root.RemoveValueChanged(component, handler);
- }
-
- public override void ResetValue(object component)
- {
- root.ResetValue(component);
- }
-
- public override void SetValue(object component, object value)
- {
- root.SetValue(component, value);
- }
-
- public override bool ShouldSerializeValue(object component)
- {
- return root.ShouldSerializeValue(component);
- }
-
- public override bool SupportsChangeEvents
- {
- get
- {
- return root.SupportsChangeEvents;
- }
- }
-
- public override string ToString()
- {
- return root.ToString();
- }
- }
-}
OpenPOWER on IntegriCloud