Browse Source

Removed extensions for non-generated template specialisations.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/1026/head
Dimitar Dobrev 8 years ago
parent
commit
93e4a41bec
  1. 5
      src/Generator/Passes/SpecializationMethodsWithDependentPointersPass.cs

5
src/Generator/Passes/SpecializationMethodsWithDependentPointersPass.cs

@ -1,5 +1,4 @@ @@ -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 @@ -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))
{

Loading…
Cancel
Save