Skip to content

Commit 93e4a41

Browse files
committed
Removed extensions for non-generated template specialisations.
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent 1060716 commit 93e4a41

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Generator/Passes/SpecializationMethodsWithDependentPointersPass.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
1+
using System.Collections.Generic;
32
using System.Linq;
43
using CppSharp.AST;
54
using CppSharp.AST.Extensions;
@@ -69,7 +68,7 @@ public override bool VisitClassDecl(Class @class)
6968
return false;
7069

7170
var classExtensions = new Class { Name = $"{@class.Name}Extensions", IsStatic = true };
72-
foreach (var specialization in @class.Specializations.Where(s => !s.Ignore))
71+
foreach (var specialization in @class.Specializations.Where(s => s.IsGenerated))
7372
foreach (var method in methodsWithDependentPointers.Where(
7473
m => m.SynthKind == FunctionSynthKind.None))
7574
{

0 commit comments

Comments
 (0)