Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some other template related declarations that don't inherit from these two include:

  • FriendTemplateDecl
  • NonTypeTemplateParmDecl
  • TemplateParamObjectDecl
  • TemplateTypeParmDecl
  • VarTemplatePartialSpecializationDecl
  • VarTemplateSpecializationDecl

Of these, I think VarTemplateSpecializationDecl and VarTemplatePartialSpecializationDecl are the only two that don't require first being in an already skipped templated declaration context. But it may be important to look a bit more deeply.

}

bool IsExcludedByFile(Cursor cursor)
Expand Down