summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorBruno da Silva Belo <bruno.belo@expertisesolutions.com.br>2019-12-17 10:56:42 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-12-17 11:26:23 -0300
commitc40e948270e84e0e8e1818736c1e77a103695d51 (patch)
treec6eb7761959ca66e3ad17122695e7cffc00b8860 /src/bindings
parent0265f4fd5565e01bba0c2228f4f981a644dcaee1 (diff)
csharp:Suppressing Warning and Add suffix collection.
Summary: ref T8408 Reviewers: lauromoura, felipealmeida, YOhoho, jptiz Reviewed By: jptiz Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8408 Differential Revision: https://phab.enlightenment.org/D10669
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/mono/eina_mono/eina_accessor.cs7
-rw-r--r--src/bindings/mono/eina_mono/eina_array.cs3
-rw-r--r--src/bindings/mono/eina_mono/eina_hash.cs3
-rw-r--r--src/bindings/mono/eina_mono/eina_inarray.cs3
-rw-r--r--src/bindings/mono/eina_mono/eina_inlist.cs3
-rw-r--r--src/bindings/mono/eina_mono/eina_iterator.cs3
-rw-r--r--src/bindings/mono/eina_mono/eina_list.cs3
-rw-r--r--src/bindings/mono/eo_mono/EoWrapper.cs2
-rw-r--r--src/bindings/mono/eo_mono/iwrapper.cs4
9 files changed, 28 insertions, 3 deletions
diff --git a/src/bindings/mono/eina_mono/eina_accessor.cs b/src/bindings/mono/eina_mono/eina_accessor.cs
index 64b4216a15..7c968a30ee 100644
--- a/src/bindings/mono/eina_mono/eina_accessor.cs
+++ b/src/bindings/mono/eina_mono/eina_accessor.cs
@@ -18,6 +18,7 @@ using System.Collections;
18using System.Collections.Generic; 18using System.Collections.Generic;
19using System.Runtime.InteropServices; 19using System.Runtime.InteropServices;
20using System.ComponentModel; 20using System.ComponentModel;
21using System.Diagnostics.CodeAnalysis;
21 22
22using static Eina.TraitFunctions; 23using static Eina.TraitFunctions;
23 24
@@ -38,6 +39,8 @@ internal class AccessorNativeFunctions
38/// similar to C++ STL's and C# IEnumerable. 39/// similar to C++ STL's and C# IEnumerable.
39/// <para>Since EFL 1.23.</para> 40/// <para>Since EFL 1.23.</para>
40/// </summary> 41/// </summary>
42[SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix",
43 Justification="This is a generalized container mapping the native one.")]
41public class Accessor<T> : IEnumerable<T>, IDisposable 44public class Accessor<T> : IEnumerable<T>, IDisposable
42{ 45{
43 /// <summary>Pointer to the native accessor.</summary> 46 /// <summary>Pointer to the native accessor.</summary>
@@ -177,6 +180,8 @@ public class Accessor<T> : IEnumerable<T>, IDisposable
177/// <summary>Accessor for Inlists. 180/// <summary>Accessor for Inlists.
178/// <para>Since EFL 1.23.</para> 181/// <para>Since EFL 1.23.</para>
179/// </summary> 182/// </summary>
183[SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix",
184 Justification="This is a generalized container mapping the native one.")]
180public class AccessorInList<T> : Accessor<T> 185public class AccessorInList<T> : Accessor<T>
181{ 186{
182 /// <summary>Create a new accessor wrapping the given pointer. 187 /// <summary>Create a new accessor wrapping the given pointer.
@@ -202,6 +207,8 @@ public class AccessorInList<T> : Accessor<T>
202/// <summary>Accessor for Inarrays. 207/// <summary>Accessor for Inarrays.
203/// <para>Since EFL 1.23.</para> 208/// <para>Since EFL 1.23.</para>
204/// </summary> 209/// </summary>
210[SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix",
211 Justification="This is a generalized container mapping the native one.")]
205public class AccessorInArray<T> : Accessor<T> 212public class AccessorInArray<T> : Accessor<T>
206{ 213{
207 /// <summary>Create a new accessor wrapping the given pointer. 214 /// <summary>Create a new accessor wrapping the given pointer.
diff --git a/src/bindings/mono/eina_mono/eina_array.cs b/src/bindings/mono/eina_mono/eina_array.cs
index ce26acdd9a..1573a88aa0 100644
--- a/src/bindings/mono/eina_mono/eina_array.cs
+++ b/src/bindings/mono/eina_mono/eina_array.cs
@@ -19,6 +19,7 @@ using System;
19using System.Runtime.InteropServices; 19using System.Runtime.InteropServices;
20using System.Collections.Generic; 20using System.Collections.Generic;
21using System.ComponentModel; 21using System.ComponentModel;
22using System.Diagnostics.CodeAnalysis;
22 23
23using static Eina.TraitFunctions; 24using static Eina.TraitFunctions;
24using static Eina.ArrayNativeFunctions; 25using static Eina.ArrayNativeFunctions;
@@ -65,6 +66,8 @@ public static class ArrayNativeFunctions
65/// <summary>A container of contiguous allocated elements. 66/// <summary>A container of contiguous allocated elements.
66/// <para>Since EFL 1.23.</para> 67/// <para>Since EFL 1.23.</para>
67/// </summary> 68/// </summary>
69[SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix",
70 Justification="This is a generalized container mapping the native one.")]
68public class Array<T> : IEnumerable<T>, IDisposable 71public class Array<T> : IEnumerable<T>, IDisposable
69{ 72{
70 public const uint DefaultStep = 32; 73 public const uint DefaultStep = 32;
diff --git a/src/bindings/mono/eina_mono/eina_hash.cs b/src/bindings/mono/eina_mono/eina_hash.cs
index 5b6f4735c1..2e1d184ab8 100644
--- a/src/bindings/mono/eina_mono/eina_hash.cs
+++ b/src/bindings/mono/eina_mono/eina_hash.cs
@@ -19,6 +19,7 @@ using System;
19using System.Runtime.InteropServices; 19using System.Runtime.InteropServices;
20using System.Collections.Generic; 20using System.Collections.Generic;
21using System.ComponentModel; 21using System.ComponentModel;
22using System.Diagnostics.CodeAnalysis;
22 23
23using static Eina.TraitFunctions; 24using static Eina.TraitFunctions;
24using static Eina.IteratorNativeFunctions; 25using static Eina.IteratorNativeFunctions;
@@ -198,6 +199,8 @@ public static class HashNativeFunctions
198/// 199///
199/// <para>Since EFL 1.23.</para> 200/// <para>Since EFL 1.23.</para>
200/// </summary> 201/// </summary>
202[SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix",
203 Justification = "This is a generalized container mapping the native one.")]
201public class Hash<TKey, TValue> : IEnumerable<KeyValuePair<TKey, TValue>>, IDisposable 204public class Hash<TKey, TValue> : IEnumerable<KeyValuePair<TKey, TValue>>, IDisposable
202{ 205{
203 [EditorBrowsable(EditorBrowsableState.Never)] 206 [EditorBrowsable(EditorBrowsableState.Never)]
diff --git a/src/bindings/mono/eina_mono/eina_inarray.cs b/src/bindings/mono/eina_mono/eina_inarray.cs
index 0373b43fc1..f341a54c3c 100644
--- a/src/bindings/mono/eina_mono/eina_inarray.cs
+++ b/src/bindings/mono/eina_mono/eina_inarray.cs
@@ -19,6 +19,7 @@ using System;
19using System.Runtime.InteropServices; 19using System.Runtime.InteropServices;
20using System.Collections.Generic; 20using System.Collections.Generic;
21using System.ComponentModel; 21using System.ComponentModel;
22using System.Diagnostics.CodeAnalysis;
22 23
23using static Eina.TraitFunctions; 24using static Eina.TraitFunctions;
24using static Eina.InarrayNativeFunctions; 25using static Eina.InarrayNativeFunctions;
@@ -87,6 +88,8 @@ public static class InarrayNativeFunctions
87/// <summary>Wrapper around an inplace array. 88/// <summary>Wrapper around an inplace array.
88/// <para>Since EFL 1.23.</para> 89/// <para>Since EFL 1.23.</para>
89/// </summary> 90/// </summary>
91[SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix",
92 Justification="This is a generalized container mapping the native one.")]
90public class Inarray<T> : IEnumerable<T>, IDisposable 93public class Inarray<T> : IEnumerable<T>, IDisposable
91{ 94{
92 public const uint DefaultStep = 0; 95 public const uint DefaultStep = 0;
diff --git a/src/bindings/mono/eina_mono/eina_inlist.cs b/src/bindings/mono/eina_mono/eina_inlist.cs
index 80cfe2b2ab..f4c95e1887 100644
--- a/src/bindings/mono/eina_mono/eina_inlist.cs
+++ b/src/bindings/mono/eina_mono/eina_inlist.cs
@@ -19,6 +19,7 @@ using System;
19using System.Runtime.InteropServices; 19using System.Runtime.InteropServices;
20using System.Collections.Generic; 20using System.Collections.Generic;
21using System.ComponentModel; 21using System.ComponentModel;
22using System.Diagnostics.CodeAnalysis;
22 23
23using static Eina.TraitFunctions; 24using static Eina.TraitFunctions;
24using static Eina.InlistNativeFunctions; 25using static Eina.InlistNativeFunctions;
@@ -100,6 +101,8 @@ public static class InlistNativeFunctions
100/// <summary>Wrapper around an inplace list. 101/// <summary>Wrapper around an inplace list.
101/// <para>Since EFL 1.23.</para> 102/// <para>Since EFL 1.23.</para>
102/// </summary> 103/// </summary>
104[SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix",
105 Justification="This is a generalized container mapping the native one.")]
103public class Inlist<T> : IEnumerable<T>, IDisposable 106public class Inlist<T> : IEnumerable<T>, IDisposable
104{ 107{
105 [EditorBrowsable(EditorBrowsableState.Never)] 108 [EditorBrowsable(EditorBrowsableState.Never)]
diff --git a/src/bindings/mono/eina_mono/eina_iterator.cs b/src/bindings/mono/eina_mono/eina_iterator.cs
index fb73f88344..d0f62bf651 100644
--- a/src/bindings/mono/eina_mono/eina_iterator.cs
+++ b/src/bindings/mono/eina_mono/eina_iterator.cs
@@ -19,6 +19,7 @@ using System;
19using System.Runtime.InteropServices; 19using System.Runtime.InteropServices;
20using System.Collections.Generic; 20using System.Collections.Generic;
21using System.ComponentModel; 21using System.ComponentModel;
22using System.Diagnostics.CodeAnalysis;
22 23
23using static Eina.TraitFunctions; 24using static Eina.TraitFunctions;
24using static Eina.IteratorNativeFunctions; 25using static Eina.IteratorNativeFunctions;
@@ -49,6 +50,8 @@ public static class IteratorNativeFunctions
49/// <summary>Wrapper around a native Eina iterator. 50/// <summary>Wrapper around a native Eina iterator.
50/// <para>Since EFL 1.23.</para> 51/// <para>Since EFL 1.23.</para>
51/// </summary> 52/// </summary>
53[SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix",
54 Justification="This is a generalized container mapping the native one.")]
52public class Iterator<T> : IEnumerable<T>, IDisposable 55public class Iterator<T> : IEnumerable<T>, IDisposable
53{ 56{
54 [EditorBrowsable(EditorBrowsableState.Never)] 57 [EditorBrowsable(EditorBrowsableState.Never)]
diff --git a/src/bindings/mono/eina_mono/eina_list.cs b/src/bindings/mono/eina_mono/eina_list.cs
index d14dd26359..60b33e5df0 100644
--- a/src/bindings/mono/eina_mono/eina_list.cs
+++ b/src/bindings/mono/eina_mono/eina_list.cs
@@ -19,6 +19,7 @@ using System;
19using System.Runtime.InteropServices; 19using System.Runtime.InteropServices;
20using System.Collections.Generic; 20using System.Collections.Generic;
21using System.ComponentModel; 21using System.ComponentModel;
22using System.Diagnostics.CodeAnalysis;
22 23
23using static Eina.TraitFunctions; 24using static Eina.TraitFunctions;
24using static Eina.ListNativeFunctions; 25using static Eina.ListNativeFunctions;
@@ -124,6 +125,8 @@ public static class ListNativeFunctions
124/// <summary>Native wrapper around a linked list of items. 125/// <summary>Native wrapper around a linked list of items.
125/// <para>Since EFL 1.23.</para> 126/// <para>Since EFL 1.23.</para>
126/// </summary> 127/// </summary>
128[SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix",
129 Justification="This is a generalized container mapping the native one.")]
127public class List<T> : IList<T>, IEnumerable<T>, IDisposable 130public class List<T> : IList<T>, IEnumerable<T>, IDisposable
128{ 131{
129 132
diff --git a/src/bindings/mono/eo_mono/EoWrapper.cs b/src/bindings/mono/eo_mono/EoWrapper.cs
index 7445df3956..99e60b1d2b 100644
--- a/src/bindings/mono/eo_mono/EoWrapper.cs
+++ b/src/bindings/mono/eo_mono/EoWrapper.cs
@@ -100,7 +100,7 @@ public abstract class EoWrapper : IWrapper, IDisposable
100 [CallerFilePath] string file = null, 100 [CallerFilePath] string file = null,
101 [CallerLineNumber] int line = 0) 101 [CallerLineNumber] int line = 0)
102 { 102 {
103 generated = Efl.Eo.BindingEntity.IsBindingEntity(((object)this).GetType()); 103 generated = Efl.Eo.BindingEntityAttribute.IsBindingEntity(((object)this).GetType());
104 IntPtr actual_klass = baseKlass; 104 IntPtr actual_klass = baseKlass;
105 if (!generated) 105 if (!generated)
106 { 106 {
diff --git a/src/bindings/mono/eo_mono/iwrapper.cs b/src/bindings/mono/eo_mono/iwrapper.cs
index ed61634328..497c7d2180 100644
--- a/src/bindings/mono/eo_mono/iwrapper.cs
+++ b/src/bindings/mono/eo_mono/iwrapper.cs
@@ -828,11 +828,11 @@ class PrivateNativeClass : NativeClass
828 AllowMultiple = false, 828 AllowMultiple = false,
829 Inherited = false) 829 Inherited = false)
830] 830]
831public class BindingEntity: System.Attribute 831public class BindingEntityAttribute: System.Attribute
832{ 832{
833 public static bool IsBindingEntity(System.Type t) 833 public static bool IsBindingEntity(System.Type t)
834 { 834 {
835 return Attribute.GetCustomAttribute(t, typeof(BindingEntity), false) != null; 835 return Attribute.GetCustomAttribute(t, typeof(BindingEntityAttribute), false) != null;
836 } 836 }
837} 837}
838 838