|
|
|
@ -1,8 +1,8 @@
@@ -1,8 +1,8 @@
|
|
|
|
|
using System.Linq; |
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
using CppSharp.AST; |
|
|
|
|
using CppSharp.AST.Extensions; |
|
|
|
|
using CppSharp.Types; |
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
|
|
namespace CppSharp.Passes |
|
|
|
|
{ |
|
|
|
@ -96,6 +96,19 @@ namespace CppSharp.Passes
@@ -96,6 +96,19 @@ namespace CppSharp.Passes
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override bool VisitFunctionTemplateDecl(FunctionTemplate decl) |
|
|
|
|
{ |
|
|
|
|
if (decl.TemplatedFunction.IsDependent && !decl.IsExplicitlyGenerated) |
|
|
|
|
{ |
|
|
|
|
decl.TemplatedFunction.GenerationKind = GenerationKind.None; |
|
|
|
|
Diagnostics.Debug("Decl '{0}' was ignored due to dependent context", |
|
|
|
|
decl.Name); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override bool VisitFunctionDecl(Function function) |
|
|
|
|
{ |
|
|
|
|
if (!VisitDeclaration(function) || function.IsSynthetized |
|
|
|
|