From 93e4a41bec781d75a3700ccbbaa8636007b4e2f3 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Sat, 16 Dec 2017 23:29:32 +0200 Subject: [PATCH] Removed extensions for non-generated template specialisations. Signed-off-by: Dimitar Dobrev --- .../Passes/SpecializationMethodsWithDependentPointersPass.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Generator/Passes/SpecializationMethodsWithDependentPointersPass.cs b/src/Generator/Passes/SpecializationMethodsWithDependentPointersPass.cs index a08e32a2..070663be 100644 --- a/src/Generator/Passes/SpecializationMethodsWithDependentPointersPass.cs +++ b/src/Generator/Passes/SpecializationMethodsWithDependentPointersPass.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using CppSharp.AST; using CppSharp.AST.Extensions; @@ -69,7 +68,7 @@ namespace CppSharp.Passes return false; var classExtensions = new Class { Name = $"{@class.Name}Extensions", IsStatic = true }; - foreach (var specialization in @class.Specializations.Where(s => !s.Ignore)) + foreach (var specialization in @class.Specializations.Where(s => s.IsGenerated)) foreach (var method in methodsWithDependentPointers.Where( m => m.SynthKind == FunctionSynthKind.None)) {