Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion cmd/genbindings/clang2il.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ func parseHeader(node *AstNode, addNamePrefix string, output *CppParsedHeader, m
parseHeader(inner, addNamePrefix+namespace+"::", output, matcher)
}
}

case "NamespaceAliasDecl":
// TODO Qt 6.8+
return
case "CXXRecordDecl":
if !matcher(node.file(), output.Filename) {
return
Expand Down
4 changes: 2 additions & 2 deletions cmd/genbindings/clangfilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func parseInner(ctx *ParseCtx, kind string) bool {
// Return false for all the kinds whose inner nodes we don't care about
// at all - this is a performance optimization
switch kind {
case "FieldDecl", "TranslationUnitDecl", "NamespaceDecl":
case "TranslationUnitDecl", "NamespaceDecl":
return true
case "CXXRecordDecl", "EnumDecl", "EnumConstantDecl": // methods, fields, elements etc
return true
Expand All @@ -56,7 +56,7 @@ func parseInner(ctx *ParseCtx, kind string) bool {
case "LinkageSpecDecl", "FunctionDecl", "AccessSpecDecl", "VarDecl",
"FileScopeAsmDecl", "FriendDecl", "UsingShadowDecl", "UsingDecl",
"StaticAssertDecl", "ElaboratedType", "FullComment", "ParagraphComment",
"EmptyDecl", "IndirectFieldDecl":
"EmptyDecl", "IndirectFieldDecl", "FieldDecl":
return false
case "ClassTemplateDecl", "TypeAliasTemplateDecl",
"ClassTemplateSpecializationDecl",
Expand Down