Skip to content

Commit

Permalink
Merge pull request #551 from dpaoliello/special
Browse files Browse the repository at this point in the history
Exclude template specializations unless `generate-template-bindings` is set
  • Loading branch information
tannergooding authored May 15, 2024
2 parents 43d45ef + 864de6e commit be6c8f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit be6c8f8

Please sign in to comment.