Skip to content

Commit 864de6e

Browse files
committed
Exclude template specializations unless --generate-template-bindings is set
1 parent 43d45ef commit 864de6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4587,7 +4587,7 @@ bool IsAlwaysIncluded(Cursor cursor)
45874587
bool IsExcludedByConfig(Cursor cursor)
45884588
{
45894589
return (_config.ExcludeFunctionsWithBody && (cursor is FunctionDecl functionDecl) && functionDecl.HasBody)
4590-
|| (!_config.GenerateTemplateBindings && (cursor is TemplateDecl));
4590+
|| (!_config.GenerateTemplateBindings && ((cursor is TemplateDecl) || (cursor is ClassTemplateSpecializationDecl)));
45914591
}
45924592

45934593
bool IsExcludedByFile(Cursor cursor)

0 commit comments

Comments
 (0)