Skip to content

Commit be6c8f8

Browse files
Merge pull request #551 from dpaoliello/special
Exclude template specializations unless `generate-template-bindings` is set
2 parents 43d45ef + 864de6e commit be6c8f8

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)