Browse Source

Fixed the visiting of class template specialisations.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/855/head
Dimitar Dobrev 9 years ago
parent
commit
a6b25c1941
  1. 3
      src/AST/ASTVisitor.cs

3
src/AST/ASTVisitor.cs

@ -479,6 +479,7 @@ namespace CppSharp.AST @@ -479,6 +479,7 @@ namespace CppSharp.AST
foreach (var templateParameter in template.Parameters)
templateParameter.Visit(this);
if (VisitOptions.VisitClassTemplateSpecializations)
foreach (var specialization in template.Specializations)
specialization.Visit(this);
@ -549,7 +550,7 @@ namespace CppSharp.AST @@ -549,7 +550,7 @@ namespace CppSharp.AST
if (!VisitDeclaration(context))
return false;
foreach (var decl in context.Classes)
foreach (var decl in context.Classes.Where(c => !(c is ClassTemplateSpecialization)))
decl.Visit(this);
foreach (var decl in context.Functions)

Loading…
Cancel
Save