From 864de6e188c97054c2e4335f2fad4629ce36efc7 Mon Sep 17 00:00:00 2001 From: Daniel Paoliello Date: Mon, 13 May 2024 15:18:18 -0700 Subject: [PATCH] Exclude template specializations unless --generate-template-bindings is set --- sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs index 30236598..6edb8098 100644 --- a/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs +++ b/sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs @@ -4587,7 +4587,7 @@ bool IsAlwaysIncluded(Cursor cursor) bool IsExcludedByConfig(Cursor cursor) { return (_config.ExcludeFunctionsWithBody && (cursor is FunctionDecl functionDecl) && functionDecl.HasBody) - || (!_config.GenerateTemplateBindings && (cursor is TemplateDecl)); + || (!_config.GenerateTemplateBindings && ((cursor is TemplateDecl) || (cursor is ClassTemplateSpecializationDecl))); } bool IsExcludedByFile(Cursor cursor)